Permalink
Browse files

Add license to gemspec.

  • Loading branch information...
oggy committed Jun 7, 2012
1 parent 9fc9e91 commit a22670f58d2e830dc23043433257ddb890dea59b
Showing with 16 additions and 15 deletions.
  1. +16 −15 gem_info.gemspec
View
@@ -1,28 +1,29 @@
$:.unshift File.expand_path('lib', File.dirname(__FILE__))
require 'gem_info/version'
-Gem::Specification.new do |s|
- s.name = 'gem_info'
- s.version = GemInfo::VERSION
- s.author = "George Ogata"
- s.email = 'george.ogata@gmail.com'
- s.date = Time.now.strftime('%Y-%m-%d')
- s.summary = 'Print information about gems.'
- s.description = <<-EOS.gsub(/^ *\|/, '')
+Gem::Specification.new do |gem|
+ gem.name = 'gem_info'
+ gem.version = GemInfo::VERSION
+ gem.author = "George Ogata"
+ gem.email = 'george.ogata@gmail.com'
+ gem.license = 'MIT'
+ gem.date = Time.now.strftime('%Y-%m-%d')
+ gem.summary = 'Print information about gems.'
+ gem.description = <<-EOS.gsub(/^ *\|/, '')
|A rubygems plugin which adds an 'info' command which prints
|information about gems.
|
|Unlike the built-in gem commands, it allows fuzzy matching on gem
|names and versions by default, and allows precise formatting of the
|output, making it easy on the command line and in scripts.
EOS
- s.homepage = 'http://github.com/oggy/gem_info'
+ gem.homepage = 'http://github.com/oggy/gem_info'
- s.files = Dir['lib/**/*.rb', 'CHANGELOG', 'LICENSE', 'Rakefile', 'README.markdown']
- s.test_files = Dir['spec/**/*.rb']
+ gem.files = Dir['lib/**/*.rb', 'CHANGELOG', 'LICENSE', 'Rakefile', 'README.markdown']
+ gem.test_files = Dir['spec/**/*.rb']
- s.specification_version = 3
- s.add_development_dependency 'ritual', '~> 0.3.0'
- s.add_development_dependency 'rspec', '~> 2.7.0'
- s.add_development_dependency 'mocha'
+ gem.specification_version = 3
+ gem.add_development_dependency 'ritual', '~> 0.3.0'
+ gem.add_development_dependency 'rspec', '~> 2.7.0'
+ gem.add_development_dependency 'mocha'
end

0 comments on commit a22670f

Please sign in to comment.