Skip to content

Instantly share code, notes, and snippets.

@donigian
Created June 8, 2015 06:33
Show Gist options
  • Save donigian/631b9b038b890a5e881f to your computer and use it in GitHub Desktop.
Save donigian/631b9b038b890a5e881f to your computer and use it in GitHub Desktop.
Ruby: How to Create & Distribute a Gem: This file consists of a few lines of Ruby code that instantiate a Gem::Specification object and populate it with information about your program.
# babalu.gemspec
spec = Gem::Specification.new do |spec|
spec.name = 'babalu'
spec.summary = 'A library for doing things for babalu'
spec.description = %{This library calculates a bunch of cool things.}
spec.author = 'A D'
spec.email = 'doni at gmail.com'
spec.homepage = 'http://www.cnn.com/'
spec.files = Dir['lib/*.rb']
spec.version = '1.0.0'
spec.license = 'MIT'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment