• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Create your-own-gem-with-github-jeweler-rubygems
 

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

on

  • 4,242 views

Create your own gem with github, jeweler and rubygems.org. I gave this talk at Railscamp Germany 4.

Create your own gem with github, jeweler and rubygems.org. I gave this talk at Railscamp Germany 4.

Statistics

Views

Total Views
4,242
Views on SlideShare
4,242
Embed Views
0

Actions

Likes
4
Downloads
11
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

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

    • 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