Skip to content

Instantly share code, notes, and snippets.

@marshallmick007
Last active February 10, 2017 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marshallmick007/8e785b9b538cdb7a7866b5ad8eb1702c to your computer and use it in GitHub Desktop.
Save marshallmick007/8e785b9b538cdb7a7866b5ad8eb1702c to your computer and use it in GitHub Desktop.

Quickstart

bundle gem yourgemname
cd yourgemname
bundle install
gem build ./yourgemname.gemspec

Referencing local gems

gem "yourgemname", :path => "/path/to/yourgemname"

Pushing a gem to RubyGems.org

gem push yourgemname-0.0.1.gem

Rakefile Tasks

require 'rake'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)
task :default => :spec

task :make do
  puts `gem build #{Dir['*.gemspec'].first}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment