Skip to content

Instantly share code, notes, and snippets.

@eerohele
Created February 16, 2012 21:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eerohele/1848052 to your computer and use it in GitHub Desktop.
Save eerohele/1848052 to your computer and use it in GitHub Desktop.
A template for a RubyGem specification.
require 'rake/gempackagetask'
# RubyGems versioning policy: http://docs.rubygems.org/read/chapter/7
gemspec = Gem::Specification.new do |gs|
gs.name = 'name'
gs.summary = 'summary'
gs.description = File.read(File.join(File.dirname(__FILE__), 'README.md'))
gs.requirements = [ 'requirements' ]
gs.version = '0.0.1'
gs.author = 'Your Name'
gs.email = 'your.name@email.com'
gs.homepage = 'http://www.example.com/'
gs.platform = Gem::Platform::RUBY
gs.files = Dir['**/**']
gs.executables = [ 'exec_name' ]
gs.test_files = Dir['test/*_spec.rb']
gs.has_rdoc = false
gs.required_ruby_version = '>=1.9'
end
Rake::GemPackageTask.new(gemspec).define
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment