Skip to content

Instantly share code, notes, and snippets.

@obfusk
Created April 18, 2013 19:20
Show Gist options
  • Save obfusk/5415497 to your computer and use it in GitHub Desktop.
Save obfusk/5415497 to your computer and use it in GitHub Desktop.
gemspec example
require File.expand_path('../lib/foo/version', __FILE__)
Gem::Specification.new do |s|
s.name = 'foo'
s.summary = '...'
s.version = Foo::VERSION
s.date = Foo::DATE
s.authors = [ 'Felix C. Stegerman' ]
s.email = [ '[email protected]' ]
s.files = Dir[*%w{
.yardopts README.md *.gemspec lib/**/*.coffee lib/**/*.css
lib/**/*.haml lib/**/*.js lib/**/*.png lib/**/*.rb lib/**/*.svg
}]
s.require_path = 'lib'
s.add_runtime_dependency 'bar'
s.add_runtime_dependency 'baz'
s.required_ruby_version = '>= 1.9.1'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment