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

Nico Hagenburger
Nico HagenburgerRails developer, Web designer, Haml and Sass fan at 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 of 17

Recommended

Introduction to bower by
Introduction to bowerIntroduction to bower
Introduction to bowerJitendra Zaa
2K views14 slides
Best Practices for creating WP REST API by Galkin Nikita by
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 slides
.Git for WordPress Developers by
.Git for WordPress Developers.Git for WordPress Developers
.Git for WordPress Developersmpvanwinkle
3.3K views28 slides
My Top 5 Favorite Gems by
My Top 5 Favorite GemsMy Top 5 Favorite Gems
My Top 5 Favorite GemsJimmy Ngu
242 views26 slides
ReactJS Workflows by
ReactJS WorkflowsReactJS Workflows
ReactJS WorkflowsCem Arguvanlı
322 views27 slides
Using hapi plugins to version your API (hapiDays 2014) by
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 slides

More Related Content

What's hot

An Introduction to hapi.js by
An Introduction to hapi.jsAn Introduction to hapi.js
An Introduction to hapi.jsDave Stevens
2.5K views16 slides
Get Started in Professional WordPress Design & Development by
Get Started in Professional WordPress Design & DevelopmentGet Started in Professional WordPress Design & Development
Get Started in Professional WordPress Design & DevelopmentCliff Seal
3.2K views22 slides
007. Redux middlewares by
007. Redux middlewares007. Redux middlewares
007. Redux middlewaresBinh Quan Duc
658 views26 slides
Jenkins and rails app - Le Dinh Vu by
Jenkins and rails app - Le Dinh VuJenkins and rails app - Le Dinh Vu
Jenkins and rails app - Le Dinh VuFramgia Vietnam
2.1K views11 slides
Play framework And Google Cloud Platform GCP. by
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 slides
Continuous Updating with VersionEye at code.talks 2014 by
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 slides

What's hot(20)

An Introduction to hapi.js by 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 by 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 by 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 by 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! by 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 by 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 разработки by JSFestUA
JS Fest 2018. Алексей Волков. Полезные инструменты для JS разработкиJS Fest 2018. Алексей Волков. Полезные инструменты для JS разработки
JS Fest 2018. Алексей Волков. Полезные инструменты для JS разработки
JSFestUA527 views
Play Framework on Google App Engine - Productivity Stack by 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 by 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 by 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 by Riccardo Coppola
Bower & Grunt - A practical workflowBower & Grunt - A practical workflow
Bower & Grunt - A practical workflow
Riccardo Coppola5.8K views
Docker Tooling for Eclipse by 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 by 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 by AdroitLogic
Introduction to ReactJSIntroduction to ReactJS
Introduction to ReactJS
AdroitLogic158 views
JLPDevs - Optimization Tooling for Modern Web App Development by 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 to Create your-own-gem-with-github-jeweler-rubygems

Introduction to Octopress at DRUG by
Introduction to Octopress at DRUGIntroduction to Octopress at DRUG
Introduction to Octopress at DRUGWojciech Langiewicz
869 views8 slides
Gem That (2009) by
Gem That (2009)Gem That (2009)
Gem That (2009)lazyatom
48 views56 slides
Open Source Saturday - How can I contribute to Ruby on Rails? by
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 slides
Install Guide by
Install GuideInstall Guide
Install GuideSantosh Kiran Beyagudem
436 views13 slides
Week6 by
Week6Week6
Week6reneedv
293 views26 slides
Autotesting rails app by
Autotesting rails appAutotesting rails app
Autotesting rails appAnton Naumenko
537 views37 slides

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

Gem That (2009) by lazyatom
Gem That (2009)Gem That (2009)
Gem That (2009)
lazyatom48 views
Open Source Saturday - How can I contribute to Ruby on Rails? by 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 by reneedv
Week6Week6
Week6
reneedv293 views
Build-a-Gem Workshop by Brian Kaney
Build-a-Gem WorkshopBuild-a-Gem Workshop
Build-a-Gem Workshop
Brian Kaney419 views
Build-a-Gem Workshop by Brian Kaney
Build-a-Gem WorkshopBuild-a-Gem Workshop
Build-a-Gem Workshop
Brian Kaney469 views
Ruby on Rails Kickstart 101 & 102 by Heng-Yi Wu
Ruby on Rails Kickstart 101 & 102Ruby on Rails Kickstart 101 & 102
Ruby on Rails Kickstart 101 & 102
Heng-Yi Wu381 views
Gemification for Ruby 2.5/3.0 by Hiroshi SHIBATA
Gemification for Ruby 2.5/3.0Gemification for Ruby 2.5/3.0
Gemification for Ruby 2.5/3.0
Hiroshi SHIBATA1.3K views
Automated Releases to RubyGems.org using Travis-CI.org by 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 by 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 by 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
The Future of Bundled Bundler by Hiroshi SHIBATA
The Future of Bundled BundlerThe Future of Bundled Bundler
The Future of Bundled Bundler
Hiroshi SHIBATA4.7K views
Introduction to blogging with Jekyll by Eric Lathrop
Introduction to blogging with JekyllIntroduction to blogging with Jekyll
Introduction to blogging with Jekyll
Eric Lathrop3K views

