Create your-own-gem-with-github-jeweler-rubygems

Nico Hagenburger
Nico HagenburgerRails developer, Web designer, Haml and Sass fan um home
Create
Your Own Gem
with github, jeweler and rubygems
Gem structure
Gem repository
Gem versioning
Gem releasing
Get a Github Account




    Don’t you have one yet?
Rubygems Account
gem install
  jeweler
Create a Project
jeweler an-awesome-gem --rspec
  --rubygems
cd an-awesome-gem


Safe some time with defaults:
export JEWELER_OPTS="--rspec"
Create a Version
rake version:write




> version is 0.0.0
Update Versions
rake version:bump:minor

                     major . minor . patch


> version is 0.1.0
Description
require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "an-awesome-gem"
    gem.summary = %Q{TODO: one-line summary of your gem}
    gem.description = %Q{TODO: longer description of your gem}
    gem.email = "nico@hagenburger.net"
    gem.homepage = "http://github.com/hagenburger/an-awesome-gem"
    gem.authors = ["Nico Hagenburger"]
    gem.add_development_dependency "rspec", ">= 1.2.9"
    # gem is a Gem::Specification... see http://www.rubygems.org/
read/chapter/20 for additional settings
  end

               an-awesome-gem/Rakefile
Github Repository
Git It
git add .
git commit -m "initial commit"
Local Install
[sudo] rake install


Be careful:
- Only commited files will be installed
- Once commited but changed files will be
  installed with current not commited
  version
Release It
rake release

Magic:
✓ Commits

✓ Creates a release tag

✓ Pushes to github

✓ Releases to:

  rubygems.org/gems/an-awesome-gem
Ready!
Don’t Forget
★   Edit/create README.md
★   Add a CHANGELOG.md
★   Add dependencies in Rakefile
★   Write some specs/tests
★   Promote it!
Any questions?
last name
first name


             nico@hagenburger.net
    e-mail
              twitter
                        blog
1 von 17

Recomendados

Introduction to bower von
Introduction to bowerIntroduction to bower
Introduction to bowerJitendra Zaa
2K views14 Folien
Best Practices for creating WP REST API by Galkin Nikita von
Best Practices for creating WP REST API by Galkin NikitaBest Practices for creating WP REST API by Galkin Nikita
Best Practices for creating WP REST API by Galkin NikitaWordCamp Kyiv
318 views11 Folien
.Git for WordPress Developers von
.Git for WordPress Developers.Git for WordPress Developers
.Git for WordPress Developersmpvanwinkle
3.3K views28 Folien
My Top 5 Favorite Gems von
My Top 5 Favorite GemsMy Top 5 Favorite Gems
My Top 5 Favorite GemsJimmy Ngu
242 views26 Folien
ReactJS Workflows von
ReactJS WorkflowsReactJS Workflows
ReactJS WorkflowsCem Arguvanlı
322 views27 Folien
Using hapi plugins to version your API (hapiDays 2014) von
Using hapi plugins to version your API (hapiDays 2014)Using hapi plugins to version your API (hapiDays 2014)
Using hapi plugins to version your API (hapiDays 2014)Dave Stevens
3.3K views24 Folien

Más contenido relacionado

Was ist angesagt?

An Introduction to hapi.js von
An Introduction to hapi.jsAn Introduction to hapi.js
An Introduction to hapi.jsDave Stevens
2.5K views16 Folien
Get Started in Professional WordPress Design & Development von
Get Started in Professional WordPress Design & DevelopmentGet Started in Professional WordPress Design & Development
Get Started in Professional WordPress Design & DevelopmentCliff Seal
3.2K views22 Folien
007. Redux middlewares von
007. Redux middlewares007. Redux middlewares
007. Redux middlewaresBinh Quan Duc
658 views26 Folien
Jenkins and rails app - Le Dinh Vu von
Jenkins and rails app - Le Dinh VuJenkins and rails app - Le Dinh Vu
Jenkins and rails app - Le Dinh VuFramgia Vietnam
2.1K views11 Folien
Play framework And Google Cloud Platform GCP. von
Play framework And Google Cloud Platform GCP.Play framework And Google Cloud Platform GCP.
Play framework And Google Cloud Platform GCP.Eng Chrispinus Onyancha
1.2K views49 Folien
Continuous Updating with VersionEye at code.talks 2014 von
Continuous Updating with VersionEye at code.talks 2014Continuous Updating with VersionEye at code.talks 2014
Continuous Updating with VersionEye at code.talks 2014Robert Reiz
1.7K views56 Folien

Was ist angesagt?(20)

