Create your own gem

resources

result

Tools

  • Bundler & Rake
  • Jeweler
  • Rails plugin
  • etc ...

Bundler

Create a gem

bundle gem hello_ss

Structure

Add class method

def self.hi
    "hello ss!"

end

Build

rake build

or

gem build hello_ss.gemspec

Release

gem push pkg/hello_ss-0.0.2.gem

or

rake release

 

recommended tools :

gem-release

Install (dev)

gem uninstall hello_ss

rake install

Remote

gem uninstall hello_ss

gem install hello_ss

Example using Jeweler

Pair programming

Made with Slides.com