├── templates ├── no-license.erb ├── wtfpl-2.0.erb ├── zlib.erb ├── mit.erb ├── unlicense.erb ├── bsd-simple.erb ├── bsd-3.0.erb ├── cc-zero-1.0.erb ├── lgpl-3.0.erb ├── artistic-2.0.erb ├── afl-3.0.erb ├── gpl-1.0.erb ├── apache-2.0.erb ├── epl-1.0.erb ├── mozilla-2.0.erb ├── gpl-2.0.erb ├── cc-by-4.0.erb ├── cc-by-nc-4.0.erb └── cc-by-sa-4.0.erb ├── .gitignore ├── features ├── step_definitions │ ├── debug_steps.rb │ └── license-generator_steps.rb ├── support │ ├── env.rb │ └── helpers.rb ├── list_summaries.feature ├── list_templates.feature ├── show_summary.feature ├── get_help.feature └── generate_license.feature ├── lib ├── license-generator │ ├── version.rb │ └── app.rb └── license-generator.rb ├── Gemfile ├── spec ├── spec_helper.rb └── app_spec.rb ├── bin └── licgen ├── summaries ├── mit.info ├── apache-2.0.info ├── artistic-2.0.info ├── unlicense.info ├── no-license.info ├── bsd-3.0.info ├── bsd-simple.info ├── gpl-2.0.info ├── gpl-3.0.info ├── mozilla-2.0.info ├── agpl-3.0.info ├── bsd-new.info ├── epl-1.0.info ├── lgpl-2.1.info └── lgpl-3.0.info ├── summary_maker.rb ├── CHANGELOG.md ├── Rakefile ├── license-generator.gemspec ├── README.md ├── LICENSE └── summaries.txt /templates/no-license.erb: -------------------------------------------------------------------------------- 1 | Copyright <%= Time.now.year %> <%= authors %> 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.gem 2 | .bundle 3 | Gemfile.lock 4 | pkg/* 5 | tmp/* 6 | .rvmrc 7 | .rbenv-gemsets -------------------------------------------------------------------------------- /features/step_definitions/debug_steps.rb: -------------------------------------------------------------------------------- 1 | Then /^I see the date$/ do 2 | puts Time.now.inspect 3 | end -------------------------------------------------------------------------------- /features/support/env.rb: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'bundler/setup' 3 | 4 | require 'aruba/cucumber' 5 | -------------------------------------------------------------------------------- /lib/license-generator/version.rb: -------------------------------------------------------------------------------- 1 | module License 2 | module Generator 3 | VERSION = "0.4.1" 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source "http://rubygems.org" 2 | 3 | # Specify your gem's dependencies in license-generator.gemspec 4 | gemspec 5 | -------------------------------------------------------------------------------- /features/support/helpers.rb: -------------------------------------------------------------------------------- 1 | module LicenseGenerator 2 | module CucumberHelpers 3 | end 4 | end 5 | 6 | World(LicenseGenerator::CucumberHelpers) 7 | -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require "rubygems" 2 | require "bundler/setup" 3 | 4 | require 'rspec' 5 | require 'license-generator' 6 | 7 | RSpec.configure do |config| 8 | config.fail_fast = true 9 | end 10 | -------------------------------------------------------------------------------- /bin/licgen: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | lib_dir = File.expand_path("../lib", File.dirname(__FILE__)) 4 | $:.unshift lib_dir unless $:.include?(lib_dir) 5 | 6 | require "license-generator" 7 | LicenseGenerator::App.start -------------------------------------------------------------------------------- /lib/license-generator.rb: -------------------------------------------------------------------------------- 1 | # Bullshit fix for 1.8.7 2 | begin 3 | require 'rubygems' 4 | rescue LoadError 5 | # oh well! 6 | end 7 | 8 | require 'nice-sigint' 9 | 10 | module LicenseGenerator 11 | autoload :App, "license-generator/app" 12 | end 13 | -------------------------------------------------------------------------------- /features/list_summaries.feature: -------------------------------------------------------------------------------- 1 | Feature: List Summaries 2 | In order to see the available summaries 3 | I want to list them like a boss 4 | 5 | Scenario: Run `licgen info` 6 | When I run `licgen info` 7 | Then the output should contain "bsd" 8 | And the output should contain "mit" 9 | -------------------------------------------------------------------------------- /features/list_templates.feature: -------------------------------------------------------------------------------- 1 | Feature: List templates 2 | In order to see the available templates 3 | I want to list them like a boss 4 | 5 | Scenario: Run `licgen list` 6 | When I run `licgen list` 7 | Then the output should contain "bsd" 8 | And the output should contain "mit" 9 | -------------------------------------------------------------------------------- /features/show_summary.feature: -------------------------------------------------------------------------------- 1 | Feature: Show License Summary 2 | In order to release my code to the public without worry 3 | As an open source developer 4 | I want to show a summary for a license in my project 5 | 6 | Scenario: Run with license argument 7 | When I run `licgen info mit` interactively 8 | Then the output should contain "# MIT" 9 | -------------------------------------------------------------------------------- /features/get_help.feature: -------------------------------------------------------------------------------- 1 | Feature: Get help 2 | In order to use this thing like a pro 3 | As a small scared child 4 | I want to get help 5 | 6 | Scenario: Run licken with no args 7 | When I run `licgen` 8 | Then I should see the generic help output 9 | 10 | @wip 11 | Scenario: Run licken help task 12 | When I run `licgen help` 13 | Then I should see the generic help output 14 | 15 | @wip 16 | Scenario: Run licgen help task for the list task 17 | 18 | @wip 19 | Scenario: Run licgen help task for the bsd template 20 | -------------------------------------------------------------------------------- /templates/wtfpl-2.0.erb: -------------------------------------------------------------------------------- 1 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 2 | Version 2, December 2004 3 | 4 | Copyright (C) <%= Time.now.year %> <%= authors %> 5 | 6 | Everyone is permitted to copy and distribute verbatim or modified 7 | copies of this license document, and changing it is allowed as long 8 | as the name is changed. 9 | 10 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 11 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 12 | 13 | 0. You just DO WHAT THE FUCK YOU WANT TO. 14 | 15 | -------------------------------------------------------------------------------- /features/step_definitions/license-generator_steps.rb: -------------------------------------------------------------------------------- 1 | Then /^the output should say the file "([^"]*)" was created$/ do |file| 2 | steps %{Then "the output should match /create(.+)#{file}/"} 3 | end 4 | 5 | Then /^the file "([^"]*)" should contain a copyright notice for "([^"]*)"$/ do |file, name| 6 | content = "Copyright (c) #{Time.now.year}, #{name}" 7 | check_file_content(file, content, true) 8 | end 9 | 10 | Then /^I should see the generic help output$/ do 11 | assert_partial_output("licgen [, [ ...]]", all_output) 12 | assert_partial_output("licgen help [COMMAND]", all_output) 13 | assert_partial_output("licgen list", all_output) 14 | end 15 | -------------------------------------------------------------------------------- /summaries/mit.info: -------------------------------------------------------------------------------- 1 | # MIT 2 | 3 | A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty. 4 | 5 | | Required | Permitted | Forbidden | 6 | |------------------------------|----------------|-------------| 7 | | License and copyright notice | Commercial Use | Hold Liable | 8 | | | Distribution | | 9 | | | Modification | | 10 | | | Private Use | | 11 | | | Sublicensing | | 12 | 13 | 14 | -------------------------------------------------------------------------------- /summary_maker.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/ruby 2 | 3 | summaries = IO.read('summaries.txt') 4 | 5 | summaries.split(/^### /).each {|s| 6 | next if s.empty? 7 | lines = s.strip.split(/\n/) 8 | title_line = lines[0] 9 | 10 | filename = title_line.match(/\/licenses\/([^\/]+)\//) 11 | 12 | title = title_line.match(/^\[(.*?)\]/) 13 | unless title && title.length > 0 && filename && filename.length > 0 14 | next 15 | end 16 | 17 | filename = filename[1] 18 | title = title[1] 19 | content = lines[1..-1].join("\n").strip 20 | 21 | output =<<-EOF 22 | # #{title} 23 | 24 | #{content} 25 | EOF 26 | 27 | File.open("summaries/#{filename}.info", 'w') do |f| 28 | f.puts output 29 | end 30 | } 31 | -------------------------------------------------------------------------------- /summaries/apache-2.0.info: -------------------------------------------------------------------------------- 1 | # Apache 2 | 3 | A permissive license that also provides an express grant of patent rights from contributors to users. 4 | 5 | | Required | Permitted | Forbidden | 6 | |------------------------------|----------------|---------------| 7 | | License and copyright notice | Commercial Use | Hold Liable | 8 | | State Changes | Distribution | Use Trademark | 9 | | | Modification | | 10 | | | Patent Grant | | 11 | | | Private Use | | 12 | | | Sublicensing | | 13 | 14 | 15 | -------------------------------------------------------------------------------- /summaries/artistic-2.0.info: -------------------------------------------------------------------------------- 1 | # Artistic 2 | 3 | Heavily favored by the Perl community, the Artistic license requires that modified versions of the software do not prevent users from running the standard version. 4 | 5 | | Required | Permitted | Forbidden | 6 | |------------------------------|----------------|---------------| 7 | | License and copyright notice | Commercial Use | Hold Liable | 8 | | State Changes | Distribution | Use Trademark | 9 | | | Modification | | 10 | | | Private Use | | 11 | | | Sublicensing | | 12 | 13 | 14 | -------------------------------------------------------------------------------- /summaries/unlicense.info: -------------------------------------------------------------------------------- 1 | # The Unlicense 2 | 3 | Because copyright is automatic in most countries,the Unlicense is a template to waive copyright interest in software you've written and dedicate it to the public domain. Use the Unlicense to opt out of copyright entirely. It also includes the no-warranty statement from the MIT/X11 license. 4 | 5 | | Required | Permitted | Forbidden | 6 | |----------|----------------|-------------| 7 | | | Commercial Use | Hold Liable | 8 | | | Distribution | | 9 | | | Modification | | 10 | | | Private Use | | 11 | | | Sublicensing | | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /summaries/no-license.info: -------------------------------------------------------------------------------- 1 | # No License 2 | 3 | You retain all rights and do not permit distribution, reproduction, or derivative works. You may grant some rights in cases where you publish your source code to a site that requires accepting terms of service. For example, publishing code in a public repository on GitHub requires that you allow others to view and fork your code. 4 | 5 | | Required | Permitted | Forbidden | 6 | | ---------------------------- | -------------- | ------------ | 7 | | License and copyright notice | Commercial Use | Distribution | 8 | | | Private Use | Modification | 9 | | | | Sublicensing | 10 | 11 | 12 | -------------------------------------------------------------------------------- /summaries/bsd-3.0.info: -------------------------------------------------------------------------------- 1 | # BSD ISC License 2 | 3 | A permissive license lets people do anything with your code with proper attribution and without warranty. The ISC license is functionally equivalent to the BSD 2-Clause and MIT licenses, removing some language that is no longer necessary. 4 | 5 | | Required | Permitted | Forbidden | 6 | |------------------------------|----------------|-------------| 7 | | License and copyright notice | Commercial Use | Hold Liable | 8 | | | Distribution | | 9 | | | Modification | | 10 | | | Private Use | | 11 | | | Sublicensing | | 12 | 13 | 14 | -------------------------------------------------------------------------------- /summaries/bsd-simple.info: -------------------------------------------------------------------------------- 1 | # BSD 2-Clause License 2 | 3 | A permissive license lets people do anything with your code with proper attribution and without warranty. The ISC license is functionally equivalent to the BSD 2-Clause and MIT licenses, removing some language that is no longer necessary. 4 | 5 | | Required | Permitted | Forbidden | 6 | |------------------------------|----------------|-------------| 7 | | License and copyright notice | Commercial Use | Hold Liable | 8 | | | Distribution | | 9 | | | Modification | | 10 | | | Private Use | | 11 | | | Sublicensing | | 12 | 13 | 14 | -------------------------------------------------------------------------------- /summaries/gpl-2.0.info: -------------------------------------------------------------------------------- 1 | # GPL 2 2 | 3 | GPL is the most widely used free software license and has a strong copyleft requirement. When distributing derived works, the source code of the work must be made available under the same license. There are multiple variants of the GPL, each with different requirements. 4 | 5 | | Required | Permitted | Forbidden | 6 | |------------------------------|----------------|--------------| 7 | | Disclose Source | Commercial Use | Hold Liable | 8 | | License and copyright notice | Distribution | Sublicensing | 9 | | State Changes | Modification | | 10 | | | Patent Grant | | 11 | | | Private Use | | 12 | 13 | 14 | -------------------------------------------------------------------------------- /summaries/gpl-3.0.info: -------------------------------------------------------------------------------- 1 | # GPL 3 2 | 3 | GPL is the most widely used free software license and has a strong copyleft requirement. When distributing derived works, the source code of the work must be made available under the same license. There are multiple variants of the GPL, each with different requirements. 4 | 5 | | Required | Permitted | Forbidden | 6 | |------------------------------|----------------|--------------| 7 | | Disclose Source | Commercial Use | Hold Liable | 8 | | License and copyright notice | Distribution | Sublicensing | 9 | | State Changes | Modification | | 10 | | | Patent Grant | | 11 | | | Private Use | | 12 | 13 | 14 | -------------------------------------------------------------------------------- /summaries/mozilla-2.0.info: -------------------------------------------------------------------------------- 1 | # Mozilla 2 | 3 | The Mozilla Public License (MPL 2.0) is maintained by the Mozilla foundation. This license attempts to be a compromise between the permissive BSD license and the reciprocal GPL license. 4 | 5 | | Required | Permitted | Forbidden | 6 | |------------------------------|----------------|---------------| 7 | | Disclose Source | Commercial Use | Hold Liable | 8 | | License and copyright notice | Distribution | Use Trademark | 9 | | | Modification | | 10 | | | Patent Grant | | 11 | | | Private Use | | 12 | | | Sublicensing | | 13 | 14 | 15 | -------------------------------------------------------------------------------- /summaries/agpl-3.0.info: -------------------------------------------------------------------------------- 1 | # GNU Affero GPL v3.0 2 | 3 | GPL is the most widely used free software license and has a strong copyleft requirement. When distributing derived works, the source code of the work must be made available under the same license. There are multiple variants of the GPL, each with different requirements. 4 | 5 | | Required | Permitted | Forbidden | 6 | |------------------------------|----------------|--------------| 7 | | Disclose Source | Commercial Use | Hold Liable | 8 | | License and copyright notice | Distribution | Sublicensing | 9 | | Network Use is Distribution | Modification | | 10 | | State Changes | Patent Grant | | 11 | | | Private Use | | 12 | 13 | 14 | -------------------------------------------------------------------------------- /summaries/bsd-new.info: -------------------------------------------------------------------------------- 1 | # BSD 3-clause "New" or "Revised" License 2 | 3 | A permissive license lets people do anything with your code with proper attribution and without warranty. The ISC license is functionally equivalent to the BSD 2-Clause and MIT licenses, removing some language that is no longer necessary. 4 | 5 | | Required | Permitted | Forbidden | 6 | |------------------------------|----------------|---------------| 7 | | License and copyright notice | Commercial Use | Hold Liable | 8 | | | Distribution | Use Trademark | 9 | | | Modification | | 10 | | | Private Use | | 11 | | | Sublicensing | | 12 | 13 | 14 | -------------------------------------------------------------------------------- /summaries/epl-1.0.info: -------------------------------------------------------------------------------- 1 | # Eclipse 2 | 3 | This commercially-friendly copyleft license provides the ability to commercially license binaries; a modern royalty-free patent license grant; and the ability for linked works to use other licenses, including commercial ones. 4 | 5 | | Required | Permitted | Forbidden | 6 | |------------------------------|----------------|-------------| 7 | | Disclose Source | Commercial Use | Hold Liable | 8 | | License and copyright notice | Distribution | | 9 | | | Modification | | 10 | | | Patent Grant | | 11 | | | Private Use | | 12 | | | Sublicensing | | 13 | 14 | 15 | -------------------------------------------------------------------------------- /summaries/lgpl-2.1.info: -------------------------------------------------------------------------------- 1 | # LGPL 2.1 2 | 3 | Primarily used for software libraries, LGPL requires that derived works be licensed under the same license, but works that only link to it do not fall under this restriction. There are two commonly used versions of the LGPL. 4 | 5 | | Required | Permitted | Forbidden | 6 | |------------------------------|----------------|-------------| 7 | | Disclose Source | Commercial Use | Hold Liable | 8 | | Library usage | Distribution | | 9 | | License and copyright notice | Modification | | 10 | | | Patent Grant | | 11 | | | Private Use | | 12 | | | Sublicensing | | 13 | 14 | 15 | -------------------------------------------------------------------------------- /summaries/lgpl-3.0.info: -------------------------------------------------------------------------------- 1 | # LGPL 3.0 2 | 3 | Primarily used for software libraries, LGPL requires that derived works be licensed under the same license, but works that only link to it do not fall under this restriction. There are two commonly used versions of the LGPL. 4 | 5 | | Required | Permitted | Forbidden | 6 | |------------------------------|----------------|-------------| 7 | | Disclose Source | Commercial Use | Hold Liable | 8 | | Library usage | Distribution | | 9 | | License and copyright notice | Modification | | 10 | | | Patent Grant | | 11 | | | Private Use | | 12 | | | Sublicensing | | 13 | 14 | 15 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Version 0.4.1 (2013-03-16) 2 | 3 | * New licenses: 4 | * AGPL 3.0 5 | * LGPL 2.1 6 | * LGPL 3.0 7 | * CC0 1.0 8 | * WTFPL 2.0 9 | * Zlib 10 | 11 | # Version 0.4.0 (2013-03-02) 12 | 13 | * Take authors on the command line 14 | 15 | # Version 0.3.1 (2013-02-12) 16 | 17 | * New licenses: 18 | * AFL 3.0 19 | * Mozilla 2.0 20 | 21 | # Version 0.3.0 (2012-11-19) 22 | 23 | * Binary renamed to licgen 24 | * New licenses: 25 | * Apache 2.0 26 | * GPL v1.0, v2.0, v3.0 27 | 28 | # Version 0.2.0 (2012-03-28) 29 | 30 | Add MIT license template. 31 | 32 | # Version 0.1.1 (2011-10-03) 33 | 34 | Fix for gem loading with ruby 1.8.7 35 | 36 | # Version 0.1.0 (2011-10-03) 37 | 38 | Find and load templates dynamically. Makes adding templates much easier. 39 | 40 | # Version 0.0.1 (2011-05-05) 41 | 42 | First version. Only supports BSD license. 43 | -------------------------------------------------------------------------------- /templates/zlib.erb: -------------------------------------------------------------------------------- 1 | Copyright (C) <%= Time.now.year %> <%= authors %> 2 | 3 | This software is provided 'as-is', without any express or implied 4 | warranty. In no event will the authors be held liable for any damages 5 | arising from the use of this software. 6 | 7 | Permission is granted to anyone to use this software for any purpose, 8 | including commercial applications, and to alter it and redistribute it 9 | freely, subject to the following restrictions: 10 | 11 | 1. The origin of this software must not be misrepresented; you must not 12 | claim that you wrote the original software. If you use this software 13 | in a product, an acknowledgment in the product documentation would be 14 | appreciated but is not required. 15 | 2. Altered source versions must be plainly marked as such, and must not be 16 | misrepresented as being the original software. 17 | 3. This notice may not be removed or altered from any source distribution. 18 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | require 'bundler' 2 | Bundler::GemHelper.install_tasks 3 | 4 | require 'rspec/core/rake_task' 5 | desc "Run specs" 6 | RSpec::Core::RakeTask.new(:spec) do |t| 7 | t.rspec_opts = %w(--color) 8 | end 9 | namespace :spec do 10 | desc "Run specs with output in documentation format" 11 | RSpec::Core::RakeTask.new(:doc) do |t| 12 | t.rspec_opts = ["--color", "--format d"] 13 | end 14 | end 15 | 16 | require 'cucumber/rake/task' 17 | Cucumber::Rake::Task.new(:features) do |features| 18 | features.cucumber_opts = "features --tags ~@wip --format progress" 19 | end 20 | namespace :features do 21 | Cucumber::Rake::Task.new(:pretty, "Run Cucumber features with output in pretty format") do |features| 22 | features.cucumber_opts = "features --tags ~@wip --format pretty" 23 | end 24 | Cucumber::Rake::Task.new(:wip, "Run @wip (Work In Progress) Cucumber features") do |features| 25 | features.cucumber_opts = "features --tags @wip --format progress" 26 | end 27 | end 28 | 29 | task :default => [:spec, :features] -------------------------------------------------------------------------------- /features/generate_license.feature: -------------------------------------------------------------------------------- 1 | Feature: Generate a License 2 | In order to release my code to the public without worry 3 | As an open source developer 4 | I want to generate a LICENSE file in my project 5 | 6 | Scenario: Run without authors 7 | When I run `licgen bsd` interactively 8 | And I type "Justin Blake" 9 | And I type "Hentzia" 10 | Then a file named "LICENSE" should exist 11 | And the file "LICENSE" should contain a copyright notice for "Justin Blake" 12 | And the file "LICENSE" should contain "Neither the name of Hentzia nor the names of its" 13 | 14 | Scenario: Run with authors 15 | When I run `licgen bsd "James Pearson"` interactively 16 | And I type "Hentzia" 17 | Then a file named "LICENSE" should exist 18 | And the file "LICENSE" should contain a copyright notice for "James Pearson" 19 | And the file "LICENSE" should contain "Neither the name of Hentzia nor the names of its" 20 | 21 | @wip 22 | Scenario: Bad template name 23 | When I run `licgen asdfaowefnasdfaoweranasdflao` 24 | Then I should see a graceful failure message 25 | -------------------------------------------------------------------------------- /license-generator.gemspec: -------------------------------------------------------------------------------- 1 | # -*- encoding: utf-8 -*- 2 | lib = File.expand_path('../lib/', __FILE__) 3 | $:.unshift lib unless $:.include?(lib) 4 | require "license-generator/version" 5 | 6 | Gem::Specification.new do |s| 7 | s.name = "license-generator" 8 | s.version = License::Generator::VERSION 9 | s.platform = Gem::Platform::RUBY 10 | s.authors = ["Justin Blake"] 11 | s.email = ["justin@hentzia.com"] 12 | s.homepage = "https://github.com/blaix/license-generator" 13 | s.summary = %q{Open Source License generator} 14 | s.description = %q{Generate an open source license file in your project.} 15 | 16 | s.rubyforge_project = "license-generator" 17 | 18 | s.add_dependency "thor" 19 | s.add_dependency "nice-sigint" 20 | 21 | s.add_development_dependency "rake" 22 | s.add_development_dependency "rspec" 23 | s.add_development_dependency "cucumber" 24 | s.add_development_dependency "aruba" 25 | 26 | s.files = `git ls-files`.split("\n") 27 | s.test_files = `git ls-files -- {spec,features}/*`.split("\n") 28 | s.executables << "licgen" 29 | s.require_paths = ["lib"] 30 | end 31 | -------------------------------------------------------------------------------- /templates/mit.erb: -------------------------------------------------------------------------------- 1 | Copyright (c) <%= Time.now.year %> <%= authors %> 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /spec/app_spec.rb: -------------------------------------------------------------------------------- 1 | require 'spec_helper' 2 | 3 | describe LicenseGenerator::App do 4 | 5 | before do 6 | # suppress console output to keep 7 | # from interfering with test output 8 | @_stdout = $stdout 9 | $stdout = @stdout = StringIO.new 10 | @app = LicenseGenerator::App.new 11 | end 12 | 13 | after :each do 14 | # restore $stdout 15 | $stdout = @_stdout 16 | end 17 | 18 | it "has a class-wide source_root" do 19 | LicenseGenerator::App.source_root.should == File.expand_path('../templates', File.dirname(__FILE__)) 20 | end 21 | 22 | it "has a class-wide summary_root" do 23 | LicenseGenerator::App.summary_root.should == File.expand_path('../summaries', File.dirname(__FILE__)) 24 | end 25 | 26 | it "has templates" do 27 | @app.templates.empty?.should be false 28 | end 29 | 30 | it "parses full template file names into template names" do 31 | @app.templates.should include('apache-2.0') 32 | end 33 | 34 | it "lists available templates" do 35 | @app.should_receive(:say).exactly(@app.templates.size).times 36 | @app.list 37 | end 38 | 39 | it "generates a template with a valid template name" do 40 | @app.should_receive(:template).with('mit.erb', 'LICENSE') 41 | @app.mit('Justin Blake') 42 | end 43 | 44 | end 45 | -------------------------------------------------------------------------------- /templates/unlicense.erb: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /templates/bsd-simple.erb: -------------------------------------------------------------------------------- 1 | Copyright (c) <%= Time.now.year %>, <%= authors %> 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 15 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 18 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 20 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 21 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 22 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # OSS License Generator 2 | 3 | Generate an open source license for your projects. 4 | 5 | ## Installation 6 | 7 | gem install license-generator 8 | 9 | ## Usage: 10 | 11 | licgen [, [ ...]] 12 | 13 | Too see the available license templates: 14 | 15 | licgen list 16 | 17 | ## Available licenses 18 | 19 | They are provided in the gem as [templates](templates/). 20 | 21 | ### Please add some! 22 | 23 | There are a lot. See . 24 | 25 | Simply fork, add an ERB template to the `templates` directory, and send me a 26 | pull request. 27 | 28 | Since it's ERB you can use ruby to include things like the current date. You 29 | can also prompt the user for input like this: 30 | 31 | <%= option(:name) %> 32 | 33 | Since author name will be needed for almost all templates, a special template 34 | variable is provided: 35 | 36 | <%= authors %> 37 | 38 | If authors are not specified on the command line, it will prompt the user. 39 | 40 | ## Credits 41 | 42 | * Bill Evans ([@thirteenpixels][1]) for help naming the binary and pushing to make 43 | it not hard to add templates. 44 | * Dayton Nolan ([@daytonn][2]) for fixes and new templates. 45 | * Leszek Rybicki ([@leszekr][3]) for new templates. 46 | * James Pearson ([@xiongchiamiov][4]) for authors feature and new templates. 47 | 48 | [1]: https://github.com/thirteenpixels 49 | [2]: https://github.com/daytonn 50 | [3]: https://github.com/leszekr 51 | [4]: https://github.com/xiongchiamiov 52 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011, Justin Blake 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above copyright 10 | notice, this list of conditions and the following disclaimer in the 11 | documentation and/or other materials provided with the distribution. 12 | * Neither the name of Hentzia nor the names of its 13 | contributors may be used to endorse or promote products derived from this 14 | software without specific prior written permission. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 20 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 22 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 23 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | -------------------------------------------------------------------------------- /templates/bsd-3.0.erb: -------------------------------------------------------------------------------- 1 | Copyright (c) <%= Time.now.year %>, <%= authors %> 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above copyright 10 | notice, this list of conditions and the following disclaimer in the 11 | documentation and/or other materials provided with the distribution. 12 | * Neither the name of <%= option(:organization) %> nor the names of its 13 | contributors may be used to endorse or promote products derived from this 14 | software without specific prior written permission. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 20 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 22 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 23 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | -------------------------------------------------------------------------------- /lib/license-generator/app.rb: -------------------------------------------------------------------------------- 1 | require 'thor' 2 | 3 | module LicenseGenerator 4 | class App < Thor 5 | include Thor::Actions 6 | attr_accessor :authors 7 | 8 | # Path to the templates 9 | def self.source_root 10 | File.expand_path('../../templates', File.dirname(__FILE__)) 11 | end 12 | 13 | def self.summary_root 14 | File.expand_path('../../summaries', File.dirname(__FILE__)) 15 | end 16 | 17 | desc "list", "List available license templates" 18 | def list 19 | templates.each do |template| 20 | say template 21 | end 22 | end 23 | 24 | desc "info", "Show license summary" 25 | def info(license = nil) 26 | summaries = {} 27 | Dir.glob("#{LicenseGenerator::App.summary_root}/**/*.info") do |f| 28 | summaries[File.basename(f, '.info')] = f 29 | end 30 | 31 | if license 32 | if summaries.key? (license) 33 | $stdout.puts IO.read(summaries[license]) 34 | else 35 | say "No summary available for #{license}" 36 | end 37 | else 38 | say "Available license summaries:" 39 | say "----------------------------" 40 | summaries.each do |title, summary| 41 | say title 42 | end 43 | say 44 | say "Usage: licgen info [license]" 45 | end 46 | end 47 | 48 | def method_missing(meth, *args) 49 | self.authors = args.empty? ? option(:authors) : args.join(', ') 50 | template "#{meth}.erb", "LICENSE" 51 | end 52 | 53 | def help(task = nil) 54 | unless task 55 | say "Generate an open source license for your project." 56 | say "" 57 | say "Usage:" 58 | say " licgen [, [ ...]]" 59 | say "" 60 | 61 | say "Other " 62 | end 63 | super 64 | end 65 | 66 | no_tasks do 67 | def templates 68 | @templates ||= Dir.glob("#{LicenseGenerator::App.source_root}/**/*.erb").map { |t| File.basename(t, '.erb') } 69 | end 70 | end 71 | 72 | private 73 | 74 | def option(name) 75 | @template_options ||= {} 76 | @template_options[name] ||= ask("#{name.capitalize}:") 77 | @template_options[name] 78 | end 79 | end 80 | end 81 | -------------------------------------------------------------------------------- /templates/cc-zero-1.0.erb: -------------------------------------------------------------------------------- 1 | To the extent possible under law, <%= authors %> has waived all copyright 2 | and related or neighboring rights to this work. 3 | 4 | The laws of most jurisdictions throughout the world automatically 5 | confer exclusive Copyright and Related Rights (defined below) upon the 6 | creator and subsequent owner(s) (each and all, an "owner") of an 7 | original work of authorship and/or a database (each, a "Work"). 8 | 9 | Certain owners wish to permanently relinquish those rights to a Work 10 | for the purpose of contributing to a commons of creative, cultural and 11 | scientific works ("Commons") that the public can reliably and without 12 | fear of later claims of infringement build upon, modify, incorporate 13 | in other works, reuse and redistribute as freely as possible in any 14 | form whatsoever and for any purposes, including without limitation 15 | commercial purposes. These owners may contribute to the Commons to 16 | promote the ideal of a free culture and the further production of 17 | creative, cultural and scientific works, or to gain reputation or 18 | greater distribution for their Work in part through the use and 19 | efforts of others. 20 | 21 | For these and/or other purposes and motivations, and without any 22 | expectation of additional consideration or compensation, the person 23 | associating CC0 with a Work (the "Affirmer"), to the extent that he or 24 | she is an owner of Copyright and Related Rights in the Work, 25 | voluntarily elects to apply CC0 to the Work and publicly distribute 26 | the Work under its terms, with knowledge of his or her Copyright and 27 | Related Rights in the Work and the meaning and intended legal effect 28 | of CC0 on those rights. 29 | 30 | 1. Copyright and Related Rights. A Work made available under CC0 may 31 | be protected by copyright and related or neighboring rights 32 | ("Copyright and Related Rights"). Copyright and Related Rights 33 | include, but are not limited to, the following: 34 | 35 | the right to reproduce, adapt, distribute, perform, display, 36 | communicate, and translate a Work; moral rights retained by the 37 | original author(s) and/or performer(s); publicity and privacy 38 | rights pertaining to a person's image or likeness depicted in a 39 | Work; rights protecting against unfair competition in regards to a 40 | Work, subject to the limitations in paragraph 4(a), below; rights 41 | protecting the extraction, dissemination, use and reuse of data in 42 | a Work; database rights (such as those arising under Directive 43 | 96/9/EC of the European Parliament and of the Council of 11 March 44 | 1996 on the legal protection of databases, and under any national 45 | implementation thereof, including any amended or successor version 46 | of such directive); and other similar, equivalent or corresponding 47 | rights throughout the world based on applicable law or treaty, and 48 | any national implementations thereof. 49 | 50 | 2. Waiver. To the greatest extent permitted by, but not in 51 | contravention of, applicable law, Affirmer hereby overtly, fully, 52 | permanently, irrevocably and unconditionally waives, abandons, and 53 | surrenders all of Affirmer's Copyright and Related Rights and 54 | associated claims and causes of action, whether now known or unknown 55 | (including existing as well as future claims and causes of action), in 56 | the Work (i) in all territories worldwide, (ii) for the maximum 57 | duration provided by applicable law or treaty (including future time 58 | extensions), (iii) in any current or future medium and for any number 59 | of copies, and (iv) for any purpose whatsoever, including without 60 | limitation commercial, advertising or promotional purposes (the 61 | "Waiver"). Affirmer makes the Waiver for the benefit of each member of 62 | the public at large and to the detriment of Affirmer's heirs and 63 | successors, fully intending that such Waiver shall not be subject to 64 | revocation, rescission, cancellation, termination, or any other legal 65 | or equitable action to disrupt the quiet enjoyment of the Work by the 66 | public as contemplated by Affirmer's express Statement of Purpose. 67 | 68 | 3. Public License Fallback. Should any part of the Waiver for any 69 | reason be judged legally invalid or ineffective under applicable law, 70 | then the Waiver shall be preserved to the maximum extent permitted 71 | taking into account Affirmer's express Statement of Purpose. In 72 | addition, to the extent the Waiver is so judged Affirmer hereby grants 73 | to each affected person a royalty-free, non transferable, non 74 | sublicensable, non exclusive, irrevocable and unconditional license to 75 | exercise Affirmer's Copyright and Related Rights in the Work (i) in 76 | all territories worldwide, (ii) for the maximum duration provided by 77 | applicable law or treaty (including future time extensions), (iii) in 78 | any current or future medium and for any number of copies, and (iv) 79 | for any purpose whatsoever, including without limitation commercial, 80 | advertising or promotional purposes (the "License"). The License shall 81 | be deemed effective as of the date CC0 was applied by Affirmer to the 82 | Work. Should any part of the License for any reason be judged legally 83 | invalid or ineffective under applicable law, such partial invalidity 84 | or ineffectiveness shall not invalidate the remainder of the License, 85 | and in such case Affirmer hereby affirms that he or she will not (i) 86 | exercise any of his or her remaining Copyright and Related Rights in 87 | the Work or (ii) assert any associated claims and causes of action 88 | with respect to the Work, in either case contrary to Affirmer's 89 | express Statement of Purpose. 90 | 91 | 4. Limitations and Disclaimers. 92 | 93 | No trademark or patent rights held by Affirmer are waived, 94 | abandoned, surrendered, licensed or otherwise affected by this 95 | document. Affirmer offers the Work as-is and makes no 96 | representations or warranties of any kind concerning the Work, 97 | express, implied, statutory or otherwise, including without 98 | limitation warranties of title, merchantability, fitness for a 99 | particular purpose, non infringement, or the absence of latent or 100 | other defects, accuracy, or the present or absence of errors, 101 | whether or not discoverable, all to the greatest extent 102 | permissible under applicable law. Affirmer disclaims 103 | responsibility for clearing rights of other persons that may apply 104 | to the Work or any use thereof, including without limitation any 105 | person's Copyright and Related Rights in the Work. Further, 106 | Affirmer disclaims responsibility for obtaining any necessary 107 | consents, permissions or other rights required for any use of the 108 | Work. Affirmer understands and acknowledges that Creative Commons 109 | is not a party to this document and has no duty or obligation with 110 | respect to this CC0 or use of the Work. 111 | 112 | -------------------------------------------------------------------------------- /summaries.txt: -------------------------------------------------------------------------------- 1 | ### [Apache](http://choosealicense.com/licenses/apache-2.0/) 2 | 3 | A permissive license that also provides an express grant of patent rights from contributors to users. 4 | 5 | Required 6 | 7 | *  License and copyright notice 8 | *  State Changes 9 | 10 | Permitted 11 | 12 | *  Commercial Use 13 | *  Distribution 14 | *  Modification 15 | *  Patent Grant 16 | *  Private Use 17 | *  Sublicensing 18 | 19 | Forbidden 20 | 21 | *  Hold Liable 22 | *  Use Trademark 23 | 24 | [View full Apache License 2.0 license »](http://choosealicense.com/licenses/apache-2.0/) 25 | 26 | ### [GPL](http://choosealicense.com/licenses/gpl-2.0/) 27 | 28 | GPL is the most widely used free software license and has a strong copyleft requirement. When distributing derived works, the source code of the work must be made available under the same license. There are multiple variants of the GPL, each with different requirements. 29 | 30 | * [GNU Affero GPL v3.0](http://choosealicense.com/licenses/#agpl-v3) 31 | * [GNU GPL v2.0](http://choosealicense.com/licenses/#gpl-v2) 32 | * [GNU GPL v3.0](http://choosealicense.com/licenses/#gpl-v3) 33 | 34 | Required 35 | 36 | *  Disclose Source 37 | *  License and copyright notice 38 | *  State Changes 39 | 40 | Permitted 41 | 42 | *  Commercial Use 43 | *  Distribution 44 | *  Modification 45 | *  Patent Grant 46 | *  Private Use 47 | 48 | Forbidden 49 | 50 | *  Hold Liable 51 | *  Sublicensing 52 | 53 | [View full GNU General Public License v3.0 license »](http://choosealicense.com/licenses/gpl-3.0/) 54 | 55 | ### [MIT](http://choosealicense.com/licenses/mit/) 56 | 57 | A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty. 58 | 59 | Required 60 | 61 | *  License and copyright notice 62 | 63 | Permitted 64 | 65 | *  Commercial Use 66 | *  Distribution 67 | *  Modification 68 | *  Private Use 69 | *  Sublicensing 70 | 71 | Forbidden 72 | 73 | *  Hold Liable 74 | 75 | [View full MIT License license »](http://choosealicense.com/licenses/mit/) 76 | 77 | ### [Artistic](http://choosealicense.com/licenses/artistic-2.0/) 78 | 79 | Heavily favored by the Perl community, the Artistic license requires that modified versions of the software do not prevent users from running the standard version. 80 | 81 | Required 82 | 83 | *  License and copyright notice 84 | *  State Changes 85 | 86 | Permitted 87 | 88 | *  Commercial Use 89 | *  Distribution 90 | *  Modification 91 | *  Private Use 92 | *  Sublicensing 93 | 94 | Forbidden 95 | 96 | *  Hold Liable 97 | *  Use Trademark 98 | 99 | [View full Artistic License 2.0 license »](http://choosealicense.com/licenses/artistic-2.0/) 100 | 101 | ### [Eclipse](http://choosealicense.com/licenses/epl-1.0/) 102 | 103 | This commercially-friendly copyleft license provides the ability to commercially license binaries; a modern royalty-free patent license grant; and the ability for linked works to use other licenses, including commercial ones. 104 | 105 | Required 106 | 107 | *  Disclose Source 108 | *  License and copyright notice 109 | 110 | Permitted 111 | 112 | *  Commercial Use 113 | *  Distribution 114 | *  Modification 115 | *  Patent Grant 116 | *  Private Use 117 | *  Sublicensing 118 | 119 | Forbidden 120 | 121 | *  Hold Liable 122 | 123 | [View full Eclipse Public License 1.0 license »](http://choosealicense.com/licenses/epl-1.0/) 124 | 125 | ### [BSD](http://choosealicense.com/licenses/isc/) 126 | 127 | A permissive license lets people do anything with your code with proper attribution and without warranty. The ISC license is functionally equivalent to the [BSD 2-Clause](http://choosealicense.com/licenses/bsd) and [MIT](http://choosealicense.com/licenses/mit) licenses, removing some language that is no longer necessary. 128 | 129 | * [Simplified BSD](http://choosealicense.com/licenses/#bsd) 130 | * [New BSD](http://choosealicense.com/licenses/#bsd-3) 131 | * [ISC License](http://choosealicense.com/licenses/#isc) 132 | 133 | Required 134 | 135 | *  License and copyright notice 136 | 137 | Permitted 138 | 139 | *  Commercial Use 140 | *  Distribution 141 | *  Modification 142 | *  Private Use 143 | *  Sublicensing 144 | 145 | Forbidden 146 | 147 | *  Hold Liable 148 | *  Use Trademark 149 | 150 | 151 | Required 152 | 153 | *  License and copyright notice 154 | 155 | Permitted 156 | 157 | *  Commercial Use 158 | *  Distribution 159 | *  Modification 160 | *  Private Use 161 | *  Sublicensing 162 | 163 | Forbidden 164 | 165 | *  Hold Liable 166 | 167 | [View full ISC License license »](http://choosealicense.com/licenses/isc/) 168 | 169 | ### [LGPL](http://choosealicense.com/licenses/lgpl-2.1/) 170 | 171 | Primarily used for software libraries, LGPL requires that derived works be licensed under the same license, but works that only link to it do not fall under this restriction. There are two commonly used versions of the LGPL. 172 | 173 | * [GNU LGPL v2.1](http://choosealicense.com/licenses/#lgpl-v2_1) 174 | * [GNU LGPL v3.0](http://choosealicense.com/licenses/#lgpl-v3) 175 | 176 | Required 177 | 178 | *  Disclose Source 179 | *  Library usage 180 | *  License and copyright notice 181 | 182 | Permitted 183 | 184 | *  Commercial Use 185 | *  Distribution 186 | *  Modification 187 | *  Patent Grant 188 | *  Private Use 189 | *  Sublicensing 190 | 191 | Forbidden 192 | 193 | *  Hold Liable 194 | 195 | [View full GNU Lesser General Public License v2.1 license »](http://choosealicense.com/licenses/lgpl-2.1/) 196 | 197 | ### [Mozilla](http://choosealicense.com/licenses/mpl-2.0/) 198 | 199 | The Mozilla Public License (MPL 2.0) is maintained by the Mozilla foundation. This license attempts to be a compromise between the permissive BSD license and the reciprocal GPL license. 200 | 201 | Required 202 | 203 | *  Disclose Source 204 | *  License and copyright notice 205 | 206 | Permitted 207 | 208 | *  Commercial Use 209 | *  Distribution 210 | *  Modification 211 | *  Patent Grant 212 | *  Private Use 213 | *  Sublicensing 214 | 215 | Forbidden 216 | 217 | *  Hold Liable 218 | *  Use Trademark 219 | 220 | [View full Mozilla Public License 2.0 license »](http://choosealicense.com/licenses/mpl-2.0/) 221 | 222 | ### [No License](http://choosealicense.com/licenses/no-license/) 223 | 224 | You retain all rights and do not permit distribution, reproduction, or derivative works. You may grant some rights in cases where you publish your source code to a site that requires accepting terms of service. For example, publishing code in a public repository on GitHub requires that you allow others to view and fork your code. 225 | 226 | Required 227 | 228 | *  License and copyright notice 229 | 230 | Permitted 231 | 232 | *  Commercial Use 233 | *  Private Use 234 | 235 | Forbidden 236 | 237 | *  Distribution 238 | *  Modification 239 | *  Sublicensing 240 | 241 | [View full No License license »](http://choosealicense.com/licenses/no-license/) 242 | 243 | ### [Public Domain Dedication](http://choosealicense.com/licenses/unlicense/) 244 | 245 | Because copyright is automatic in most countries,[the Unlicense](http://unlicense.org/) is a template to waive copyright interest in software you've written and dedicate it to the public domain. Use the Unlicense to opt out of copyright entirely. It also includes the no-warranty statement from the MIT/X11 license. 246 | 247 | * [CC0 1.0 Universal](http://choosealicense.com/licenses/#cc0) 248 | * [The Unlicense](http://choosealicense.com/licenses/#unlicense) 249 | 250 | Permitted 251 | 252 | *  Commercial Use 253 | *  Distribution 254 | *  Modification 255 | *  Private Use 256 | *  Sublicensing 257 | 258 | Forbidden 259 | 260 | *  Hold Liable 261 | 262 | [View full The Unlicense license »](http://choosealicense.com/licenses/unlicense/) 263 | -------------------------------------------------------------------------------- /templates/lgpl-3.0.erb: -------------------------------------------------------------------------------- 1 | Copyright (C) <%= Time.now.year %> <%= authors %> 2 | 3 | This library is free software; you can redistribute it and/or 4 | modify it under the terms of the GNU Lesser General Public 5 | License as published by the Free Software Foundation; either 6 | version 3.0 of the License, or (at your option) any later version. 7 | 8 | This library is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 | Lesser General Public License for more details. 12 | 13 | GNU LESSER GENERAL PUBLIC LICENSE 14 | Version 3, 29 June 2007 15 | 16 | Copyright (C) 2007 Free Software Foundation, Inc. 17 | Everyone is permitted to copy and distribute verbatim copies 18 | of this license document, but changing it is not allowed. 19 | 20 | 21 | This version of the GNU Lesser General Public License incorporates 22 | the terms and conditions of version 3 of the GNU General Public 23 | License, supplemented by the additional permissions listed below. 24 | 25 | 0. Additional Definitions. 26 | 27 | As used herein, "this License" refers to version 3 of the GNU Lesser 28 | General Public License, and the "GNU GPL" refers to version 3 of the GNU 29 | General Public License. 30 | 31 | "The Library" refers to a covered work governed by this License, 32 | other than an Application or a Combined Work as defined below. 33 | 34 | An "Application" is any work that makes use of an interface provided 35 | by the Library, but which is not otherwise based on the Library. 36 | Defining a subclass of a class defined by the Library is deemed a mode 37 | of using an interface provided by the Library. 38 | 39 | A "Combined Work" is a work produced by combining or linking an 40 | Application with the Library. The particular version of the Library 41 | with which the Combined Work was made is also called the "Linked 42 | Version". 43 | 44 | The "Minimal Corresponding Source" for a Combined Work means the 45 | Corresponding Source for the Combined Work, excluding any source code 46 | for portions of the Combined Work that, considered in isolation, are 47 | based on the Application, and not on the Linked Version. 48 | 49 | The "Corresponding Application Code" for a Combined Work means the 50 | object code and/or source code for the Application, including any data 51 | and utility programs needed for reproducing the Combined Work from the 52 | Application, but excluding the System Libraries of the Combined Work. 53 | 54 | 1. Exception to Section 3 of the GNU GPL. 55 | 56 | You may convey a covered work under sections 3 and 4 of this License 57 | without being bound by section 3 of the GNU GPL. 58 | 59 | 2. Conveying Modified Versions. 60 | 61 | If you modify a copy of the Library, and, in your modifications, a 62 | facility refers to a function or data to be supplied by an Application 63 | that uses the facility (other than as an argument passed when the 64 | facility is invoked), then you may convey a copy of the modified 65 | version: 66 | 67 | a) under this License, provided that you make a good faith effort to 68 | ensure that, in the event an Application does not supply the 69 | function or data, the facility still operates, and performs 70 | whatever part of its purpose remains meaningful, or 71 | 72 | b) under the GNU GPL, with none of the additional permissions of 73 | this License applicable to that copy. 74 | 75 | 3. Object Code Incorporating Material from Library Header Files. 76 | 77 | The object code form of an Application may incorporate material from 78 | a header file that is part of the Library. You may convey such object 79 | code under terms of your choice, provided that, if the incorporated 80 | material is not limited to numerical parameters, data structure 81 | layouts and accessors, or small macros, inline functions and templates 82 | (ten or fewer lines in length), you do both of the following: 83 | 84 | a) Give prominent notice with each copy of the object code that the 85 | Library is used in it and that the Library and its use are 86 | covered by this License. 87 | 88 | b) Accompany the object code with a copy of the GNU GPL and this license 89 | document. 90 | 91 | 4. Combined Works. 92 | 93 | You may convey a Combined Work under terms of your choice that, 94 | taken together, effectively do not restrict modification of the 95 | portions of the Library contained in the Combined Work and reverse 96 | engineering for debugging such modifications, if you also do each of 97 | the following: 98 | 99 | a) Give prominent notice with each copy of the Combined Work that 100 | the Library is used in it and that the Library and its use are 101 | covered by this License. 102 | 103 | b) Accompany the Combined Work with a copy of the GNU GPL and this license 104 | document. 105 | 106 | c) For a Combined Work that displays copyright notices during 107 | execution, include the copyright notice for the Library among 108 | these notices, as well as a reference directing the user to the 109 | copies of the GNU GPL and this license document. 110 | 111 | d) Do one of the following: 112 | 113 | 0) Convey the Minimal Corresponding Source under the terms of this 114 | License, and the Corresponding Application Code in a form 115 | suitable for, and under terms that permit, the user to 116 | recombine or relink the Application with a modified version of 117 | the Linked Version to produce a modified Combined Work, in the 118 | manner specified by section 6 of the GNU GPL for conveying 119 | Corresponding Source. 120 | 121 | 1) Use a suitable shared library mechanism for linking with the 122 | Library. A suitable mechanism is one that (a) uses at run time 123 | a copy of the Library already present on the user's computer 124 | system, and (b) will operate properly with a modified version 125 | of the Library that is interface-compatible with the Linked 126 | Version. 127 | 128 | e) Provide Installation Information, but only if you would otherwise 129 | be required to provide such information under section 6 of the 130 | GNU GPL, and only to the extent that such information is 131 | necessary to install and execute a modified version of the 132 | Combined Work produced by recombining or relinking the 133 | Application with a modified version of the Linked Version. (If 134 | you use option 4d0, the Installation Information must accompany 135 | the Minimal Corresponding Source and Corresponding Application 136 | Code. If you use option 4d1, you must provide the Installation 137 | Information in the manner specified by section 6 of the GNU GPL 138 | for conveying Corresponding Source.) 139 | 140 | 5. Combined Libraries. 141 | 142 | You may place library facilities that are a work based on the 143 | Library side by side in a single library together with other library 144 | facilities that are not Applications and are not covered by this 145 | License, and convey such a combined library under terms of your 146 | choice, if you do both of the following: 147 | 148 | a) Accompany the combined library with a copy of the same work based 149 | on the Library, uncombined with any other library facilities, 150 | conveyed under the terms of this License. 151 | 152 | b) Give prominent notice with the combined library that part of it 153 | is a work based on the Library, and explaining where to find the 154 | accompanying uncombined form of the same work. 155 | 156 | 6. Revised Versions of the GNU Lesser General Public License. 157 | 158 | The Free Software Foundation may publish revised and/or new versions 159 | of the GNU Lesser General Public License from time to time. Such new 160 | versions will be similar in spirit to the present version, but may 161 | differ in detail to address new problems or concerns. 162 | 163 | Each version is given a distinguishing version number. If the 164 | Library as you received it specifies that a certain numbered version 165 | of the GNU Lesser General Public License "or any later version" 166 | applies to it, you have the option of following the terms and 167 | conditions either of that published version or of any later version 168 | published by the Free Software Foundation. If the Library as you 169 | received it does not specify a version number of the GNU Lesser 170 | General Public License, you may choose any version of the GNU Lesser 171 | General Public License ever published by the Free Software Foundation. 172 | 173 | If the Library as you received it specifies that a proxy can decide 174 | whether future versions of the GNU Lesser General Public License shall 175 | apply, that proxy's public statement of acceptance of any version is 176 | permanent authorization for you to choose that version for the 177 | Library. 178 | -------------------------------------------------------------------------------- /templates/artistic-2.0.erb: -------------------------------------------------------------------------------- 1 | The Artistic License 2.0 2 | 3 | Copyright (c) <%= Time.now.year %> <%= authors %> 4 | 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | This license establishes the terms under which a given free software 11 | Package may be copied, modified, distributed, and/or redistributed. 12 | The intent is that the Copyright Holder maintains some artistic 13 | control over the development of that Package while still keeping the 14 | Package available as open source and free software. 15 | 16 | You are always permitted to make arrangements wholly outside of this 17 | license directly with the Copyright Holder of a given Package. If the 18 | terms of this license do not permit the full use that you propose to 19 | make of the Package, you should contact the Copyright Holder and seek 20 | a different licensing arrangement. 21 | 22 | Definitions 23 | 24 | "Copyright Holder" means the individual(s) or organization(s) 25 | named in the copyright notice for the entire Package. 26 | 27 | "Contributor" means any party that has contributed code or other 28 | material to the Package, in accordance with the Copyright Holder's 29 | procedures. 30 | 31 | "You" and "your" means any person who would like to copy, 32 | distribute, or modify the Package. 33 | 34 | "Package" means the collection of files distributed by the 35 | Copyright Holder, and derivatives of that collection and/or of 36 | those files. A given Package may consist of either the Standard 37 | Version, or a Modified Version. 38 | 39 | "Distribute" means providing a copy of the Package or making it 40 | accessible to anyone else, or in the case of a company or 41 | organization, to others outside of your company or organization. 42 | 43 | "Distributor Fee" means any fee that you charge for Distributing 44 | this Package or providing support for this Package to another 45 | party. It does not mean licensing fees. 46 | 47 | "Standard Version" refers to the Package if it has not been 48 | modified, or has been modified only in ways explicitly requested 49 | by the Copyright Holder. 50 | 51 | "Modified Version" means the Package, if it has been changed, and 52 | such changes were not explicitly requested by the Copyright 53 | Holder. 54 | 55 | "Original License" means this Artistic License as Distributed with 56 | the Standard Version of the Package, in its current version or as 57 | it may be modified by The Perl Foundation in the future. 58 | 59 | "Source" form means the source code, documentation source, and 60 | configuration files for the Package. 61 | 62 | "Compiled" form means the compiled bytecode, object code, binary, 63 | or any other form resulting from mechanical transformation or 64 | translation of the Source form. 65 | 66 | 67 | Permission for Use and Modification Without Distribution 68 | 69 | (1) You are permitted to use the Standard Version and create and use 70 | Modified Versions for any purpose without restriction, provided that 71 | you do not Distribute the Modified Version. 72 | 73 | 74 | Permissions for Redistribution of the Standard Version 75 | 76 | (2) You may Distribute verbatim copies of the Source form of the 77 | Standard Version of this Package in any medium without restriction, 78 | either gratis or for a Distributor Fee, provided that you duplicate 79 | all of the original copyright notices and associated disclaimers. At 80 | your discretion, such verbatim copies may or may not include a 81 | Compiled form of the Package. 82 | 83 | (3) You may apply any bug fixes, portability changes, and other 84 | modifications made available from the Copyright Holder. The resulting 85 | Package will still be considered the Standard Version, and as such 86 | will be subject to the Original License. 87 | 88 | 89 | Distribution of Modified Versions of the Package as Source 90 | 91 | (4) You may Distribute your Modified Version as Source (either gratis 92 | or for a Distributor Fee, and with or without a Compiled form of the 93 | Modified Version) provided that you clearly document how it differs 94 | from the Standard Version, including, but not limited to, documenting 95 | any non-standard features, executables, or modules, and provided that 96 | you do at least ONE of the following: 97 | 98 | (a) make the Modified Version available to the Copyright Holder 99 | of the Standard Version, under the Original License, so that the 100 | Copyright Holder may include your modifications in the Standard 101 | Version. 102 | 103 | (b) ensure that installation of your Modified Version does not 104 | prevent the user installing or running the Standard Version. In 105 | addition, the Modified Version must bear a name that is different 106 | from the name of the Standard Version. 107 | 108 | (c) allow anyone who receives a copy of the Modified Version to 109 | make the Source form of the Modified Version available to others 110 | under 111 | 112 | (i) the Original License or 113 | 114 | (ii) a license that permits the licensee to freely copy, 115 | modify and redistribute the Modified Version using the same 116 | licensing terms that apply to the copy that the licensee 117 | received, and requires that the Source form of the Modified 118 | Version, and of any works derived from it, be made freely 119 | available in that license fees are prohibited but Distributor 120 | Fees are allowed. 121 | 122 | 123 | Distribution of Compiled Forms of the Standard Version 124 | or Modified Versions without the Source 125 | 126 | (5) You may Distribute Compiled forms of the Standard Version without 127 | the Source, provided that you include complete instructions on how to 128 | get the Source of the Standard Version. Such instructions must be 129 | valid at the time of your distribution. If these instructions, at any 130 | time while you are carrying out such distribution, become invalid, you 131 | must provide new instructions on demand or cease further distribution. 132 | If you provide valid instructions or cease distribution within thirty 133 | days after you become aware that the instructions are invalid, then 134 | you do not forfeit any of your rights under this license. 135 | 136 | (6) You may Distribute a Modified Version in Compiled form without 137 | the Source, provided that you comply with Section 4 with respect to 138 | the Source of the Modified Version. 139 | 140 | 141 | Aggregating or Linking the Package 142 | 143 | (7) You may aggregate the Package (either the Standard Version or 144 | Modified Version) with other packages and Distribute the resulting 145 | aggregation provided that you do not charge a licensing fee for the 146 | Package. Distributor Fees are permitted, and licensing fees for other 147 | components in the aggregation are permitted. The terms of this license 148 | apply to the use and Distribution of the Standard or Modified Versions 149 | as included in the aggregation. 150 | 151 | (8) You are permitted to link Modified and Standard Versions with 152 | other works, to embed the Package in a larger work of your own, or to 153 | build stand-alone binary or bytecode versions of applications that 154 | include the Package, and Distribute the result without restriction, 155 | provided the result does not expose a direct interface to the Package. 156 | 157 | 158 | Items That are Not Considered Part of a Modified Version 159 | 160 | (9) Works (including, but not limited to, modules and scripts) that 161 | merely extend or make use of the Package, do not, by themselves, cause 162 | the Package to be a Modified Version. In addition, such works are not 163 | considered parts of the Package itself, and are not subject to the 164 | terms of this license. 165 | 166 | 167 | General Provisions 168 | 169 | (10) Any use, modification, and distribution of the Standard or 170 | Modified Versions is governed by this Artistic License. By using, 171 | modifying or distributing the Package, you accept this license. Do not 172 | use, modify, or distribute the Package, if you do not accept this 173 | license. 174 | 175 | (11) If your Modified Version has been derived from a Modified 176 | Version made by someone other than you, you are nevertheless required 177 | to ensure that your Modified Version complies with the requirements of 178 | this license. 179 | 180 | (12) This license does not grant you the right to use any trademark, 181 | service mark, tradename, or logo of the Copyright Holder. 182 | 183 | (13) This license includes the non-exclusive, worldwide, 184 | free-of-charge patent license to make, have made, use, offer to sell, 185 | sell, import and otherwise transfer the Package with respect to any 186 | patent claims licensable by the Copyright Holder that are necessarily 187 | infringed by the Package. If you institute patent litigation 188 | (including a cross-claim or counterclaim) against any party alleging 189 | that the Package constitutes direct or contributory patent 190 | infringement, then this Artistic License to you shall terminate on the 191 | date that such litigation is filed. 192 | 193 | (14) Disclaimer of Warranty: 194 | THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS 195 | IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED 196 | WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR 197 | NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL 198 | LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL 199 | BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL 200 | DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF 201 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 202 | -------------------------------------------------------------------------------- /templates/afl-3.0.erb: -------------------------------------------------------------------------------- 1 | Copyright (c) <%= Time.now.year %> <%= authors %> 2 | 3 | Academic Free License ("AFL") v. 3.0 4 | 5 | This Academic Free License (the "License") applies to any original 6 | work of authorship (the "Original Work") whose owner (the "Licensor") 7 | has placed the following licensing notice adjacent to the copyright 8 | notice for the Original Work: 9 | 10 | Licensed under the Academic Free License version 3.0 11 | 12 | 1) Grant of Copyright License. Licensor grants You a worldwide, 13 | royalty- free, non-exclusive, sublicensable license, for the duration 14 | of the copyright, to do the following: 15 | 16 | a) to reproduce the Original Work in copies, either alone or as 17 | part of a collective work; 18 | 19 | b) to translate, adapt, alter, transform, modify, or arrange the 20 | Original Work, thereby creating derivative works ("Derivative 21 | Works") based upon the Original Work; 22 | 23 | c) to distribute or communicate copies of the Original Work and 24 | Derivative Works to the public, under any license of your choice 25 | that does not contradict the terms and conditions, including 26 | Licensor's reserved rights and remedies, in this Academic Free 27 | License; 28 | 29 | d) to perform the Original Work publicly; and 30 | 31 | e) to display the Original Work publicly. 32 | 33 | 2) Grant of Patent License. Licensor grants You a worldwide, royalty- 34 | free, non-exclusive, sublicensable license, under patent claims owned 35 | or controlled by the Licensor that are embodied in the Original Work 36 | as furnished by the Licensor, for the duration of the patents, to 37 | make, use, sell, offer for sale, have made, and import the Original 38 | Work and Derivative Works. 39 | 40 | 3) Grant of Source Code License. The term "Source Code" means the 41 | preferred form of the Original Work for making modifications to it and 42 | all available documentation describing how to modify the Original 43 | Work. Licensor agrees to provide a machine-readable copy of the Source 44 | Code of the Original Work along with each copy of the Original Work 45 | that Licensor distributes. Licensor reserves the right to satisfy this 46 | obligation by placing a machine-readable copy of the Source Code in an 47 | information repository reasonably calculated to permit inexpensive and 48 | convenient access by You for as long as Licensor continues to 49 | distribute the Original Work. 50 | 51 | 4) Exclusions From License Grant. Neither the names of Licensor, nor 52 | the names of any contributors to the Original Work, nor any of their 53 | trademarks or service marks, may be used to endorse or promote 54 | products derived from this Original Work without express prior 55 | permission of the Licensor. Except as expressly stated herein, nothing 56 | in this License grants any license to Licensor's trademarks, 57 | copyrights, patents, trade secrets or any other intellectual property. 58 | No patent license is granted to make, use, sell, offer for sale, have 59 | made, or import embodiments of any patent claims other than the 60 | licensed claims defined in Section 2. No license is granted to the 61 | trademarks of Licensor even if such marks are included in the Original 62 | Work. Nothing in this License shall be interpreted to prohibit 63 | Licensor from licensing under terms different from this License any 64 | Original Work that Licensor otherwise would have a right to license. 65 | 66 | 5) External Deployment. The term "External Deployment" means the use, 67 | distribution, or communication of the Original Work or Derivative 68 | Works in any way such that the Original Work or Derivative Works may 69 | be used by anyone other than You, whether those works are distributed 70 | or communicated to those persons or made available as an application 71 | intended for use over a network. As an express condition for the 72 | grants of license hereunder, You must treat any External Deployment by 73 | You of the Original Work or a Derivative Work as a distribution under 74 | section 1(c). 75 | 76 | 6) Attribution Rights. You must retain, in the Source Code of any 77 | Derivative Works that You create, all copyright, patent, or trademark 78 | notices from the Source Code of the Original Work, as well as any 79 | notices of licensing and any descriptive text identified therein as an 80 | "Attribution Notice." You must cause the Source Code for any 81 | Derivative Works that You create to carry a prominent Attribution 82 | Notice reasonably calculated to inform recipients that You have 83 | modified the Original Work. 84 | 85 | 7) Warranty of Provenance and Disclaimer of Warranty. Licensor 86 | warrants that the copyright in and to the Original Work and the patent 87 | rights granted herein by Licensor are owned by the Licensor or are 88 | sublicensed to You under the terms of this License with the permission 89 | of the contributor(s) of those copyrights and patent rights. Except as 90 | expressly stated in the immediately preceding sentence, the Original 91 | Work is provided under this License on an "AS IS" BASIS and WITHOUT 92 | WARRANTY, either express or implied, including, without limitation, 93 | the warranties of non-infringement, merchantability or fitness for a 94 | particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL 95 | WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential 96 | part of this License. No license to the Original Work is granted by 97 | this License except under this disclaimer. 98 | 99 | 8) Limitation of Liability. Under no circumstances and under no legal 100 | theory, whether in tort (including negligence), contract, or 101 | otherwise, shall the Licensor be liable to anyone for any indirect, 102 | special, incidental, or consequential damages of any character arising 103 | as a result of this License or the use of the Original Work including, 104 | without limitation, damages for loss of goodwill, work stoppage, 105 | computer failure or malfunction, or any and all other commercial 106 | damages or losses. This limitation of liability shall not apply to the 107 | extent applicable law prohibits such limitation. 108 | 109 | 9) Acceptance and Termination. If, at any time, You expressly assented 110 | to this License, that assent indicates your clear and irrevocable 111 | acceptance of this License and all of its terms and conditions. If You 112 | distribute or communicate copies of the Original Work or a Derivative 113 | Work, You must make a reasonable effort under the circumstances to 114 | obtain the express assent of recipients to the terms of this License. 115 | This License conditions your rights to undertake the activities listed 116 | in Section 1, including your right to create Derivative Works based 117 | upon the Original Work, and doing so without honoring these terms and 118 | conditions is prohibited by copyright law and international treaty. 119 | Nothing in this License is intended to affect copyright exceptions and 120 | limitations (including "fair use" or "fair dealing"). This License 121 | shall terminate immediately and You may no longer exercise any of the 122 | rights granted to You by this License upon your failure to honor the 123 | conditions in Section 1(c). 124 | 125 | 10) Termination for Patent Action. This License shall terminate 126 | automatically and You may no longer exercise any of the rights granted 127 | to You by this License as of the date You commence an action, 128 | including a cross-claim or counterclaim, against Licensor or any 129 | licensee alleging that the Original Work infringes a patent. This 130 | termination provision shall not apply for an action alleging patent 131 | infringement by combinations of the Original Work with other software 132 | or hardware. 133 | 134 | 11) Jurisdiction, Venue and Governing Law. Any action or suit relating 135 | to this License may be brought only in the courts of a jurisdiction 136 | wherein the Licensor resides or in which Licensor conducts its primary 137 | business, and under the laws of that jurisdiction excluding its 138 | conflict-of-law provisions. The application of the United Nations 139 | Convention on Contracts for the International Sale of Goods is 140 | expressly excluded. Any use of the Original Work outside the scope of 141 | this License or after its termination shall be subject to the 142 | requirements and penalties of copyright or patent law in the 143 | appropriate jurisdiction. This section shall survive the termination 144 | of this License. 145 | 146 | 12) Attorneys' Fees. In any action to enforce the terms of this 147 | License or seeking damages relating thereto, the prevailing party 148 | shall be entitled to recover its costs and expenses, including, 149 | without limitation, reasonable attorneys' fees and costs incurred in 150 | connection with such action, including any appeal of such action. This 151 | section shall survive the termination of this License. 152 | 153 | 13) Miscellaneous. If any provision of this License is held to be 154 | unenforceable, such provision shall be reformed only to the extent 155 | necessary to make it enforceable. 156 | 157 | 14) Definition of "You" in This License. "You" throughout this 158 | License, whether in upper or lower case, means an individual or a 159 | legal entity exercising rights under, and complying with all of the 160 | terms of, this License. For legal entities, "You" includes any entity 161 | that controls, is controlled by, or is under common control with you. 162 | For purposes of this definition, "control" means (i) the power, direct 163 | or indirect, to cause the direction or management of such entity, 164 | whether by contract or otherwise, or (ii) ownership of fifty percent 165 | (50%) or more of the outstanding shares, or (iii) beneficial ownership 166 | of such entity. 167 | 168 | 15) Right to Use. You may use the Original Work in all ways not 169 | otherwise restricted or conditioned by this License or by law, and 170 | Licensor promises not to interfere with or be responsible for such 171 | uses by You. 172 | 173 | 16) Modification of This License. This License is Copyright © 2005 174 | Lawrence Rosen. Permission is granted to copy, distribute, or 175 | communicate this License without modification. Nothing in this License 176 | permits You to modify this License as applied to the Original Work or 177 | to Derivative Works. However, You may modify the text of this License 178 | and copy, distribute or communicate your modified version (the 179 | "Modified License") and apply it to other original works of authorship 180 | subject to the following conditions: (i) You may not indicate in any 181 | way that your Modified License is the "Academic Free License" or "AFL" 182 | and you may not use those names in the name of your Modified License; 183 | (ii) You must replace the notice specified in the first paragraph 184 | above with the notice "Licensed under " 185 | or with a notice of your own that is not confusingly similar to the 186 | notice in this License; and (iii) You may not claim that your original 187 | works are open source software unless your Modified License has been 188 | approved by Open Source Initiative (OSI) and You comply with its 189 | license review and certification process. 190 | -------------------------------------------------------------------------------- /templates/gpl-1.0.erb: -------------------------------------------------------------------------------- 1 | Copyright (C) <%= Time.now.year %> <%= authors %> 2 | 3 | This program is free software; you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation; either version 1, or (at your option) 6 | any later version. 7 | 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 11 | 12 | GNU GENERAL PUBLIC LICENSE 13 | Version 1, February 1989 14 | 15 | Copyright (C) 1989 Free Software Foundation, Inc. 16 | 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | 18 | Everyone is permitted to copy and distribute verbatim copies 19 | of this license document, but changing it is not allowed. 20 | 21 | Preamble 22 | 23 | The license agreements of most software companies try to keep users 24 | at the mercy of those companies. By contrast, our General Public 25 | License is intended to guarantee your freedom to share and change free 26 | software--to make sure the software is free for all its users. The 27 | General Public License applies to the Free Software Foundation's 28 | software and to any other program whose authors commit to using it. 29 | You can use it for your programs, too. 30 | 31 | When we speak of free software, we are referring to freedom, not 32 | price. Specifically, the General Public License is designed to make 33 | sure that you have the freedom to give away or sell copies of free 34 | software, that you receive source code or can get it if you want it, 35 | that you can change the software or use pieces of it in new free 36 | programs; and that you know you can do these things. 37 | 38 | To protect your rights, we need to make restrictions that forbid 39 | anyone to deny you these rights or to ask you to surrender the rights. 40 | These restrictions translate to certain responsibilities for you if you 41 | distribute copies of the software, or if you modify it. 42 | 43 | For example, if you distribute copies of a such a program, whether 44 | gratis or for a fee, you must give the recipients all the rights that 45 | you have. You must make sure that they, too, receive or can get the 46 | source code. And you must tell them their rights. 47 | 48 | We protect your rights with two steps: (1) copyright the software, and 49 | (2) offer you this license which gives you legal permission to copy, 50 | distribute and/or modify the software. 51 | 52 | Also, for each author's protection and ours, we want to make certain 53 | that everyone understands that there is no warranty for this free 54 | software. If the software is modified by someone else and passed on, we 55 | want its recipients to know that what they have is not the original, so 56 | that any problems introduced by others will not reflect on the original 57 | authors' reputations. 58 | 59 | The precise terms and conditions for copying, distribution and 60 | modification follow. 61 | 62 | GNU GENERAL PUBLIC LICENSE 63 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 64 | 65 | 0. This License Agreement applies to any program or other work which 66 | contains a notice placed by the copyright holder saying it may be 67 | distributed under the terms of this General Public License. The 68 | "Program", below, refers to any such program or work, and a "work based 69 | on the Program" means either the Program or any work containing the 70 | Program or a portion of it, either verbatim or with modifications. Each 71 | licensee is addressed as "you". 72 | 73 | 1. You may copy and distribute verbatim copies of the Program's source 74 | code as you receive it, in any medium, provided that you conspicuously and 75 | appropriately publish on each copy an appropriate copyright notice and 76 | disclaimer of warranty; keep intact all the notices that refer to this 77 | General Public License and to the absence of any warranty; and give any 78 | other recipients of the Program a copy of this General Public License 79 | along with the Program. You may charge a fee for the physical act of 80 | transferring a copy. 81 | 82 | 2. You may modify your copy or copies of the Program or any portion of 83 | it, and copy and distribute such modifications under the terms of Paragraph 84 | 1 above, provided that you also do the following: 85 | 86 | a) cause the modified files to carry prominent notices stating that 87 | you changed the files and the date of any change; and 88 | 89 | b) cause the whole of any work that you distribute or publish, that 90 | in whole or in part contains the Program or any part thereof, either 91 | with or without modifications, to be licensed at no charge to all 92 | third parties under the terms of this General Public License (except 93 | that you may choose to grant warranty protection to some or all 94 | third parties, at your option). 95 | 96 | c) If the modified program normally reads commands interactively when 97 | run, you must cause it, when started running for such interactive use 98 | in the simplest and most usual way, to print or display an 99 | announcement including an appropriate copyright notice and a notice 100 | that there is no warranty (or else, saying that you provide a 101 | warranty) and that users may redistribute the program under these 102 | conditions, and telling the user how to view a copy of this General 103 | Public License. 104 | 105 | d) You may charge a fee for the physical act of transferring a 106 | copy, and you may at your option offer warranty protection in 107 | exchange for a fee. 108 | 109 | Mere aggregation of another independent work with the Program (or its 110 | derivative) on a volume of a storage or distribution medium does not bring 111 | the other work under the scope of these terms. 112 | 113 | 3. You may copy and distribute the Program (or a portion or derivative of 114 | it, under Paragraph 2) in object code or executable form under the terms of 115 | Paragraphs 1 and 2 above provided that you also do one of the following: 116 | 117 | a) accompany it with the complete corresponding machine-readable 118 | source code, which must be distributed under the terms of 119 | Paragraphs 1 and 2 above; or, 120 | 121 | b) accompany it with a written offer, valid for at least three 122 | years, to give any third party free (except for a nominal charge 123 | for the cost of distribution) a complete machine-readable copy of the 124 | corresponding source code, to be distributed under the terms of 125 | Paragraphs 1 and 2 above; or, 126 | 127 | c) accompany it with the information you received as to where the 128 | corresponding source code may be obtained. (This alternative is 129 | allowed only for noncommercial distribution and only if you 130 | received the program in object code or executable form alone.) 131 | 132 | Source code for a work means the preferred form of the work for making 133 | modifications to it. For an executable file, complete source code means 134 | all the source code for all modules it contains; but, as a special 135 | exception, it need not include source code for modules which are standard 136 | libraries that accompany the operating system on which the executable 137 | file runs, or for standard header files or definitions files that 138 | accompany that operating system. 139 | 140 | 4. You may not copy, modify, sublicense, distribute or transfer the 141 | Program except as expressly provided under this General Public License. 142 | Any attempt otherwise to copy, modify, sublicense, distribute or transfer 143 | the Program is void, and will automatically terminate your rights to use 144 | the Program under this License. However, parties who have received 145 | copies, or rights to use copies, from you under this General Public 146 | License will not have their licenses terminated so long as such parties 147 | remain in full compliance. 148 | 149 | 5. By copying, distributing or modifying the Program (or any work based 150 | on the Program) you indicate your acceptance of this license to do so, 151 | and all its terms and conditions. 152 | 153 | 6. Each time you redistribute the Program (or any work based on the 154 | Program), the recipient automatically receives a license from the original 155 | licensor to copy, distribute or modify the Program subject to these 156 | terms and conditions. You may not impose any further restrictions on the 157 | recipients' exercise of the rights granted herein. 158 | 159 | 7. The Free Software Foundation may publish revised and/or new versions 160 | of the General Public License from time to time. Such new versions will 161 | be similar in spirit to the present version, but may differ in detail to 162 | address new problems or concerns. 163 | 164 | Each version is given a distinguishing version number. If the Program 165 | specifies a version number of the license which applies to it and "any 166 | later version", you have the option of following the terms and conditions 167 | either of that version or of any later version published by the Free 168 | Software Foundation. If the Program does not specify a version number of 169 | the license, you may choose any version ever published by the Free Software 170 | Foundation. 171 | 172 | 8. If you wish to incorporate parts of the Program into other free 173 | programs whose distribution conditions are different, write to the author 174 | to ask for permission. For software which is copyrighted by the Free 175 | Software Foundation, write to the Free Software Foundation; we sometimes 176 | make exceptions for this. Our decision will be guided by the two goals 177 | of preserving the free status of all derivatives of our free software and 178 | of promoting the sharing and reuse of software generally. 179 | 180 | NO WARRANTY 181 | 182 | 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 183 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 184 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 185 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 186 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 187 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 188 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 189 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 190 | REPAIR OR CORRECTION. 191 | 192 | 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 193 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 194 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 195 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 196 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 197 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 198 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 199 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 200 | POSSIBILITY OF SUCH DAMAGES. 201 | -------------------------------------------------------------------------------- /templates/apache-2.0.erb: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright <%= Time.now.year %> <%= authors %> 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /templates/epl-1.0.erb: -------------------------------------------------------------------------------- 1 | <%= option(:work) %> (c) by <%= authors %> 2 | 3 | Eclipse Public License - v 1.0 4 | 5 | THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC 6 | LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM 7 | CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. 8 | 9 | 1. DEFINITIONS 10 | 11 | "Contribution" means: 12 | 13 | a) in the case of the initial Contributor, the initial code and documentation 14 | distributed under this Agreement, and 15 | b) in the case of each subsequent Contributor: 16 | i) changes to the Program, and 17 | ii) additions to the Program; 18 | 19 | where such changes and/or additions to the Program originate from and are 20 | distributed by that particular Contributor. A Contribution 'originates' 21 | from a Contributor if it was added to the Program by such Contributor 22 | itself or anyone acting on such Contributor's behalf. Contributions do not 23 | include additions to the Program which: (i) are separate modules of 24 | software distributed in conjunction with the Program under their own 25 | license agreement, and (ii) are not derivative works of the Program. 26 | 27 | "Contributor" means any person or entity that distributes the Program. 28 | 29 | "Licensed Patents" mean patent claims licensable by a Contributor which are 30 | necessarily infringed by the use or sale of its Contribution alone or when 31 | combined with the Program. 32 | 33 | "Program" means the Contributions distributed in accordance with this 34 | Agreement. 35 | 36 | "Recipient" means anyone who receives the Program under this Agreement, 37 | including all Contributors. 38 | 39 | 2. GRANT OF RIGHTS 40 | a) Subject to the terms of this Agreement, each Contributor hereby grants 41 | Recipient a non-exclusive, worldwide, royalty-free copyright license to 42 | reproduce, prepare derivative works of, publicly display, publicly 43 | perform, distribute and sublicense the Contribution of such Contributor, 44 | if any, and such derivative works, in source code and object code form. 45 | b) Subject to the terms of this Agreement, each Contributor hereby grants 46 | Recipient a non-exclusive, worldwide, royalty-free patent license under 47 | Licensed Patents to make, use, sell, offer to sell, import and otherwise 48 | transfer the Contribution of such Contributor, if any, in source code and 49 | object code form. This patent license shall apply to the combination of 50 | the Contribution and the Program if, at the time the Contribution is 51 | added by the Contributor, such addition of the Contribution causes such 52 | combination to be covered by the Licensed Patents. The patent license 53 | shall not apply to any other combinations which include the Contribution. 54 | No hardware per se is licensed hereunder. 55 | c) Recipient understands that although each Contributor grants the licenses 56 | to its Contributions set forth herein, no assurances are provided by any 57 | Contributor that the Program does not infringe the patent or other 58 | intellectual property rights of any other entity. Each Contributor 59 | disclaims any liability to Recipient for claims brought by any other 60 | entity based on infringement of intellectual property rights or 61 | otherwise. As a condition to exercising the rights and licenses granted 62 | hereunder, each Recipient hereby assumes sole responsibility to secure 63 | any other intellectual property rights needed, if any. For example, if a 64 | third party patent license is required to allow Recipient to distribute 65 | the Program, it is Recipient's responsibility to acquire that license 66 | before distributing the Program. 67 | d) Each Contributor represents that to its knowledge it has sufficient 68 | copyright rights in its Contribution, if any, to grant the copyright 69 | license set forth in this Agreement. 70 | 71 | 3. REQUIREMENTS 72 | 73 | A Contributor may choose to distribute the Program in object code form under 74 | its own license agreement, provided that: 75 | 76 | a) it complies with the terms and conditions of this Agreement; and 77 | b) its license agreement: 78 | i) effectively disclaims on behalf of all Contributors all warranties 79 | and conditions, express and implied, including warranties or 80 | conditions of title and non-infringement, and implied warranties or 81 | conditions of merchantability and fitness for a particular purpose; 82 | ii) effectively excludes on behalf of all Contributors all liability for 83 | damages, including direct, indirect, special, incidental and 84 | consequential damages, such as lost profits; 85 | iii) states that any provisions which differ from this Agreement are 86 | offered by that Contributor alone and not by any other party; and 87 | iv) states that source code for the Program is available from such 88 | Contributor, and informs licensees how to obtain it in a reasonable 89 | manner on or through a medium customarily used for software exchange. 90 | 91 | When the Program is made available in source code form: 92 | 93 | a) it must be made available under this Agreement; and 94 | b) a copy of this Agreement must be included with each copy of the Program. 95 | Contributors may not remove or alter any copyright notices contained 96 | within the Program. 97 | 98 | Each Contributor must identify itself as the originator of its Contribution, 99 | if 100 | any, in a manner that reasonably allows subsequent Recipients to identify the 101 | originator of the Contribution. 102 | 103 | 4. COMMERCIAL DISTRIBUTION 104 | 105 | Commercial distributors of software may accept certain responsibilities with 106 | respect to end users, business partners and the like. While this license is 107 | intended to facilitate the commercial use of the Program, the Contributor who 108 | includes the Program in a commercial product offering should do so in a manner 109 | which does not create potential liability for other Contributors. Therefore, 110 | if a Contributor includes the Program in a commercial product offering, such 111 | Contributor ("Commercial Contributor") hereby agrees to defend and indemnify 112 | every other Contributor ("Indemnified Contributor") against any losses, 113 | damages and costs (collectively "Losses") arising from claims, lawsuits and 114 | other legal actions brought by a third party against the Indemnified 115 | Contributor to the extent caused by the acts or omissions of such Commercial 116 | Contributor in connection with its distribution of the Program in a commercial 117 | product offering. The obligations in this section do not apply to any claims 118 | or Losses relating to any actual or alleged intellectual property 119 | infringement. In order to qualify, an Indemnified Contributor must: 120 | a) promptly notify the Commercial Contributor in writing of such claim, and 121 | b) allow the Commercial Contributor to control, and cooperate with the 122 | Commercial Contributor in, the defense and any related settlement 123 | negotiations. The Indemnified Contributor may participate in any such claim at 124 | its own expense. 125 | 126 | For example, a Contributor might include the Program in a commercial product 127 | offering, Product X. That Contributor is then a Commercial Contributor. If 128 | that Commercial Contributor then makes performance claims, or offers 129 | warranties related to Product X, those performance claims and warranties are 130 | such Commercial Contributor's responsibility alone. Under this section, the 131 | Commercial Contributor would have to defend claims against the other 132 | Contributors related to those performance claims and warranties, and if a 133 | court requires any other Contributor to pay any damages as a result, the 134 | Commercial Contributor must pay those damages. 135 | 136 | 5. NO WARRANTY 137 | 138 | EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN 139 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR 140 | IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, 141 | NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each 142 | Recipient is solely responsible for determining the appropriateness of using 143 | and distributing the Program and assumes all risks associated with its 144 | exercise of rights under this Agreement , including but not limited to the 145 | risks and costs of program errors, compliance with applicable laws, damage to 146 | or loss of data, programs or equipment, and unavailability or interruption of 147 | operations. 148 | 149 | 6. DISCLAIMER OF LIABILITY 150 | 151 | EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY 152 | CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, 153 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION 154 | LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 155 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 156 | ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE 157 | EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY 158 | OF SUCH DAMAGES. 159 | 160 | 7. GENERAL 161 | 162 | If any provision of this Agreement is invalid or unenforceable under 163 | applicable law, it shall not affect the validity or enforceability of the 164 | remainder of the terms of this Agreement, and without further action by the 165 | parties hereto, such provision shall be reformed to the minimum extent 166 | necessary to make such provision valid and enforceable. 167 | 168 | If Recipient institutes patent litigation against any entity (including a 169 | cross-claim or counterclaim in a lawsuit) alleging that the Program itself 170 | (excluding combinations of the Program with other software or hardware) 171 | infringes such Recipient's patent(s), then such Recipient's rights granted 172 | under Section 2(b) shall terminate as of the date such litigation is filed. 173 | 174 | All Recipient's rights under this Agreement shall terminate if it fails to 175 | comply with any of the material terms or conditions of this Agreement and does 176 | not cure such failure in a reasonable period of time after becoming aware of 177 | such noncompliance. If all Recipient's rights under this Agreement terminate, 178 | Recipient agrees to cease use and distribution of the Program as soon as 179 | reasonably practicable. However, Recipient's obligations under this Agreement 180 | and any licenses granted by Recipient relating to the Program shall continue 181 | and survive. 182 | 183 | Everyone is permitted to copy and distribute copies of this Agreement, but in 184 | order to avoid inconsistency the Agreement is copyrighted and may only be 185 | modified in the following manner. The Agreement Steward reserves the right to 186 | publish new versions (including revisions) of this Agreement from time to 187 | time. No one other than the Agreement Steward has the right to modify this 188 | Agreement. The Eclipse Foundation is the initial Agreement Steward. The 189 | Eclipse Foundation may assign the responsibility to serve as the Agreement 190 | Steward to a suitable separate entity. Each new version of the Agreement will 191 | be given a distinguishing version number. The Program (including 192 | Contributions) may always be distributed subject to the version of the 193 | Agreement under which it was received. In addition, after a new version of the 194 | Agreement is published, Contributor may elect to distribute the Program 195 | (including its Contributions) under the new version. Except as expressly 196 | stated in Sections 2(a) and 2(b) above, Recipient receives no rights or 197 | licenses to the intellectual property of any Contributor under this Agreement, 198 | whether expressly, by implication, estoppel or otherwise. All rights in the 199 | Program not expressly granted under this Agreement are reserved. 200 | 201 | This Agreement is governed by the laws of the State of New York and the 202 | intellectual property laws of the United States of America. No party to this 203 | Agreement will bring a legal action under this Agreement more than one year 204 | after the cause of action arose. Each party waives its rights to a jury trial in 205 | any resulting litigation. 206 | -------------------------------------------------------------------------------- /templates/mozilla-2.0.erb: -------------------------------------------------------------------------------- 1 | Mozilla Public License, version 2.0 2 | 3 | Copyright (c) <%= Time.now.year %>, <%= authors %> 4 | 5 | 1. Definitions 6 | 7 | 1.1. “Contributor” means each individual or legal entity that 8 | creates, contributes to the creation of, or owns Covered Software. 9 | 10 | 1.2. “Contributor Version” means the combination of the 11 | Contributions of others (if any) used by a Contributor and that 12 | particular Contributor’s Contribution. 13 | 14 | 1.3. “Contribution” means Covered Software of a particular 15 | Contributor. 16 | 17 | 1.4. “Covered Software” means Source Code Form to which the initial 18 | Contributor has attached the notice in Exhibit A, the Executable 19 | Form of such Source Code Form, and Modifications of such Source Code 20 | Form, in each case including portions thereof. 21 | 22 | 1.5. “Incompatible With Secondary Licenses” means 23 | 24 | that the initial Contributor has attached the notice described in 25 | Exhibit B to the Covered Software; or 26 | 27 | that the Covered Software was made available under the terms of 28 | version 1.1 or earlier of the License, but not also under the terms 29 | of a Secondary License. 30 | 31 | 1.6. “Executable Form” means any form of the work other than Source 32 | Code Form. 33 | 34 | 1.7. “Larger Work” means a work that combines Covered Software with 35 | other material, in a separate file or files, that is not Covered 36 | Software. 37 | 38 | 1.8. “License” means this document. 39 | 40 | 1.9. “Licensable” means having the right to grant, to the maximum 41 | extent possible, whether at the time of the initial grant or 42 | subsequently, any and all of the rights conveyed by this License. 43 | 44 | 1.10. “Modifications” means any of the following: 45 | 46 | any file in Source Code Form that results from an addition to, 47 | deletion from, or modification of the contents of Covered Software; 48 | or 49 | 50 | any new file in Source Code Form that contains any Covered Software. 51 | 52 | 1.11. “Patent Claims” of a Contributor means any patent claim(s), 53 | including without limitation, method, process, and apparatus claims, 54 | in any patent Licensable by such Contributor that would be 55 | infringed, but for the grant of the License, by the making, using, 56 | selling, offering for sale, having made, import, or transfer of 57 | either its Contributions or its Contributor Version. 58 | 59 | 1.12. “Secondary License” means either the GNU General Public 60 | License, Version 2.0, the GNU Lesser General Public License, Version 61 | 2.1, the GNU Affero General Public License, Version 3.0, or any 62 | later versions of those licenses. 63 | 64 | 1.13. “Source Code Form” means the form of the work preferred for 65 | making modifications. 66 | 67 | 1.14. “You” (or “Your”) means an individual or a legal entity 68 | exercising rights under this License. For legal entities, “You” 69 | includes any entity that controls, is controlled by, or is under 70 | common control with You. For purposes of this definition, “control” 71 | means (a) the power, direct or indirect, to cause the direction or 72 | management of such entity, whether by contract or otherwise, or (b) 73 | ownership of more than fifty percent (50%) of the outstanding shares 74 | or beneficial ownership of such entity. 75 | 76 | 77 | 2. License Grants and Conditions 78 | 79 | 2.1. Grants Each Contributor hereby grants You a world-wide, 80 | royalty-free, non-exclusive license: 81 | 82 | under intellectual property rights (other than patent or trademark) 83 | Licensable by such Contributor to use, reproduce, make available, 84 | modify, display, perform, distribute, and otherwise exploit its 85 | Contributions, either on an unmodified basis, with Modifications, or 86 | as part of a Larger Work; and 87 | 88 | under Patent Claims of such Contributor to make, use, sell, offer 89 | for sale, have made, import, and otherwise transfer either its 90 | Contributions or its Contributor Version. 91 | 92 | 2.2. Effective Date The licenses granted in Section 2.1 with respect 93 | to any Contribution become effective for each Contribution on the 94 | date the Contributor first distributes such Contribution. 95 | 96 | 2.3. Limitations on Grant Scope The licenses granted in this Section 97 | 2 are the only rights granted under this License. No additional 98 | rights or licenses will be implied from the distribution or 99 | licensing of Covered Software under this License. Notwithstanding 100 | Section 2.1(b) above, no patent license is granted by a Contributor: 101 | 102 | for any code that a Contributor has removed from Covered Software; 103 | or 104 | 105 | for infringements caused by: (i) Your and any other third party’s 106 | modifications of Covered Software, or (ii) the combination of its 107 | Contributions with other software (except as part of its Contributor 108 | Version); or 109 | 110 | under Patent Claims infringed by Covered Software in the absence of 111 | its Contributions. 112 | 113 | This License does not grant any rights in the trademarks, service 114 | marks, or logos of any Contributor (except as may be necessary to 115 | comply with the notice requirements in Section 3.4). 116 | 117 | 2.4. Subsequent Licenses No Contributor makes additional grants as a 118 | result of Your choice to distribute the Covered Software under a 119 | subsequent version of this License (see Section 10.2) or under the 120 | terms of a Secondary License (if permitted under the terms of 121 | Section 3.3). 122 | 123 | 2.5. Representation Each Contributor represents that the Contributor 124 | believes its Contributions are its original creation(s) or it has 125 | sufficient rights to grant the rights to its Contributions conveyed 126 | by this License. 127 | 128 | 2.6. Fair Use This License is not intended to limit any rights You 129 | have under applicable copyright doctrines of fair use, fair dealing, 130 | or other equivalents. 131 | 132 | 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of 133 | the licenses granted in Section 2.1. 134 | 135 | 136 | 3. Responsibilities 137 | 138 | 3.1. Distribution of Source Form All distribution of Covered 139 | Software in Source Code Form, including any Modifications that You 140 | create or to which You contribute, must be under the terms of this 141 | License. You must inform recipients that the Source Code Form of the 142 | Covered Software is governed by the terms of this License, and how 143 | they can obtain a copy of this License. You may not attempt to alter 144 | or restrict the recipients’ rights in the Source Code Form. 145 | 146 | 3.2. Distribution of Executable Form If You distribute Covered 147 | Software in Executable Form then: 148 | 149 | such Covered Software must also be made available in Source Code 150 | Form, as described in Section 3.1, and You must inform recipients of 151 | the Executable Form how they can obtain a copy of such Source Code 152 | Form by reasonable means in a timely manner, at a charge no more 153 | than the cost of distribution to the recipient; and 154 | 155 | You may distribute such Executable Form under the terms of this 156 | License, or sublicense it under different terms, provided that the 157 | license for the Executable Form does not attempt to limit or alter 158 | the recipients’ rights in the Source Code Form under this License. 159 | 160 | 3.3. Distribution of a Larger Work You may create and distribute a 161 | Larger Work under terms of Your choice, provided that You also 162 | comply with the requirements of this License for the Covered 163 | Software. If the Larger Work is a combination of Covered Software 164 | with a work governed by one or more Secondary Licenses, and the 165 | Covered Software is not Incompatible With Secondary Licenses, this 166 | License permits You to additionally distribute such Covered Software 167 | under the terms of such Secondary License(s), so that the recipient 168 | of the Larger Work may, at their option, further distribute the 169 | Covered Software under the terms of either this License or such 170 | Secondary License(s). 171 | 172 | 3.4. Notices You may not remove or alter the substance of any 173 | license notices (including copyright notices, patent notices, 174 | disclaimers of warranty, or limitations of liability) contained 175 | within the Source Code Form of the Covered Software, except that You 176 | may alter any license notices to the extent required to remedy known 177 | factual inaccuracies. 178 | 179 | 3.5. Application of Additional Terms You may choose to offer, and to 180 | charge a fee for, warranty, support, indemnity or liability 181 | obligations to one or more recipients of Covered Software. However, 182 | You may do so only on Your own behalf, and not on behalf of any 183 | Contributor. You must make it absolutely clear that any such 184 | warranty, support, indemnity, or liability obligation is offered by 185 | You alone, and You hereby agree to indemnify every Contributor for 186 | any liability incurred by such Contributor as a result of warranty, 187 | support, indemnity or liability terms You offer. You may include 188 | additional disclaimers of warranty and limitations of liability 189 | specific to any jurisdiction. 190 | 191 | 192 | 4. Inability to Comply Due to Statute or Regulation 193 | 194 | If it is impossible for You to comply with any of the terms of this 195 | License with respect to some or all of the Covered Software due to 196 | statute, judicial order, or regulation then You must: (a) comply 197 | with the terms of this License to the maximum extent possible; and 198 | (b) describe the limitations and the code they affect. Such 199 | description must be placed in a text file included with all 200 | distributions of the Covered Software under this License. Except to 201 | the extent prohibited by statute or regulation, such description 202 | must be sufficiently detailed for a recipient of ordinary skill to 203 | be able to understand it. 204 | 205 | 206 | 5. Termination 207 | 208 | 5.1. The rights granted under this License will terminate 209 | automatically if You fail to comply with any of its terms. However, 210 | if You become compliant, then the rights granted under this License 211 | from a particular Contributor are reinstated (a) provisionally, 212 | unless and until such Contributor explicitly and finally terminates 213 | Your grants, and (b) on an ongoing basis, if such Contributor fails 214 | to notify You of the non-compliance by some reasonable means prior 215 | to 60 days after You have come back into compliance. Moreover, Your 216 | grants from a particular Contributor are reinstated on an ongoing 217 | basis if such Contributor notifies You of the non-compliance by some 218 | reasonable means, this is the first time You have received notice of 219 | non-compliance with this License from such Contributor, and You 220 | become compliant prior to 30 days after Your receipt of the notice. 221 | 222 | 5.2. If You initiate litigation against any entity by asserting a 223 | patent infringement claim (excluding declaratory judgment actions, 224 | counter-claims, and cross-claims) alleging that a Contributor 225 | Version directly or indirectly infringes any patent, then the rights 226 | granted to You by any and all Contributors for the Covered Software 227 | under Section 2.1 of this License shall terminate. 228 | 229 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, 230 | all end user license agreements (excluding distributors and 231 | resellers) which have been validly granted by You or Your 232 | distributors under this License prior to termination shall survive 233 | termination. 234 | 235 | 6. Disclaimer of Warranty Covered Software is provided under this 236 | License on an “as is” basis, without warranty of any kind, either 237 | expressed, implied, or statutory, including, without limitation, 238 | warranties that the Covered Software is free of defects, merchantable, 239 | fit for a particular purpose or non-infringing. The entire risk as to 240 | the quality and performance of the Covered Software is with You. 241 | Should any Covered Software prove defective in any respect, You (not 242 | any Contributor) assume the cost of any necessary servicing, repair, 243 | or correction. This disclaimer of warranty constitutes an essential 244 | part of this License. No use of any Covered Software is authorized 245 | under this License except under this disclaimer. 246 | 247 | 7. Limitation of Liability Under no circumstances and under no legal 248 | theory, whether tort (including negligence), contract, or otherwise, 249 | shall any Contributor, or anyone who distributes Covered Software as 250 | permitted above, be liable to You for any direct, indirect, special, 251 | incidental, or consequential damages of any character including, 252 | without limitation, damages for lost profits, loss of goodwill, work 253 | stoppage, computer failure or malfunction, or any and all other 254 | commercial damages or losses, even if such party shall have been 255 | informed of the possibility of such damages. This limitation of 256 | liability shall not apply to liability for death or personal injury 257 | resulting from such party’s negligence to the extent applicable law 258 | prohibits such limitation. Some jurisdictions do not allow the 259 | exclusion or limitation of incidental or consequential damages, so 260 | this exclusion and limitation may not apply to You. 261 | 262 | 8. Litigation Any litigation relating to this License may be brought 263 | only in the courts of a jurisdiction where the defendant maintains its 264 | principal place of business and such litigation shall be governed by 265 | laws of that jurisdiction, without reference to its conflict-of-law 266 | provisions. Nothing in this Section shall prevent a party’s ability to 267 | bring cross-claims or counter-claims. 268 | 269 | 9. Miscellaneous This License represents the complete agreement 270 | concerning the subject matter hereof. If any provision of this License 271 | is held to be unenforceable, such provision shall be reformed only to 272 | the extent necessary to make it enforceable. Any law or regulation 273 | which provides that the language of a contract shall be construed 274 | against the drafter shall not be used to construe this License against 275 | a Contributor. 276 | 277 | 10. Versions of the License 278 | 279 | 10.1. New Versions Mozilla Foundation is the license steward. Except 280 | as provided in Section 10.3, no one other than the license steward 281 | has the right to modify or publish new versions of this License. 282 | Each version will be given a distinguishing version number. 283 | 284 | 10.2. Effect of New Versions You may distribute the Covered Software 285 | under the terms of the version of the License under which You 286 | originally received the Covered Software, or under the terms of any 287 | subsequent version published by the license steward. 288 | 289 | 10.3. Modified Versions If you create software not governed by this 290 | License, and you want to create a new license for such software, you 291 | may create and use a modified version of this License if you rename 292 | the license and remove any references to the name of the license 293 | steward (except to note that such modified license differs from this 294 | License). 295 | 296 | 10.4. Distributing Source Code Form that is Incompatible With 297 | Secondary Licenses If You choose to distribute Source Code Form that 298 | is Incompatible With Secondary Licenses under the terms of this 299 | version of the License, the notice described in Exhibit B of this 300 | License must be attached. 301 | 302 | Exhibit A - Source Code Form License Notice 303 | 304 | This Source Code Form is subject to the terms of the Mozilla Public 305 | License, v. 2.0. If a copy of the MPL was not distributed with this 306 | file, You can obtain one at http://mozilla.org/MPL/2.0/. 307 | 308 | If it is not possible or desirable to put the notice in a particular 309 | file, then You may include the notice in a location (such as a 310 | LICENSE file in a relevant directory) where a recipient would be 311 | likely to look for such a notice. 312 | 313 | You may add additional accurate notices of copyright ownership. 314 | 315 | Exhibit B - “Incompatible With Secondary Licenses” Notice 316 | 317 | This Source Code Form is “Incompatible With Secondary Licenses”, as 318 | defined by the Mozilla Public License, v. 2.0. 319 | 320 | 321 | -------------------------------------------------------------------------------- /templates/gpl-2.0.erb: -------------------------------------------------------------------------------- 1 | Copyright (C) <%= Time.now.year %> <%= authors %> 2 | 3 | This program is free software; you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation; either version 2 of the License, or 6 | (at your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 11 | 12 | GNU GENERAL PUBLIC LICENSE 13 | Version 2, June 1991 14 | 15 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 16 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | Everyone is permitted to copy and distribute verbatim copies 18 | of this license document, but changing it is not allowed. 19 | 20 | Preamble 21 | 22 | The licenses for most software are designed to take away your 23 | freedom to share and change it. By contrast, the GNU General Public 24 | License is intended to guarantee your freedom to share and change free 25 | software--to make sure the software is free for all its users. This 26 | General Public License applies to most of the Free Software 27 | Foundation's software and to any other program whose authors commit to 28 | using it. (Some other Free Software Foundation software is covered by 29 | the GNU Lesser General Public License instead.) You can apply it to 30 | your programs, too. 31 | 32 | When we speak of free software, we are referring to freedom, not 33 | price. Our General Public Licenses are designed to make sure that you 34 | have the freedom to distribute copies of free software (and charge for 35 | this service if you wish), that you receive source code or can get it 36 | if you want it, that you can change the software or use pieces of it 37 | in new free programs; and that you know you can do these things. 38 | 39 | To protect your rights, we need to make restrictions that forbid 40 | anyone to deny you these rights or to ask you to surrender the rights. 41 | These restrictions translate to certain responsibilities for you if you 42 | distribute copies of the software, or if you modify it. 43 | 44 | For example, if you distribute copies of such a program, whether 45 | gratis or for a fee, you must give the recipients all the rights that 46 | you have. You must make sure that they, too, receive or can get the 47 | source code. And you must show them these terms so they know their 48 | rights. 49 | 50 | We protect your rights with two steps: (1) copyright the software, and 51 | (2) offer you this license which gives you legal permission to copy, 52 | distribute and/or modify the software. 53 | 54 | Also, for each author's protection and ours, we want to make certain 55 | that everyone understands that there is no warranty for this free 56 | software. If the software is modified by someone else and passed on, we 57 | want its recipients to know that what they have is not the original, so 58 | that any problems introduced by others will not reflect on the original 59 | authors' reputations. 60 | 61 | Finally, any free program is threatened constantly by software 62 | patents. We wish to avoid the danger that redistributors of a free 63 | program will individually obtain patent licenses, in effect making the 64 | program proprietary. To prevent this, we have made it clear that any 65 | patent must be licensed for everyone's free use or not licensed at all. 66 | 67 | The precise terms and conditions for copying, distribution and 68 | modification follow. 69 | 70 | GNU GENERAL PUBLIC LICENSE 71 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 72 | 73 | 0. This License applies to any program or other work which contains 74 | a notice placed by the copyright holder saying it may be distributed 75 | under the terms of this General Public License. The "Program", below, 76 | refers to any such program or work, and a "work based on the Program" 77 | means either the Program or any derivative work under copyright law: 78 | that is to say, a work containing the Program or a portion of it, 79 | either verbatim or with modifications and/or translated into another 80 | language. (Hereinafter, translation is included without limitation in 81 | the term "modification".) Each licensee is addressed as "you". 82 | 83 | Activities other than copying, distribution and modification are not 84 | covered by this License; they are outside its scope. The act of 85 | running the Program is not restricted, and the output from the Program 86 | is covered only if its contents constitute a work based on the 87 | Program (independent of having been made by running the Program). 88 | Whether that is true depends on what the Program does. 89 | 90 | 1. You may copy and distribute verbatim copies of the Program's 91 | source code as you receive it, in any medium, provided that you 92 | conspicuously and appropriately publish on each copy an appropriate 93 | copyright notice and disclaimer of warranty; keep intact all the 94 | notices that refer to this License and to the absence of any warranty; 95 | and give any other recipients of the Program a copy of this License 96 | along with the Program. 97 | 98 | You may charge a fee for the physical act of transferring a copy, and 99 | you may at your option offer warranty protection in exchange for a fee. 100 | 101 | 2. You may modify your copy or copies of the Program or any portion 102 | of it, thus forming a work based on the Program, and copy and 103 | distribute such modifications or work under the terms of Section 1 104 | above, provided that you also meet all of these conditions: 105 | 106 | a) You must cause the modified files to carry prominent notices 107 | stating that you changed the files and the date of any change. 108 | 109 | b) You must cause any work that you distribute or publish, that in 110 | whole or in part contains or is derived from the Program or any 111 | part thereof, to be licensed as a whole at no charge to all third 112 | parties under the terms of this License. 113 | 114 | c) If the modified program normally reads commands interactively 115 | when run, you must cause it, when started running for such 116 | interactive use in the most ordinary way, to print or display an 117 | announcement including an appropriate copyright notice and a 118 | notice that there is no warranty (or else, saying that you provide 119 | a warranty) and that users may redistribute the program under 120 | these conditions, and telling the user how to view a copy of this 121 | License. (Exception: if the Program itself is interactive but 122 | does not normally print such an announcement, your work based on 123 | the Program is not required to print an announcement.) 124 | 125 | These requirements apply to the modified work as a whole. If 126 | identifiable sections of that work are not derived from the Program, 127 | and can be reasonably considered independent and separate works in 128 | themselves, then this License, and its terms, do not apply to those 129 | sections when you distribute them as separate works. But when you 130 | distribute the same sections as part of a whole which is a work based 131 | on the Program, the distribution of the whole must be on the terms of 132 | this License, whose permissions for other licensees extend to the 133 | entire whole, and thus to each and every part regardless of who wrote it. 134 | 135 | Thus, it is not the intent of this section to claim rights or contest 136 | your rights to work written entirely by you; rather, the intent is to 137 | exercise the right to control the distribution of derivative or 138 | collective works based on the Program. 139 | 140 | In addition, mere aggregation of another work not based on the Program 141 | with the Program (or with a work based on the Program) on a volume of 142 | a storage or distribution medium does not bring the other work under 143 | the scope of this License. 144 | 145 | 3. You may copy and distribute the Program (or a work based on it, 146 | under Section 2) in object code or executable form under the terms of 147 | Sections 1 and 2 above provided that you also do one of the following: 148 | 149 | a) Accompany it with the complete corresponding machine-readable 150 | source code, which must be distributed under the terms of Sections 151 | 1 and 2 above on a medium customarily used for software interchange; or, 152 | 153 | b) Accompany it with a written offer, valid for at least three 154 | years, to give any third party, for a charge no more than your 155 | cost of physically performing source distribution, a complete 156 | machine-readable copy of the corresponding source code, to be 157 | distributed under the terms of Sections 1 and 2 above on a medium 158 | customarily used for software interchange; or, 159 | 160 | c) Accompany it with the information you received as to the offer 161 | to distribute corresponding source code. (This alternative is 162 | allowed only for noncommercial distribution and only if you 163 | received the program in object code or executable form with such 164 | an offer, in accord with Subsection b above.) 165 | 166 | The source code for a work means the preferred form of the work for 167 | making modifications to it. For an executable work, complete source 168 | code means all the source code for all modules it contains, plus any 169 | associated interface definition files, plus the scripts used to 170 | control compilation and installation of the executable. However, as a 171 | special exception, the source code distributed need not include 172 | anything that is normally distributed (in either source or binary 173 | form) with the major components (compiler, kernel, and so on) of the 174 | operating system on which the executable runs, unless that component 175 | itself accompanies the executable. 176 | 177 | If distribution of executable or object code is made by offering 178 | access to copy from a designated place, then offering equivalent 179 | access to copy the source code from the same place counts as 180 | distribution of the source code, even though third parties are not 181 | compelled to copy the source along with the object code. 182 | 183 | 4. You may not copy, modify, sublicense, or distribute the Program 184 | except as expressly provided under this License. Any attempt 185 | otherwise to copy, modify, sublicense or distribute the Program is 186 | void, and will automatically terminate your rights under this License. 187 | However, parties who have received copies, or rights, from you under 188 | this License will not have their licenses terminated so long as such 189 | parties remain in full compliance. 190 | 191 | 5. You are not required to accept this License, since you have not 192 | signed it. However, nothing else grants you permission to modify or 193 | distribute the Program or its derivative works. These actions are 194 | prohibited by law if you do not accept this License. Therefore, by 195 | modifying or distributing the Program (or any work based on the 196 | Program), you indicate your acceptance of this License to do so, and 197 | all its terms and conditions for copying, distributing or modifying 198 | the Program or works based on it. 199 | 200 | 6. Each time you redistribute the Program (or any work based on the 201 | Program), the recipient automatically receives a license from the 202 | original licensor to copy, distribute or modify the Program subject to 203 | these terms and conditions. You may not impose any further 204 | restrictions on the recipients' exercise of the rights granted herein. 205 | You are not responsible for enforcing compliance by third parties to 206 | this License. 207 | 208 | 7. If, as a consequence of a court judgment or allegation of patent 209 | infringement or for any other reason (not limited to patent issues), 210 | conditions are imposed on you (whether by court order, agreement or 211 | otherwise) that contradict the conditions of this License, they do not 212 | excuse you from the conditions of this License. If you cannot 213 | distribute so as to satisfy simultaneously your obligations under this 214 | License and any other pertinent obligations, then as a consequence you 215 | may not distribute the Program at all. For example, if a patent 216 | license would not permit royalty-free redistribution of the Program by 217 | all those who receive copies directly or indirectly through you, then 218 | the only way you could satisfy both it and this License would be to 219 | refrain entirely from distribution of the Program. 220 | 221 | If any portion of this section is held invalid or unenforceable under 222 | any particular circumstance, the balance of the section is intended to 223 | apply and the section as a whole is intended to apply in other 224 | circumstances. 225 | 226 | It is not the purpose of this section to induce you to infringe any 227 | patents or other property right claims or to contest validity of any 228 | such claims; this section has the sole purpose of protecting the 229 | integrity of the free software distribution system, which is 230 | implemented by public license practices. Many people have made 231 | generous contributions to the wide range of software distributed 232 | through that system in reliance on consistent application of that 233 | system; it is up to the author/donor to decide if he or she is willing 234 | to distribute software through any other system and a licensee cannot 235 | impose that choice. 236 | 237 | This section is intended to make thoroughly clear what is believed to 238 | be a consequence of the rest of this License. 239 | 240 | 8. If the distribution and/or use of the Program is restricted in 241 | certain countries either by patents or by copyrighted interfaces, the 242 | original copyright holder who places the Program under this License 243 | may add an explicit geographical distribution limitation excluding 244 | those countries, so that distribution is permitted only in or among 245 | countries not thus excluded. In such case, this License incorporates 246 | the limitation as if written in the body of this License. 247 | 248 | 9. The Free Software Foundation may publish revised and/or new versions 249 | of the General Public License from time to time. Such new versions will 250 | be similar in spirit to the present version, but may differ in detail to 251 | address new problems or concerns. 252 | 253 | Each version is given a distinguishing version number. If the Program 254 | specifies a version number of this License which applies to it and "any 255 | later version", you have the option of following the terms and conditions 256 | either of that version or of any later version published by the Free 257 | Software Foundation. If the Program does not specify a version number of 258 | this License, you may choose any version ever published by the Free Software 259 | Foundation. 260 | 261 | 10. If you wish to incorporate parts of the Program into other free 262 | programs whose distribution conditions are different, write to the author 263 | to ask for permission. For software which is copyrighted by the Free 264 | Software Foundation, write to the Free Software Foundation; we sometimes 265 | make exceptions for this. Our decision will be guided by the two goals 266 | of preserving the free status of all derivatives of our free software and 267 | of promoting the sharing and reuse of software generally. 268 | 269 | NO WARRANTY 270 | 271 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 272 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 273 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 274 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 275 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 276 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 277 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 278 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 279 | REPAIR OR CORRECTION. 280 | 281 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 282 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 283 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 284 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 285 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 286 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 287 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 288 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 289 | POSSIBILITY OF SUCH DAMAGES. 290 | -------------------------------------------------------------------------------- /templates/cc-by-4.0.erb: -------------------------------------------------------------------------------- 1 | <%= option(:work) %> (c) by <%= authors %> 2 | 3 | Attribution 4.0 International 4 | 5 | ======================================================================= 6 | 7 | Creative Commons Corporation ("Creative Commons") is not a law firm and 8 | does not provide legal services or legal advice. Distribution of 9 | Creative Commons public licenses does not create a lawyer-client or 10 | other relationship. Creative Commons makes its licenses and related 11 | information available on an "as-is" basis. Creative Commons gives no 12 | warranties regarding its licenses, any material licensed under their 13 | terms and conditions, or any related information. Creative Commons 14 | disclaims all liability for damages resulting from their use to the 15 | fullest extent possible. 16 | 17 | Using Creative Commons Public Licenses 18 | 19 | Creative Commons public licenses provide a standard set of terms and 20 | conditions that creators and other rights holders may use to share 21 | original works of authorship and other material subject to copyright 22 | and certain other rights specified in the public license below. The 23 | following considerations are for informational purposes only, are not 24 | exhaustive, and do not form part of our licenses. 25 | 26 | Considerations for licensors: Our public licenses are 27 | intended for use by those authorized to give the public 28 | permission to use material in ways otherwise restricted by 29 | copyright and certain other rights. Our licenses are 30 | irrevocable. Licensors should read and understand the terms 31 | and conditions of the license they choose before applying it. 32 | Licensors should also secure all rights necessary before 33 | applying our licenses so that the public can reuse the 34 | material as expected. Licensors should clearly mark any 35 | material not subject to the license. This includes other CC- 36 | licensed material, or material used under an exception or 37 | limitation to copyright. More considerations for licensors: 38 | wiki.creativecommons.org/Considerations_for_licensors 39 | 40 | Considerations for the public: By using one of our public 41 | licenses, a licensor grants the public permission to use the 42 | licensed material under specified terms and conditions. If 43 | the licensor's permission is not necessary for any reason--for 44 | example, because of any applicable exception or limitation to 45 | copyright--then that use is not regulated by the license. Our 46 | licenses grant only permissions under copyright and certain 47 | other rights that a licensor has authority to grant. Use of 48 | the licensed material may still be restricted for other 49 | reasons, including because others have copyright or other 50 | rights in the material. A licensor may make special requests, 51 | such as asking that all changes be marked or described. 52 | Although not required by our licenses, you are encouraged to 53 | respect those requests where reasonable. More_considerations 54 | for the public: 55 | wiki.creativecommons.org/Considerations_for_licensees 56 | 57 | ======================================================================= 58 | 59 | Creative Commons Attribution 4.0 International Public License 60 | 61 | By exercising the Licensed Rights (defined below), You accept and agree 62 | to be bound by the terms and conditions of this Creative Commons 63 | Attribution 4.0 International Public License ("Public License"). To the 64 | extent this Public License may be interpreted as a contract, You are 65 | granted the Licensed Rights in consideration of Your acceptance of 66 | these terms and conditions, and the Licensor grants You such rights in 67 | consideration of benefits the Licensor receives from making the 68 | Licensed Material available under these terms and conditions. 69 | 70 | 71 | Section 1 -- Definitions. 72 | 73 | a. Adapted Material means material subject to Copyright and Similar 74 | Rights that is derived from or based upon the Licensed Material 75 | and in which the Licensed Material is translated, altered, 76 | arranged, transformed, or otherwise modified in a manner requiring 77 | permission under the Copyright and Similar Rights held by the 78 | Licensor. For purposes of this Public License, where the Licensed 79 | Material is a musical work, performance, or sound recording, 80 | Adapted Material is always produced where the Licensed Material is 81 | synched in timed relation with a moving image. 82 | 83 | b. Adapter's License means the license You apply to Your Copyright 84 | and Similar Rights in Your contributions to Adapted Material in 85 | accordance with the terms and conditions of this Public License. 86 | 87 | c. Copyright and Similar Rights means copyright and/or similar rights 88 | closely related to copyright including, without limitation, 89 | performance, broadcast, sound recording, and Sui Generis Database 90 | Rights, without regard to how the rights are labeled or 91 | categorized. For purposes of this Public License, the rights 92 | specified in Section 2(b)(1)-(2) are not Copyright and Similar 93 | Rights. 94 | 95 | d. Effective Technological Measures means those measures that, in the 96 | absence of proper authority, may not be circumvented under laws 97 | fulfilling obligations under Article 11 of the WIPO Copyright 98 | Treaty adopted on December 20, 1996, and/or similar international 99 | agreements. 100 | 101 | e. Exceptions and Limitations means fair use, fair dealing, and/or 102 | any other exception or limitation to Copyright and Similar Rights 103 | that applies to Your use of the Licensed Material. 104 | 105 | f. Licensed Material means the artistic or literary work, database, 106 | or other material to which the Licensor applied this Public 107 | License. 108 | 109 | g. Licensed Rights means the rights granted to You subject to the 110 | terms and conditions of this Public License, which are limited to 111 | all Copyright and Similar Rights that apply to Your use of the 112 | Licensed Material and that the Licensor has authority to license. 113 | 114 | h. Licensor means the individual(s) or entity(ies) granting rights 115 | under this Public License. 116 | 117 | i. Share means to provide material to the public by any means or 118 | process that requires permission under the Licensed Rights, such 119 | as reproduction, public display, public performance, distribution, 120 | dissemination, communication, or importation, and to make material 121 | available to the public including in ways that members of the 122 | public may access the material from a place and at a time 123 | individually chosen by them. 124 | 125 | j. Sui Generis Database Rights means rights other than copyright 126 | resulting from Directive 96/9/EC of the European Parliament and of 127 | the Council of 11 March 1996 on the legal protection of databases, 128 | as amended and/or succeeded, as well as other essentially 129 | equivalent rights anywhere in the world. 130 | 131 | k. You means the individual or entity exercising the Licensed Rights 132 | under this Public License. Your has a corresponding meaning. 133 | 134 | 135 | Section 2 -- Scope. 136 | 137 | a. License grant. 138 | 139 | 1. Subject to the terms and conditions of this Public License, 140 | the Licensor hereby grants You a worldwide, royalty-free, 141 | non-sublicensable, non-exclusive, irrevocable license to 142 | exercise the Licensed Rights in the Licensed Material to: 143 | 144 | a. reproduce and Share the Licensed Material, in whole or 145 | in part; and 146 | 147 | b. produce, reproduce, and Share Adapted Material. 148 | 149 | 2. Exceptions and Limitations. For the avoidance of doubt, where 150 | Exceptions and Limitations apply to Your use, this Public 151 | License does not apply, and You do not need to comply with 152 | its terms and conditions. 153 | 154 | 3. Term. The term of this Public License is specified in Section 155 | 6(a). 156 | 157 | 4. Media and formats; technical modifications allowed. The 158 | Licensor authorizes You to exercise the Licensed Rights in 159 | all media and formats whether now known or hereafter created, 160 | and to make technical modifications necessary to do so. The 161 | Licensor waives and/or agrees not to assert any right or 162 | authority to forbid You from making technical modifications 163 | necessary to exercise the Licensed Rights, including 164 | technical modifications necessary to circumvent Effective 165 | Technological Measures. For purposes of this Public License, 166 | simply making modifications authorized by this Section 2(a) 167 | (4) never produces Adapted Material. 168 | 169 | 5. Downstream recipients. 170 | 171 | a. Offer from the Licensor -- Licensed Material. Every 172 | recipient of the Licensed Material automatically 173 | receives an offer from the Licensor to exercise the 174 | Licensed Rights under the terms and conditions of this 175 | Public License. 176 | 177 | b. No downstream restrictions. You may not offer or impose 178 | any additional or different terms or conditions on, or 179 | apply any Effective Technological Measures to, the 180 | Licensed Material if doing so restricts exercise of the 181 | Licensed Rights by any recipient of the Licensed 182 | Material. 183 | 184 | 6. No endorsement. Nothing in this Public License constitutes or 185 | may be construed as permission to assert or imply that You 186 | are, or that Your use of the Licensed Material is, connected 187 | with, or sponsored, endorsed, or granted official status by, 188 | the Licensor or others designated to receive attribution as 189 | provided in Section 3(a)(1)(A)(i). 190 | 191 | b. Other rights. 192 | 193 | 1. Moral rights, such as the right of integrity, are not 194 | licensed under this Public License, nor are publicity, 195 | privacy, and/or other similar personality rights; however, to 196 | the extent possible, the Licensor waives and/or agrees not to 197 | assert any such rights held by the Licensor to the limited 198 | extent necessary to allow You to exercise the Licensed 199 | Rights, but not otherwise. 200 | 201 | 2. Patent and trademark rights are not licensed under this 202 | Public License. 203 | 204 | 3. To the extent possible, the Licensor waives any right to 205 | collect royalties from You for the exercise of the Licensed 206 | Rights, whether directly or through a collecting society 207 | under any voluntary or waivable statutory or compulsory 208 | licensing scheme. In all other cases the Licensor expressly 209 | reserves any right to collect such royalties. 210 | 211 | 212 | Section 3 -- License Conditions. 213 | 214 | Your exercise of the Licensed Rights is expressly made subject to the 215 | following conditions. 216 | 217 | a. Attribution. 218 | 219 | 1. If You Share the Licensed Material (including in modified 220 | form), You must: 221 | 222 | a. retain the following if it is supplied by the Licensor 223 | with the Licensed Material: 224 | 225 | i. identification of the creator(s) of the Licensed 226 | Material and any others designated to receive 227 | attribution, in any reasonable manner requested by 228 | the Licensor (including by pseudonym if 229 | designated); 230 | 231 | ii. a copyright notice; 232 | 233 | iii. a notice that refers to this Public License; 234 | 235 | iv. a notice that refers to the disclaimer of 236 | warranties; 237 | 238 | v. a URI or hyperlink to the Licensed Material to the 239 | extent reasonably practicable; 240 | 241 | b. indicate if You modified the Licensed Material and 242 | retain an indication of any previous modifications; and 243 | 244 | c. indicate the Licensed Material is licensed under this 245 | Public License, and include the text of, or the URI or 246 | hyperlink to, this Public License. 247 | 248 | 2. You may satisfy the conditions in Section 3(a)(1) in any 249 | reasonable manner based on the medium, means, and context in 250 | which You Share the Licensed Material. For example, it may be 251 | reasonable to satisfy the conditions by providing a URI or 252 | hyperlink to a resource that includes the required 253 | information. 254 | 255 | 3. If requested by the Licensor, You must remove any of the 256 | information required by Section 3(a)(1)(A) to the extent 257 | reasonably practicable. 258 | 259 | 4. If You Share Adapted Material You produce, the Adapter's 260 | License You apply must not prevent recipients of the Adapted 261 | Material from complying with this Public License. 262 | 263 | 264 | Section 4 -- Sui Generis Database Rights. 265 | 266 | Where the Licensed Rights include Sui Generis Database Rights that 267 | apply to Your use of the Licensed Material: 268 | 269 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right 270 | to extract, reuse, reproduce, and Share all or a substantial 271 | portion of the contents of the database; 272 | 273 | b. if You include all or a substantial portion of the database 274 | contents in a database in which You have Sui Generis Database 275 | Rights, then the database in which You have Sui Generis Database 276 | Rights (but not its individual contents) is Adapted Material; and 277 | 278 | c. You must comply with the conditions in Section 3(a) if You Share 279 | all or a substantial portion of the contents of the database. 280 | 281 | For the avoidance of doubt, this Section 4 supplements and does not 282 | replace Your obligations under this Public License where the Licensed 283 | Rights include other Copyright and Similar Rights. 284 | 285 | 286 | Section 5 -- Disclaimer of Warranties and Limitation of Liability. 287 | 288 | a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE 289 | EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS 290 | AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF 291 | ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, 292 | IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, 293 | WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR 294 | PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, 295 | ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT 296 | KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT 297 | ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. 298 | 299 | b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE 300 | TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, 301 | NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, 302 | INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, 303 | COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR 304 | USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN 305 | ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR 306 | DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR 307 | IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. 308 | 309 | c. The disclaimer of warranties and limitation of liability provided 310 | above shall be interpreted in a manner that, to the extent 311 | possible, most closely approximates an absolute disclaimer and 312 | waiver of all liability. 313 | 314 | 315 | Section 6 -- Term and Termination. 316 | 317 | a. This Public License applies for the term of the Copyright and 318 | Similar Rights licensed here. However, if You fail to comply with 319 | this Public License, then Your rights under this Public License 320 | terminate automatically. 321 | 322 | b. Where Your right to use the Licensed Material has terminated under 323 | Section 6(a), it reinstates: 324 | 325 | 1. automatically as of the date the violation is cured, provided 326 | it is cured within 30 days of Your discovery of the 327 | violation; or 328 | 329 | 2. upon express reinstatement by the Licensor. 330 | 331 | For the avoidance of doubt, this Section 6(b) does not affect any 332 | right the Licensor may have to seek remedies for Your violations 333 | of this Public License. 334 | 335 | c. For the avoidance of doubt, the Licensor may also offer the 336 | Licensed Material under separate terms or conditions or stop 337 | distributing the Licensed Material at any time; however, doing so 338 | will not terminate this Public License. 339 | 340 | d. Sections 1, 5, 6, 7, and 8 survive termination of this Public 341 | License. 342 | 343 | 344 | Section 7 -- Other Terms and Conditions. 345 | 346 | a. The Licensor shall not be bound by any additional or different 347 | terms or conditions communicated by You unless expressly agreed. 348 | 349 | b. Any arrangements, understandings, or agreements regarding the 350 | Licensed Material not stated herein are separate from and 351 | independent of the terms and conditions of this Public License. 352 | 353 | 354 | Section 8 -- Interpretation. 355 | 356 | a. For the avoidance of doubt, this Public License does not, and 357 | shall not be interpreted to, reduce, limit, restrict, or impose 358 | conditions on any use of the Licensed Material that could lawfully 359 | be made without permission under this Public License. 360 | 361 | b. To the extent possible, if any provision of this Public License is 362 | deemed unenforceable, it shall be automatically reformed to the 363 | minimum extent necessary to make it enforceable. If the provision 364 | cannot be reformed, it shall be severed from this Public License 365 | without affecting the enforceability of the remaining terms and 366 | conditions. 367 | 368 | c. No term or condition of this Public License will be waived and no 369 | failure to comply consented to unless expressly agreed to by the 370 | Licensor. 371 | 372 | d. Nothing in this Public License constitutes or may be interpreted 373 | as a limitation upon, or waiver of, any privileges and immunities 374 | that apply to the Licensor or You, including from the legal 375 | processes of any jurisdiction or authority. 376 | 377 | 378 | ======================================================================= 379 | 380 | Creative Commons is not a party to its public licenses. 381 | Notwithstanding, Creative Commons may elect to apply one of its public 382 | licenses to material it publishes and in those instances will be 383 | considered the "Licensor." Except for the limited purpose of indicating 384 | that material is shared under a Creative Commons public license or as 385 | otherwise permitted by the Creative Commons policies published at 386 | creativecommons.org/policies, Creative Commons does not authorize the 387 | use of the trademark "Creative Commons" or any other trademark or logo 388 | of Creative Commons without its prior written consent including, 389 | without limitation, in connection with any unauthorized modifications 390 | to any of its public licenses or any other arrangements, 391 | understandings, or agreements concerning use of licensed material. For 392 | the avoidance of doubt, this paragraph does not form part of the public 393 | licenses. 394 | 395 | Creative Commons may be contacted at creativecommons.org. 396 | -------------------------------------------------------------------------------- /templates/cc-by-nc-4.0.erb: -------------------------------------------------------------------------------- 1 | <%= option(:work) %> (c) by <%= authors %> 2 | 3 | Attribution-NonCommercial 4.0 International 4 | 5 | ======================================================================= 6 | 7 | Creative Commons Corporation ("Creative Commons") is not a law firm and 8 | does not provide legal services or legal advice. Distribution of 9 | Creative Commons public licenses does not create a lawyer-client or 10 | other relationship. Creative Commons makes its licenses and related 11 | information available on an "as-is" basis. Creative Commons gives no 12 | warranties regarding its licenses, any material licensed under their 13 | terms and conditions, or any related information. Creative Commons 14 | disclaims all liability for damages resulting from their use to the 15 | fullest extent possible. 16 | 17 | Using Creative Commons Public Licenses 18 | 19 | Creative Commons public licenses provide a standard set of terms and 20 | conditions that creators and other rights holders may use to share 21 | original works of authorship and other material subject to copyright 22 | and certain other rights specified in the public license below. The 23 | following considerations are for informational purposes only, are not 24 | exhaustive, and do not form part of our licenses. 25 | 26 | Considerations for licensors: Our public licenses are 27 | intended for use by those authorized to give the public 28 | permission to use material in ways otherwise restricted by 29 | copyright and certain other rights. Our licenses are 30 | irrevocable. Licensors should read and understand the terms 31 | and conditions of the license they choose before applying it. 32 | Licensors should also secure all rights necessary before 33 | applying our licenses so that the public can reuse the 34 | material as expected. Licensors should clearly mark any 35 | material not subject to the license. This includes other CC- 36 | licensed material, or material used under an exception or 37 | limitation to copyright. More considerations for licensors: 38 | wiki.creativecommons.org/Considerations_for_licensors 39 | 40 | Considerations for the public: By using one of our public 41 | licenses, a licensor grants the public permission to use the 42 | licensed material under specified terms and conditions. If 43 | the licensor's permission is not necessary for any reason--for 44 | example, because of any applicable exception or limitation to 45 | copyright--then that use is not regulated by the license. Our 46 | licenses grant only permissions under copyright and certain 47 | other rights that a licensor has authority to grant. Use of 48 | the licensed material may still be restricted for other 49 | reasons, including because others have copyright or other 50 | rights in the material. A licensor may make special requests, 51 | such as asking that all changes be marked or described. 52 | Although not required by our licenses, you are encouraged to 53 | respect those requests where reasonable. More_considerations 54 | for the public: 55 | wiki.creativecommons.org/Considerations_for_licensees 56 | 57 | ======================================================================= 58 | 59 | Creative Commons Attribution-NonCommercial 4.0 International Public 60 | License 61 | 62 | By exercising the Licensed Rights (defined below), You accept and agree 63 | to be bound by the terms and conditions of this Creative Commons 64 | Attribution-NonCommercial 4.0 International Public License ("Public 65 | License"). To the extent this Public License may be interpreted as a 66 | contract, You are granted the Licensed Rights in consideration of Your 67 | acceptance of these terms and conditions, and the Licensor grants You 68 | such rights in consideration of benefits the Licensor receives from 69 | making the Licensed Material available under these terms and 70 | conditions. 71 | 72 | 73 | Section 1 -- Definitions. 74 | 75 | a. Adapted Material means material subject to Copyright and Similar 76 | Rights that is derived from or based upon the Licensed Material 77 | and in which the Licensed Material is translated, altered, 78 | arranged, transformed, or otherwise modified in a manner requiring 79 | permission under the Copyright and Similar Rights held by the 80 | Licensor. For purposes of this Public License, where the Licensed 81 | Material is a musical work, performance, or sound recording, 82 | Adapted Material is always produced where the Licensed Material is 83 | synched in timed relation with a moving image. 84 | 85 | b. Adapter's License means the license You apply to Your Copyright 86 | and Similar Rights in Your contributions to Adapted Material in 87 | accordance with the terms and conditions of this Public License. 88 | 89 | c. Copyright and Similar Rights means copyright and/or similar rights 90 | closely related to copyright including, without limitation, 91 | performance, broadcast, sound recording, and Sui Generis Database 92 | Rights, without regard to how the rights are labeled or 93 | categorized. For purposes of this Public License, the rights 94 | specified in Section 2(b)(1)-(2) are not Copyright and Similar 95 | Rights. 96 | d. Effective Technological Measures means those measures that, in the 97 | absence of proper authority, may not be circumvented under laws 98 | fulfilling obligations under Article 11 of the WIPO Copyright 99 | Treaty adopted on December 20, 1996, and/or similar international 100 | agreements. 101 | 102 | e. Exceptions and Limitations means fair use, fair dealing, and/or 103 | any other exception or limitation to Copyright and Similar Rights 104 | that applies to Your use of the Licensed Material. 105 | 106 | f. Licensed Material means the artistic or literary work, database, 107 | or other material to which the Licensor applied this Public 108 | License. 109 | 110 | g. Licensed Rights means the rights granted to You subject to the 111 | terms and conditions of this Public License, which are limited to 112 | all Copyright and Similar Rights that apply to Your use of the 113 | Licensed Material and that the Licensor has authority to license. 114 | 115 | h. Licensor means the individual(s) or entity(ies) granting rights 116 | under this Public License. 117 | 118 | i. NonCommercial means not primarily intended for or directed towards 119 | commercial advantage or monetary compensation. For purposes of 120 | this Public License, the exchange of the Licensed Material for 121 | other material subject to Copyright and Similar Rights by digital 122 | file-sharing or similar means is NonCommercial provided there is 123 | no payment of monetary compensation in connection with the 124 | exchange. 125 | 126 | j. Share means to provide material to the public by any means or 127 | process that requires permission under the Licensed Rights, such 128 | as reproduction, public display, public performance, distribution, 129 | dissemination, communication, or importation, and to make material 130 | available to the public including in ways that members of the 131 | public may access the material from a place and at a time 132 | individually chosen by them. 133 | 134 | k. Sui Generis Database Rights means rights other than copyright 135 | resulting from Directive 96/9/EC of the European Parliament and of 136 | the Council of 11 March 1996 on the legal protection of databases, 137 | as amended and/or succeeded, as well as other essentially 138 | equivalent rights anywhere in the world. 139 | 140 | l. You means the individual or entity exercising the Licensed Rights 141 | under this Public License. Your has a corresponding meaning. 142 | 143 | 144 | Section 2 -- Scope. 145 | 146 | a. License grant. 147 | 148 | 1. Subject to the terms and conditions of this Public License, 149 | the Licensor hereby grants You a worldwide, royalty-free, 150 | non-sublicensable, non-exclusive, irrevocable license to 151 | exercise the Licensed Rights in the Licensed Material to: 152 | 153 | a. reproduce and Share the Licensed Material, in whole or 154 | in part, for NonCommercial purposes only; and 155 | 156 | b. produce, reproduce, and Share Adapted Material for 157 | NonCommercial purposes only. 158 | 159 | 2. Exceptions and Limitations. For the avoidance of doubt, where 160 | Exceptions and Limitations apply to Your use, this Public 161 | License does not apply, and You do not need to comply with 162 | its terms and conditions. 163 | 164 | 3. Term. The term of this Public License is specified in Section 165 | 6(a). 166 | 167 | 4. Media and formats; technical modifications allowed. The 168 | Licensor authorizes You to exercise the Licensed Rights in 169 | all media and formats whether now known or hereafter created, 170 | and to make technical modifications necessary to do so. The 171 | Licensor waives and/or agrees not to assert any right or 172 | authority to forbid You from making technical modifications 173 | necessary to exercise the Licensed Rights, including 174 | technical modifications necessary to circumvent Effective 175 | Technological Measures. For purposes of this Public License, 176 | simply making modifications authorized by this Section 2(a) 177 | (4) never produces Adapted Material. 178 | 179 | 5. Downstream recipients. 180 | 181 | a. Offer from the Licensor -- Licensed Material. Every 182 | recipient of the Licensed Material automatically 183 | receives an offer from the Licensor to exercise the 184 | Licensed Rights under the terms and conditions of this 185 | Public License. 186 | 187 | b. No downstream restrictions. You may not offer or impose 188 | any additional or different terms or conditions on, or 189 | apply any Effective Technological Measures to, the 190 | Licensed Material if doing so restricts exercise of the 191 | Licensed Rights by any recipient of the Licensed 192 | Material. 193 | 194 | 6. No endorsement. Nothing in this Public License constitutes or 195 | may be construed as permission to assert or imply that You 196 | are, or that Your use of the Licensed Material is, connected 197 | with, or sponsored, endorsed, or granted official status by, 198 | the Licensor or others designated to receive attribution as 199 | provided in Section 3(a)(1)(A)(i). 200 | 201 | b. Other rights. 202 | 203 | 1. Moral rights, such as the right of integrity, are not 204 | licensed under this Public License, nor are publicity, 205 | privacy, and/or other similar personality rights; however, to 206 | the extent possible, the Licensor waives and/or agrees not to 207 | assert any such rights held by the Licensor to the limited 208 | extent necessary to allow You to exercise the Licensed 209 | Rights, but not otherwise. 210 | 211 | 2. Patent and trademark rights are not licensed under this 212 | Public License. 213 | 214 | 3. To the extent possible, the Licensor waives any right to 215 | collect royalties from You for the exercise of the Licensed 216 | Rights, whether directly or through a collecting society 217 | under any voluntary or waivable statutory or compulsory 218 | licensing scheme. In all other cases the Licensor expressly 219 | reserves any right to collect such royalties, including when 220 | the Licensed Material is used other than for NonCommercial 221 | purposes. 222 | 223 | 224 | Section 3 -- License Conditions. 225 | 226 | Your exercise of the Licensed Rights is expressly made subject to the 227 | following conditions. 228 | 229 | a. Attribution. 230 | 231 | 1. If You Share the Licensed Material (including in modified 232 | form), You must: 233 | 234 | a. retain the following if it is supplied by the Licensor 235 | with the Licensed Material: 236 | 237 | i. identification of the creator(s) of the Licensed 238 | Material and any others designated to receive 239 | attribution, in any reasonable manner requested by 240 | the Licensor (including by pseudonym if 241 | designated); 242 | 243 | ii. a copyright notice; 244 | 245 | iii. a notice that refers to this Public License; 246 | 247 | iv. a notice that refers to the disclaimer of 248 | warranties; 249 | 250 | v. a URI or hyperlink to the Licensed Material to the 251 | extent reasonably practicable; 252 | 253 | b. indicate if You modified the Licensed Material and 254 | retain an indication of any previous modifications; and 255 | 256 | c. indicate the Licensed Material is licensed under this 257 | Public License, and include the text of, or the URI or 258 | hyperlink to, this Public License. 259 | 260 | 2. You may satisfy the conditions in Section 3(a)(1) in any 261 | reasonable manner based on the medium, means, and context in 262 | which You Share the Licensed Material. For example, it may be 263 | reasonable to satisfy the conditions by providing a URI or 264 | hyperlink to a resource that includes the required 265 | information. 266 | 267 | 3. If requested by the Licensor, You must remove any of the 268 | information required by Section 3(a)(1)(A) to the extent 269 | reasonably practicable. 270 | 271 | 4. If You Share Adapted Material You produce, the Adapter's 272 | License You apply must not prevent recipients of the Adapted 273 | Material from complying with this Public License. 274 | 275 | 276 | Section 4 -- Sui Generis Database Rights. 277 | 278 | Where the Licensed Rights include Sui Generis Database Rights that 279 | apply to Your use of the Licensed Material: 280 | 281 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right 282 | to extract, reuse, reproduce, and Share all or a substantial 283 | portion of the contents of the database for NonCommercial purposes 284 | only; 285 | 286 | b. if You include all or a substantial portion of the database 287 | contents in a database in which You have Sui Generis Database 288 | Rights, then the database in which You have Sui Generis Database 289 | Rights (but not its individual contents) is Adapted Material; and 290 | 291 | c. You must comply with the conditions in Section 3(a) if You Share 292 | all or a substantial portion of the contents of the database. 293 | 294 | For the avoidance of doubt, this Section 4 supplements and does not 295 | replace Your obligations under this Public License where the Licensed 296 | Rights include other Copyright and Similar Rights. 297 | 298 | 299 | Section 5 -- Disclaimer of Warranties and Limitation of Liability. 300 | 301 | a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE 302 | EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS 303 | AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF 304 | ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, 305 | IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, 306 | WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR 307 | PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, 308 | ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT 309 | KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT 310 | ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. 311 | 312 | b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE 313 | TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, 314 | NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, 315 | INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, 316 | COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR 317 | USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN 318 | ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR 319 | DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR 320 | IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. 321 | 322 | c. The disclaimer of warranties and limitation of liability provided 323 | above shall be interpreted in a manner that, to the extent 324 | possible, most closely approximates an absolute disclaimer and 325 | waiver of all liability. 326 | 327 | 328 | Section 6 -- Term and Termination. 329 | 330 | a. This Public License applies for the term of the Copyright and 331 | Similar Rights licensed here. However, if You fail to comply with 332 | this Public License, then Your rights under this Public License 333 | terminate automatically. 334 | 335 | b. Where Your right to use the Licensed Material has terminated under 336 | Section 6(a), it reinstates: 337 | 338 | 1. automatically as of the date the violation is cured, provided 339 | it is cured within 30 days of Your discovery of the 340 | violation; or 341 | 342 | 2. upon express reinstatement by the Licensor. 343 | 344 | For the avoidance of doubt, this Section 6(b) does not affect any 345 | right the Licensor may have to seek remedies for Your violations 346 | of this Public License. 347 | 348 | c. For the avoidance of doubt, the Licensor may also offer the 349 | Licensed Material under separate terms or conditions or stop 350 | distributing the Licensed Material at any time; however, doing so 351 | will not terminate this Public License. 352 | 353 | d. Sections 1, 5, 6, 7, and 8 survive termination of this Public 354 | License. 355 | 356 | 357 | Section 7 -- Other Terms and Conditions. 358 | 359 | a. The Licensor shall not be bound by any additional or different 360 | terms or conditions communicated by You unless expressly agreed. 361 | 362 | b. Any arrangements, understandings, or agreements regarding the 363 | Licensed Material not stated herein are separate from and 364 | independent of the terms and conditions of this Public License. 365 | 366 | 367 | Section 8 -- Interpretation. 368 | 369 | a. For the avoidance of doubt, this Public License does not, and 370 | shall not be interpreted to, reduce, limit, restrict, or impose 371 | conditions on any use of the Licensed Material that could lawfully 372 | be made without permission under this Public License. 373 | 374 | b. To the extent possible, if any provision of this Public License is 375 | deemed unenforceable, it shall be automatically reformed to the 376 | minimum extent necessary to make it enforceable. If the provision 377 | cannot be reformed, it shall be severed from this Public License 378 | without affecting the enforceability of the remaining terms and 379 | conditions. 380 | 381 | c. No term or condition of this Public License will be waived and no 382 | failure to comply consented to unless expressly agreed to by the 383 | Licensor. 384 | 385 | d. Nothing in this Public License constitutes or may be interpreted 386 | as a limitation upon, or waiver of, any privileges and immunities 387 | that apply to the Licensor or You, including from the legal 388 | processes of any jurisdiction or authority. 389 | 390 | ======================================================================= 391 | 392 | Creative Commons is not a party to its public licenses. 393 | Notwithstanding, Creative Commons may elect to apply one of its public 394 | licenses to material it publishes and in those instances will be 395 | considered the "Licensor." Except for the limited purpose of indicating 396 | that material is shared under a Creative Commons public license or as 397 | otherwise permitted by the Creative Commons policies published at 398 | creativecommons.org/policies, Creative Commons does not authorize the 399 | use of the trademark "Creative Commons" or any other trademark or logo 400 | of Creative Commons without its prior written consent including, 401 | without limitation, in connection with any unauthorized modifications 402 | to any of its public licenses or any other arrangements, 403 | understandings, or agreements concerning use of licensed material. For 404 | the avoidance of doubt, this paragraph does not form part of the public 405 | licenses. 406 | 407 | Creative Commons may be contacted at creativecommons.org. 408 | -------------------------------------------------------------------------------- /templates/cc-by-sa-4.0.erb: -------------------------------------------------------------------------------- 1 | <%= option(:work) %> (c) by <%= authors %> 2 | 3 | Attribution-ShareAlike 4.0 International 4 | 5 | ======================================================================= 6 | 7 | Creative Commons Corporation ("Creative Commons") is not a law firm and 8 | does not provide legal services or legal advice. Distribution of 9 | Creative Commons public licenses does not create a lawyer-client or 10 | other relationship. Creative Commons makes its licenses and related 11 | information available on an "as-is" basis. Creative Commons gives no 12 | warranties regarding its licenses, any material licensed under their 13 | terms and conditions, or any related information. Creative Commons 14 | disclaims all liability for damages resulting from their use to the 15 | fullest extent possible. 16 | 17 | Using Creative Commons Public Licenses 18 | 19 | Creative Commons public licenses provide a standard set of terms and 20 | conditions that creators and other rights holders may use to share 21 | original works of authorship and other material subject to copyright 22 | and certain other rights specified in the public license below. The 23 | following considerations are for informational purposes only, are not 24 | exhaustive, and do not form part of our licenses. 25 | 26 | Considerations for licensors: Our public licenses are 27 | intended for use by those authorized to give the public 28 | permission to use material in ways otherwise restricted by 29 | copyright and certain other rights. Our licenses are 30 | irrevocable. Licensors should read and understand the terms 31 | and conditions of the license they choose before applying it. 32 | Licensors should also secure all rights necessary before 33 | applying our licenses so that the public can reuse the 34 | material as expected. Licensors should clearly mark any 35 | material not subject to the license. This includes other CC- 36 | licensed material, or material used under an exception or 37 | limitation to copyright. More considerations for licensors: 38 | wiki.creativecommons.org/Considerations_for_licensors 39 | 40 | Considerations for the public: By using one of our public 41 | licenses, a licensor grants the public permission to use the 42 | licensed material under specified terms and conditions. If 43 | the licensor's permission is not necessary for any reason--for 44 | example, because of any applicable exception or limitation to 45 | copyright--then that use is not regulated by the license. Our 46 | licenses grant only permissions under copyright and certain 47 | other rights that a licensor has authority to grant. Use of 48 | the licensed material may still be restricted for other 49 | reasons, including because others have copyright or other 50 | rights in the material. A licensor may make special requests, 51 | such as asking that all changes be marked or described. 52 | Although not required by our licenses, you are encouraged to 53 | respect those requests where reasonable. More_considerations 54 | for the public: 55 | wiki.creativecommons.org/Considerations_for_licensees 56 | 57 | ======================================================================= 58 | 59 | Creative Commons Attribution-ShareAlike 4.0 International Public 60 | License 61 | 62 | By exercising the Licensed Rights (defined below), You accept and agree 63 | to be bound by the terms and conditions of this Creative Commons 64 | Attribution-ShareAlike 4.0 International Public License ("Public 65 | License"). To the extent this Public License may be interpreted as a 66 | contract, You are granted the Licensed Rights in consideration of Your 67 | acceptance of these terms and conditions, and the Licensor grants You 68 | such rights in consideration of benefits the Licensor receives from 69 | making the Licensed Material available under these terms and 70 | conditions. 71 | 72 | 73 | Section 1 -- Definitions. 74 | 75 | a. Adapted Material means material subject to Copyright and Similar 76 | Rights that is derived from or based upon the Licensed Material 77 | and in which the Licensed Material is translated, altered, 78 | arranged, transformed, or otherwise modified in a manner requiring 79 | permission under the Copyright and Similar Rights held by the 80 | Licensor. For purposes of this Public License, where the Licensed 81 | Material is a musical work, performance, or sound recording, 82 | Adapted Material is always produced where the Licensed Material is 83 | synched in timed relation with a moving image. 84 | 85 | b. Adapter's License means the license You apply to Your Copyright 86 | and Similar Rights in Your contributions to Adapted Material in 87 | accordance with the terms and conditions of this Public License. 88 | 89 | c. BY-SA Compatible License means a license listed at 90 | creativecommons.org/compatiblelicenses, approved by Creative 91 | Commons as essentially the equivalent of this Public License. 92 | 93 | d. Copyright and Similar Rights means copyright and/or similar rights 94 | closely related to copyright including, without limitation, 95 | performance, broadcast, sound recording, and Sui Generis Database 96 | Rights, without regard to how the rights are labeled or 97 | categorized. For purposes of this Public License, the rights 98 | specified in Section 2(b)(1)-(2) are not Copyright and Similar 99 | Rights. 100 | 101 | e. Effective Technological Measures means those measures that, in the 102 | absence of proper authority, may not be circumvented under laws 103 | fulfilling obligations under Article 11 of the WIPO Copyright 104 | Treaty adopted on December 20, 1996, and/or similar international 105 | agreements. 106 | 107 | f. Exceptions and Limitations means fair use, fair dealing, and/or 108 | any other exception or limitation to Copyright and Similar Rights 109 | that applies to Your use of the Licensed Material. 110 | 111 | g. License Elements means the license attributes listed in the name 112 | of a Creative Commons Public License. The License Elements of this 113 | Public License are Attribution and ShareAlike. 114 | 115 | h. Licensed Material means the artistic or literary work, database, 116 | or other material to which the Licensor applied this Public 117 | License. 118 | 119 | i. Licensed Rights means the rights granted to You subject to the 120 | terms and conditions of this Public License, which are limited to 121 | all Copyright and Similar Rights that apply to Your use of the 122 | Licensed Material and that the Licensor has authority to license. 123 | 124 | j. Licensor means the individual(s) or entity(ies) granting rights 125 | under this Public License. 126 | 127 | k. Share means to provide material to the public by any means or 128 | process that requires permission under the Licensed Rights, such 129 | as reproduction, public display, public performance, distribution, 130 | dissemination, communication, or importation, and to make material 131 | available to the public including in ways that members of the 132 | public may access the material from a place and at a time 133 | individually chosen by them. 134 | 135 | l. Sui Generis Database Rights means rights other than copyright 136 | resulting from Directive 96/9/EC of the European Parliament and of 137 | the Council of 11 March 1996 on the legal protection of databases, 138 | as amended and/or succeeded, as well as other essentially 139 | equivalent rights anywhere in the world. 140 | 141 | m. You means the individual or entity exercising the Licensed Rights 142 | under this Public License. Your has a corresponding meaning. 143 | 144 | 145 | Section 2 -- Scope. 146 | 147 | a. License grant. 148 | 149 | 1. Subject to the terms and conditions of this Public License, 150 | the Licensor hereby grants You a worldwide, royalty-free, 151 | non-sublicensable, non-exclusive, irrevocable license to 152 | exercise the Licensed Rights in the Licensed Material to: 153 | 154 | a. reproduce and Share the Licensed Material, in whole or 155 | in part; and 156 | 157 | b. produce, reproduce, and Share Adapted Material. 158 | 159 | 2. Exceptions and Limitations. For the avoidance of doubt, where 160 | Exceptions and Limitations apply to Your use, this Public 161 | License does not apply, and You do not need to comply with 162 | its terms and conditions. 163 | 164 | 3. Term. The term of this Public License is specified in Section 165 | 6(a). 166 | 167 | 4. Media and formats; technical modifications allowed. The 168 | Licensor authorizes You to exercise the Licensed Rights in 169 | all media and formats whether now known or hereafter created, 170 | and to make technical modifications necessary to do so. The 171 | Licensor waives and/or agrees not to assert any right or 172 | authority to forbid You from making technical modifications 173 | necessary to exercise the Licensed Rights, including 174 | technical modifications necessary to circumvent Effective 175 | Technological Measures. For purposes of this Public License, 176 | simply making modifications authorized by this Section 2(a) 177 | (4) never produces Adapted Material. 178 | 179 | 5. Downstream recipients. 180 | 181 | a. Offer from the Licensor -- Licensed Material. Every 182 | recipient of the Licensed Material automatically 183 | receives an offer from the Licensor to exercise the 184 | Licensed Rights under the terms and conditions of this 185 | Public License. 186 | 187 | b. Additional offer from the Licensor -- Adapted Material. 188 | Every recipient of Adapted Material from You 189 | automatically receives an offer from the Licensor to 190 | exercise the Licensed Rights in the Adapted Material 191 | under the conditions of the Adapter's License You apply. 192 | 193 | c. No downstream restrictions. You may not offer or impose 194 | any additional or different terms or conditions on, or 195 | apply any Effective Technological Measures to, the 196 | Licensed Material if doing so restricts exercise of the 197 | Licensed Rights by any recipient of the Licensed 198 | Material. 199 | 200 | 6. No endorsement. Nothing in this Public License constitutes or 201 | may be construed as permission to assert or imply that You 202 | are, or that Your use of the Licensed Material is, connected 203 | with, or sponsored, endorsed, or granted official status by, 204 | the Licensor or others designated to receive attribution as 205 | provided in Section 3(a)(1)(A)(i). 206 | 207 | b. Other rights. 208 | 209 | 1. Moral rights, such as the right of integrity, are not 210 | licensed under this Public License, nor are publicity, 211 | privacy, and/or other similar personality rights; however, to 212 | the extent possible, the Licensor waives and/or agrees not to 213 | assert any such rights held by the Licensor to the limited 214 | extent necessary to allow You to exercise the Licensed 215 | Rights, but not otherwise. 216 | 217 | 2. Patent and trademark rights are not licensed under this 218 | Public License. 219 | 220 | 3. To the extent possible, the Licensor waives any right to 221 | collect royalties from You for the exercise of the Licensed 222 | Rights, whether directly or through a collecting society 223 | under any voluntary or waivable statutory or compulsory 224 | licensing scheme. In all other cases the Licensor expressly 225 | reserves any right to collect such royalties. 226 | 227 | 228 | Section 3 -- License Conditions. 229 | 230 | Your exercise of the Licensed Rights is expressly made subject to the 231 | following conditions. 232 | 233 | a. Attribution. 234 | 235 | 1. If You Share the Licensed Material (including in modified 236 | form), You must: 237 | 238 | a. retain the following if it is supplied by the Licensor 239 | with the Licensed Material: 240 | 241 | i. identification of the creator(s) of the Licensed 242 | Material and any others designated to receive 243 | attribution, in any reasonable manner requested by 244 | the Licensor (including by pseudonym if 245 | designated); 246 | 247 | ii. a copyright notice; 248 | 249 | iii. a notice that refers to this Public License; 250 | 251 | iv. a notice that refers to the disclaimer of 252 | warranties; 253 | 254 | v. a URI or hyperlink to the Licensed Material to the 255 | extent reasonably practicable; 256 | 257 | b. indicate if You modified the Licensed Material and 258 | retain an indication of any previous modifications; and 259 | 260 | c. indicate the Licensed Material is licensed under this 261 | Public License, and include the text of, or the URI or 262 | hyperlink to, this Public License. 263 | 264 | 2. You may satisfy the conditions in Section 3(a)(1) in any 265 | reasonable manner based on the medium, means, and context in 266 | which You Share the Licensed Material. For example, it may be 267 | reasonable to satisfy the conditions by providing a URI or 268 | hyperlink to a resource that includes the required 269 | information. 270 | 271 | 3. If requested by the Licensor, You must remove any of the 272 | information required by Section 3(a)(1)(A) to the extent 273 | reasonably practicable. 274 | 275 | b. ShareAlike. 276 | 277 | In addition to the conditions in Section 3(a), if You Share 278 | Adapted Material You produce, the following conditions also apply. 279 | 280 | 1. The Adapter's License You apply must be a Creative Commons 281 | license with the same License Elements, this version or 282 | later, or a BY-SA Compatible License. 283 | 284 | 2. You must include the text of, or the URI or hyperlink to, the 285 | Adapter's License You apply. You may satisfy this condition 286 | in any reasonable manner based on the medium, means, and 287 | context in which You Share Adapted Material. 288 | 289 | 3. You may not offer or impose any additional or different terms 290 | or conditions on, or apply any Effective Technological 291 | Measures to, Adapted Material that restrict exercise of the 292 | rights granted under the Adapter's License You apply. 293 | 294 | 295 | Section 4 -- Sui Generis Database Rights. 296 | 297 | Where the Licensed Rights include Sui Generis Database Rights that 298 | apply to Your use of the Licensed Material: 299 | 300 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right 301 | to extract, reuse, reproduce, and Share all or a substantial 302 | portion of the contents of the database; 303 | 304 | b. if You include all or a substantial portion of the database 305 | contents in a database in which You have Sui Generis Database 306 | Rights, then the database in which You have Sui Generis Database 307 | Rights (but not its individual contents) is Adapted Material, 308 | 309 | including for purposes of Section 3(b); and 310 | c. You must comply with the conditions in Section 3(a) if You Share 311 | all or a substantial portion of the contents of the database. 312 | 313 | For the avoidance of doubt, this Section 4 supplements and does not 314 | replace Your obligations under this Public License where the Licensed 315 | Rights include other Copyright and Similar Rights. 316 | 317 | 318 | Section 5 -- Disclaimer of Warranties and Limitation of Liability. 319 | 320 | a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE 321 | EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS 322 | AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF 323 | ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, 324 | IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, 325 | WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR 326 | PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, 327 | ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT 328 | KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT 329 | ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. 330 | 331 | b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE 332 | TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, 333 | NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, 334 | INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, 335 | COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR 336 | USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN 337 | ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR 338 | DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR 339 | IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. 340 | 341 | c. The disclaimer of warranties and limitation of liability provided 342 | above shall be interpreted in a manner that, to the extent 343 | possible, most closely approximates an absolute disclaimer and 344 | waiver of all liability. 345 | 346 | 347 | Section 6 -- Term and Termination. 348 | 349 | a. This Public License applies for the term of the Copyright and 350 | Similar Rights licensed here. However, if You fail to comply with 351 | this Public License, then Your rights under this Public License 352 | terminate automatically. 353 | 354 | b. Where Your right to use the Licensed Material has terminated under 355 | Section 6(a), it reinstates: 356 | 357 | 1. automatically as of the date the violation is cured, provided 358 | it is cured within 30 days of Your discovery of the 359 | violation; or 360 | 361 | 2. upon express reinstatement by the Licensor. 362 | 363 | For the avoidance of doubt, this Section 6(b) does not affect any 364 | right the Licensor may have to seek remedies for Your violations 365 | of this Public License. 366 | 367 | c. For the avoidance of doubt, the Licensor may also offer the 368 | Licensed Material under separate terms or conditions or stop 369 | distributing the Licensed Material at any time; however, doing so 370 | will not terminate this Public License. 371 | 372 | d. Sections 1, 5, 6, 7, and 8 survive termination of this Public 373 | License. 374 | 375 | 376 | Section 7 -- Other Terms and Conditions. 377 | 378 | a. The Licensor shall not be bound by any additional or different 379 | terms or conditions communicated by You unless expressly agreed. 380 | 381 | b. Any arrangements, understandings, or agreements regarding the 382 | Licensed Material not stated herein are separate from and 383 | independent of the terms and conditions of this Public License. 384 | 385 | 386 | Section 8 -- Interpretation. 387 | 388 | a. For the avoidance of doubt, this Public License does not, and 389 | shall not be interpreted to, reduce, limit, restrict, or impose 390 | conditions on any use of the Licensed Material that could lawfully 391 | be made without permission under this Public License. 392 | 393 | b. To the extent possible, if any provision of this Public License is 394 | deemed unenforceable, it shall be automatically reformed to the 395 | minimum extent necessary to make it enforceable. If the provision 396 | cannot be reformed, it shall be severed from this Public License 397 | without affecting the enforceability of the remaining terms and 398 | conditions. 399 | 400 | c. No term or condition of this Public License will be waived and no 401 | failure to comply consented to unless expressly agreed to by the 402 | Licensor. 403 | 404 | d. Nothing in this Public License constitutes or may be interpreted 405 | as a limitation upon, or waiver of, any privileges and immunities 406 | that apply to the Licensor or You, including from the legal 407 | processes of any jurisdiction or authority. 408 | 409 | 410 | ======================================================================= 411 | 412 | Creative Commons is not a party to its public licenses. 413 | Notwithstanding, Creative Commons may elect to apply one of its public 414 | licenses to material it publishes and in those instances will be 415 | considered the "Licensor." Except for the limited purpose of indicating 416 | that material is shared under a Creative Commons public license or as 417 | otherwise permitted by the Creative Commons policies published at 418 | creativecommons.org/policies, Creative Commons does not authorize the 419 | use of the trademark "Creative Commons" or any other trademark or logo 420 | of Creative Commons without its prior written consent including, 421 | without limitation, in connection with any unauthorized modifications 422 | to any of its public licenses or any other arrangements, 423 | understandings, or agreements concerning use of licensed material. For 424 | the avoidance of doubt, this paragraph does not form part of the public 425 | licenses. 426 | 427 | Creative Commons may be contacted at creativecommons.org. 428 | --------------------------------------------------------------------------------