An Introduction to hapi.js von Dave Stevens
An Introduction to hapi.jsAn Introduction to hapi.js
An Introduction to hapi.js
Dave Stevens2.5K views
Get Started in Professional WordPress Design & Development von Cliff Seal
Get Started in Professional WordPress Design & DevelopmentGet Started in Professional WordPress Design & Development
Get Started in Professional WordPress Design & Development
Cliff Seal3.2K views
Jenkins and rails app - Le Dinh Vu von Framgia Vietnam
Jenkins and rails app - Le Dinh VuJenkins and rails app - Le Dinh Vu
Jenkins and rails app - Le Dinh Vu
Framgia Vietnam2.1K views
Continuous Updating with VersionEye at code.talks 2014 von Robert Reiz
Continuous Updating with VersionEye at code.talks 2014Continuous Updating with VersionEye at code.talks 2014
Continuous Updating with VersionEye at code.talks 2014
Robert Reiz1.7K views
Why you should add React to your Rails application now! von David Roberts
Why you should add React to your Rails application now!Why you should add React to your Rails application now!
Why you should add React to your Rails application now!
David Roberts357 views
Making Watir and Cucumber an efficient tool for Web UI Automation von Ruslan Strazhnyk
Making Watir and Cucumber an efficient tool for Web UI AutomationMaking Watir and Cucumber an efficient tool for Web UI Automation
Making Watir and Cucumber an efficient tool for Web UI Automation
Ruslan Strazhnyk2.8K views
JS Fest 2018. Алексей Волков. Полезные инструменты для JS разработки von JSFestUA
JS Fest 2018. Алексей Волков. Полезные инструменты для JS разработкиJS Fest 2018. Алексей Волков. Полезные инструменты для JS разработки
JS Fest 2018. Алексей Волков. Полезные инструменты для JS разработки
JSFestUA527 views
Play Framework on Google App Engine - Productivity Stack von Marcin Stepien
Play Framework on Google App Engine - Productivity StackPlay Framework on Google App Engine - Productivity Stack
Play Framework on Google App Engine - Productivity Stack
Marcin Stepien3.9K views
Test Automation using Ruby von Sla Va
Test Automation using Ruby Test Automation using Ruby
Test Automation using Ruby
Sla Va1.6K views
Sending email with send grid and laravel von Sayed Ahmed
Sending email with send grid and laravelSending email with send grid and laravel
Sending email with send grid and laravel
Sayed Ahmed570 views
Bower & Grunt - A practical workflow von Riccardo Coppola
Bower & Grunt - A practical workflowBower & Grunt - A practical workflow
Bower & Grunt - A practical workflow
Riccardo Coppola5.8K views
Docker Tooling for Eclipse von Max Andersen
Docker Tooling for EclipseDocker Tooling for Eclipse
Docker Tooling for Eclipse
Max Andersen1.3K views
Project development - preparing hell dish together – Oleksii Dashkevych von Ruby Meditation
Project development - preparing hell dish together – Oleksii DashkevychProject development - preparing hell dish together – Oleksii Dashkevych
Project development - preparing hell dish together – Oleksii Dashkevych
Ruby Meditation149 views
Introduction to ReactJS von AdroitLogic
Introduction to ReactJSIntroduction to ReactJS
Introduction to ReactJS
AdroitLogic158 views
JLPDevs - Optimization Tooling for Modern Web App Development von JLP Community
JLPDevs - Optimization Tooling for Modern Web App DevelopmentJLPDevs - Optimization Tooling for Modern Web App Development
JLPDevs - Optimization Tooling for Modern Web App Development
JLP Community243 views

Similar a Create your-own-gem-with-github-jeweler-rubygems

Introduction to Octopress at DRUG von
Introduction to Octopress at DRUGIntroduction to Octopress at DRUG
Introduction to Octopress at DRUGWojciech Langiewicz
869 views8 Folien
Gem That (2009) von
Gem That (2009)Gem That (2009)
Gem That (2009)lazyatom
48 views56 Folien
Open Source Saturday - How can I contribute to Ruby on Rails? von
Open Source Saturday - How can I contribute to Ruby on Rails?Open Source Saturday - How can I contribute to Ruby on Rails?
Open Source Saturday - How can I contribute to Ruby on Rails?Pravin Mishra
1.8K views27 Folien
Install Guide von
Install GuideInstall Guide
Install GuideSantosh Kiran Beyagudem
436 views13 Folien
Week6 von
Week6Week6
Week6reneedv
293 views26 Folien
Autotesting rails app von
Autotesting rails appAutotesting rails app
Autotesting rails appAnton Naumenko
537 views37 Folien

Similar a Create your-own-gem-with-github-jeweler-rubygems(20)

