How to Create a Ruby GemNovember 10, 2014 |
Here is the most modern approach to gem crafting:
bundle gem gemname
cd gemname
edit your_gem.gemspec and add description, summary, required gems and optional website. Add required gems for development such as rspec, rails or minitest to the Gemfile.
rspec --init
touch spec/your_gem_spec.rb
# Rakefile