summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Arko <website+github.com@arko.net>2011-12-02 13:49:14 -0800
committerAndré Arko <website+github.com@arko.net>2011-12-02 13:49:14 -0800
commitd1bed41cabf3dbba3a4835fbf38ee937d048783a (patch)
tree0766f23c406390807ebe80ffc4feeaee312670ba
parent84d8c4b0bc246df50f1a191ec8ecd2ee53c683b7 (diff)
parent00c177a1f7b8e199a09aee0d839065f5e67c3b8a (diff)
downloadbundler-d1bed41cabf3dbba3a4835fbf38ee937d048783a.tar.gz
Merge pull request #1571 from ognevsky/add-license-to-newgem
Added LICENSE (MIT) to newgem
-rw-r--r--lib/bundler/cli.rb1
-rw-r--r--lib/bundler/templates/newgem/LICENSE.tt22
2 files changed, 23 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index d8545899ba..c7ddfe8bd1 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -559,6 +559,7 @@ module Bundler
}
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)
diff --git a/lib/bundler/templates/newgem/LICENSE.tt b/lib/bundler/templates/newgem/LICENSE.tt
new file mode 100644
index 0000000000..61dde8d1ae
--- /dev/null
+++ b/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. \ No newline at end of file