Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@BrentWheeldon

When creating a new gem, there is already an MIT license file added
(#1571), this makes it explicit
in the .gemspec so that tools like https://github.com/pivotal/licensefinder
can easily detect it.

@BrentWheeldon BrentWheeldon Default new gem's gemspec to have MIT license.
When creating a new gem, there is already an MIT license file added
(bundler/bundler#1571), this makes it explicit
in the .gemspec so that tools like https://github.com/pivotal/licensefinder
can easily detect it.
1bcc2af
@indirect
Owner

Seems good, thanks.

@indirect indirect merged commit 8fca868 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 14, 2012
  1. @BrentWheeldon

    Default new gem's gemspec to have MIT license.

    BrentWheeldon authored
    When creating a new gem, there is already an MIT license file added
    (bundler/bundler#1571), this makes it explicit
    in the .gemspec so that tools like https://github.com/pivotal/licensefinder
    can easily detect it.
This page is out of date. Refresh to see the latest.
View
1  lib/bundler/templates/newgem/newgem.gemspec.tt
@@ -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) }
View
4 spec/other/newgem_spec.rb
@@ -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
Something went wrong with that request. Please try again.