Gem That (2009) von lazyatom
Gem That (2009)Gem That (2009)
Gem That (2009)
lazyatom48 views
Open Source Saturday - How can I contribute to Ruby on Rails? von Pravin Mishra
Open Source Saturday - How can I contribute to Ruby on Rails?Open Source Saturday - How can I contribute to Ruby on Rails?
Open Source Saturday - How can I contribute to Ruby on Rails?
Pravin Mishra1.8K views
Week6 von reneedv
Week6Week6
Week6
reneedv293 views
Build-a-Gem Workshop von Brian Kaney
Build-a-Gem WorkshopBuild-a-Gem Workshop
Build-a-Gem Workshop
Brian Kaney419 views
Build-a-Gem Workshop von Brian Kaney
Build-a-Gem WorkshopBuild-a-Gem Workshop
Build-a-Gem Workshop
Brian Kaney469 views
Ruby on Rails Kickstart 101 & 102 von Heng-Yi Wu
Ruby on Rails Kickstart 101 & 102Ruby on Rails Kickstart 101 & 102
Ruby on Rails Kickstart 101 & 102
Heng-Yi Wu381 views
Automated Releases to RubyGems.org using Travis-CI.org von Francis Luong
Automated Releases to RubyGems.org using Travis-CI.orgAutomated Releases to RubyGems.org using Travis-CI.org
Automated Releases to RubyGems.org using Travis-CI.org
Francis Luong1.1K views
The Future of Dependency Management for Ruby von Hiroshi SHIBATA
The Future of Dependency Management for RubyThe Future of Dependency Management for Ruby
The Future of Dependency Management for Ruby
Hiroshi SHIBATA7.4K views
How to make a Ruby Gem - Austin on Rails, January 2014 von Clare Glinka
How to make a Ruby Gem - Austin on Rails, January 2014How to make a Ruby Gem - Austin on Rails, January 2014
How to make a Ruby Gem - Austin on Rails, January 2014
Clare Glinka2.5K views
Introduction to blogging with Jekyll von Eric Lathrop
Introduction to blogging with JekyllIntroduction to blogging with Jekyll
Introduction to blogging with Jekyll
Eric Lathrop3K views

Último

Future of Indian ConsumerTech von
Future of Indian ConsumerTechFuture of Indian ConsumerTech
Future of Indian ConsumerTechKapil Khandelwal (KK)
21 views68 Folien
STKI Israeli Market Study 2023 corrected forecast 2023_24 v3.pdf von
STKI Israeli Market Study 2023   corrected forecast 2023_24 v3.pdfSTKI Israeli Market Study 2023   corrected forecast 2023_24 v3.pdf
STKI Israeli Market Study 2023 corrected forecast 2023_24 v3.pdfDr. Jimmy Schwarzkopf
19 views29 Folien
PRODUCT PRESENTATION.pptx von
PRODUCT PRESENTATION.pptxPRODUCT PRESENTATION.pptx
PRODUCT PRESENTATION.pptxangelicacueva6
14 views1 Folie
Network Source of Truth and Infrastructure as Code revisited von
Network Source of Truth and Infrastructure as Code revisitedNetwork Source of Truth and Infrastructure as Code revisited
Network Source of Truth and Infrastructure as Code revisitedNetwork Automation Forum
26 views45 Folien
Vertical User Stories von
Vertical User StoriesVertical User Stories
Vertical User StoriesMoisés Armani Ramírez
14 views16 Folien
PharoJS - Zürich Smalltalk Group Meetup November 2023 von
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023Noury Bouraqadi
127 views17 Folien

Último(20)

STKI Israeli Market Study 2023 corrected forecast 2023_24 v3.pdf von Dr. Jimmy Schwarzkopf
STKI Israeli Market Study 2023   corrected forecast 2023_24 v3.pdfSTKI Israeli Market Study 2023   corrected forecast 2023_24 v3.pdf
STKI Israeli Market Study 2023 corrected forecast 2023_24 v3.pdf
PharoJS - Zürich Smalltalk Group Meetup November 2023 von Noury Bouraqadi
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023
Noury Bouraqadi127 views
Data Integrity for Banking and Financial Services von Precisely
Data Integrity for Banking and Financial ServicesData Integrity for Banking and Financial Services
Data Integrity for Banking and Financial Services
Precisely21 views
Voice Logger - Telephony Integration Solution at Aegis von Nirmal Sharma
Voice Logger - Telephony Integration Solution at AegisVoice Logger - Telephony Integration Solution at Aegis
Voice Logger - Telephony Integration Solution at Aegis
Nirmal Sharma39 views
Unit 1_Lecture 2_Physical Design of IoT.pdf von StephenTec
Unit 1_Lecture 2_Physical Design of IoT.pdfUnit 1_Lecture 2_Physical Design of IoT.pdf
Unit 1_Lecture 2_Physical Design of IoT.pdf
StephenTec12 views
Special_edition_innovator_2023.pdf von WillDavies22
Special_edition_innovator_2023.pdfSpecial_edition_innovator_2023.pdf
Special_edition_innovator_2023.pdf
WillDavies2217 views
Case Study Copenhagen Energy and Business Central.pdf von Aitana
Case Study Copenhagen Energy and Business Central.pdfCase Study Copenhagen Energy and Business Central.pdf
Case Study Copenhagen Energy and Business Central.pdf
Aitana16 views
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ... von Jasper Oosterveld
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
Empathic Computing: Delivering the Potential of the Metaverse von Mark Billinghurst
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the Metaverse
Mark Billinghurst478 views

Create your-own-gem-with-github-jeweler-rubygems