Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added LICENSE (MIT) to newgem #1571

Merged
merged 1 commit into from

2 participants

@ognevsky

Common MIT license file with current year and author name (like in gemspec).

@ognevsky

If somebody use other license, he can only replace license text. But if MIT is ok, you can forget about copying this every time you need this.

@indirect
Owner

Er... why? I normally just put "Licensed MIT" at the bottom of my readmes.

@ognevsky

@indirect a lot of projects use separate file for the license. Really. And this is much simplier: no need to look through README, what license is used.

@indirect indirect merged commit d1bed41 into from
@bobbus bobbus referenced this pull request from a commit in bobbus/bundler
@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#1571), this makes it explicit
in the .gemspec so that tools like https://github.com/pivotal/licensefinder
can easily detect it.
1bcc2af
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 2, 2011
  1. Added LICENSE (MIT) to newgem

    Andrey Ognevsky authored
This page is out of date. Refresh to see the latest.
Showing with 23 additions and 0 deletions.
  1. +1 −0  lib/bundler/cli.rb
  2. +22 −0 lib/bundler/templates/newgem/LICENSE.tt
View
1  lib/bundler/cli.rb
@@ -559,6 +559,7 @@ def gem(name)
}
template(File.join("newgem/Gemfile.tt"), File.join(target, "Gemfile"), opts)
template(File.join("newgem/Rakefile.tt"), File.join(target, "Rakefile"), opts)
+ template(File.join("newgem/LICENSE.tt"), File.join(target, "LICENSE"), opts)
template(File.join("newgem/gitignore.tt"), File.join(target, ".gitignore"), opts)
template(File.join("newgem/newgem.gemspec.tt"), File.join(target, "#{name}.gemspec"), opts)
template(File.join("newgem/lib/newgem.rb.tt"), File.join(target, "lib/#{name}.rb"), opts)
View
22 lib/bundler/templates/newgem/LICENSE.tt
@@ -0,0 +1,22 @@
+Copyright (c) <%=Time.now.year%> <%=config[:author]%>
+
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Something went wrong with that request. Please try again.