Recently uploaded

Roadmap to Become Experts.pptx by
Roadmap to Become Experts.pptxRoadmap to Become Experts.pptx
Roadmap to Become Experts.pptxdscwidyatamanew
11 views45 slides
How the World's Leading Independent Automotive Distributor is Reinventing Its... by
How the World's Leading Independent Automotive Distributor is Reinventing Its...How the World's Leading Independent Automotive Distributor is Reinventing Its...
How the World's Leading Independent Automotive Distributor is Reinventing Its...NUS-ISS
15 views25 slides
STPI OctaNE CoE Brochure.pdf by
STPI OctaNE CoE Brochure.pdfSTPI OctaNE CoE Brochure.pdf
STPI OctaNE CoE Brochure.pdfmadhurjyapb
12 views1 slide
DALI Basics Course 2023 by
DALI Basics Course  2023DALI Basics Course  2023
DALI Basics Course 2023Ivory Egg
14 views12 slides
Five Things You SHOULD Know About Postman by
Five Things You SHOULD Know About PostmanFive Things You SHOULD Know About Postman
Five Things You SHOULD Know About PostmanPostman
27 views43 slides
Perth MeetUp November 2023 by
Perth MeetUp November 2023 Perth MeetUp November 2023
Perth MeetUp November 2023 Michael Price
15 views44 slides

Recently uploaded(20)

How the World's Leading Independent Automotive Distributor is Reinventing Its... by NUS-ISS
How the World's Leading Independent Automotive Distributor is Reinventing Its...How the World's Leading Independent Automotive Distributor is Reinventing Its...
How the World's Leading Independent Automotive Distributor is Reinventing Its...
NUS-ISS15 views
STPI OctaNE CoE Brochure.pdf by madhurjyapb
STPI OctaNE CoE Brochure.pdfSTPI OctaNE CoE Brochure.pdf
STPI OctaNE CoE Brochure.pdf
madhurjyapb12 views
DALI Basics Course 2023 by Ivory Egg
DALI Basics Course  2023DALI Basics Course  2023
DALI Basics Course 2023
Ivory Egg14 views
Five Things You SHOULD Know About Postman by Postman
Five Things You SHOULD Know About PostmanFive Things You SHOULD Know About Postman
Five Things You SHOULD Know About Postman
Postman27 views
Perth MeetUp November 2023 by Michael Price
Perth MeetUp November 2023 Perth MeetUp November 2023
Perth MeetUp November 2023
Michael Price15 views
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen... by NUS-ISS
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...
NUS-ISS28 views
Future of Learning - Khoong Chan Meng by NUS-ISS
Future of Learning - Khoong Chan MengFuture of Learning - Khoong Chan Meng
Future of Learning - Khoong Chan Meng
NUS-ISS33 views
AI: mind, matter, meaning, metaphors, being, becoming, life values by Twain Liu 刘秋艳
AI: mind, matter, meaning, metaphors, being, becoming, life valuesAI: mind, matter, meaning, metaphors, being, becoming, life values
AI: mind, matter, meaning, metaphors, being, becoming, life values
RADIUS-Omnichannel Interaction System by RADIUS
RADIUS-Omnichannel Interaction SystemRADIUS-Omnichannel Interaction System
RADIUS-Omnichannel Interaction System
RADIUS15 views
Web Dev - 1 PPT.pdf by gdsczhcet
Web Dev - 1 PPT.pdfWeb Dev - 1 PPT.pdf
Web Dev - 1 PPT.pdf
gdsczhcet55 views
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors by sugiuralab
TouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective SensorsTouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective Sensors
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors
sugiuralab15 views
Data-centric AI and the convergence of data and model engineering: opportunit... by Paolo Missier
Data-centric AI and the convergence of data and model engineering:opportunit...Data-centric AI and the convergence of data and model engineering:opportunit...
Data-centric AI and the convergence of data and model engineering: opportunit...
Paolo Missier34 views
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum... by NUS-ISS
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...
NUS-ISS34 views
Emerging & Future Technology - How to Prepare for the Next 10 Years of Radica... by NUS-ISS
Emerging & Future Technology - How to Prepare for the Next 10 Years of Radica...Emerging & Future Technology - How to Prepare for the Next 10 Years of Radica...
Emerging & Future Technology - How to Prepare for the Next 10 Years of Radica...
NUS-ISS16 views

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