Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Default new gem's gemspec to have MIT license. #2100

Merged
merged 1 commit into from Sep 24, 2012
Jump to file or symbol
Failed to load files and symbols.
+5 −0
Split
@@ -11,6 +11,7 @@ Gem::Specification.new do |gem|
gem.description = %q{TODO: Write a gem description}
gem.summary = %q{TODO: Write a gem summary}
gem.homepage = ""
+ gem.license = "MIT"
gem.files = `git ls-files`.split($/)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -64,6 +64,10 @@
end
end
+ it "sets gemspec license to MIT by default" do
+ generated_gem.gemspec.license.should == "MIT"
+ end
+
it "requires the version file" do
bundled_app("test-gem/lib/test-gem.rb").read.should =~ /require "test-gem\/version"/
end