licensee 5.0.0b7 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/licensee.rb +1 -1
  3. data/lib/licensee/license.rb +5 -3
  4. data/lib/licensee/matchers/git_matcher.rb +2 -1
  5. data/lib/licensee/matchers/levenshtein_matcher.rb +2 -1
  6. data/lib/licensee/project.rb +4 -2
  7. data/lib/licensee/project_file.rb +13 -8
  8. data/lib/licensee/version.rb +1 -1
  9. data/test/test_licensee.rb +1 -1
  10. data/test/test_licensee_levenshtein_matcher.rb +1 -1
  11. data/test/test_licensee_license.rb +2 -2
  12. data/test/test_licensee_project_file.rb +7 -6
  13. data/vendor/choosealicense.com/_licenses/agpl-3.0.txt +4 -4
  14. data/vendor/choosealicense.com/_licenses/apache-2.0.txt +3 -5
  15. data/vendor/choosealicense.com/_licenses/artistic-2.0.txt +2 -0
  16. data/vendor/choosealicense.com/_licenses/bsd-2-clause.txt +3 -4
  17. data/vendor/choosealicense.com/_licenses/bsd-3-clause-clear.txt +63 -0
  18. data/vendor/choosealicense.com/_licenses/bsd-3-clause.txt +2 -3
  19. data/vendor/choosealicense.com/_licenses/cc0-1.0.txt +3 -4
  20. data/vendor/choosealicense.com/_licenses/epl-1.0.txt +4 -4
  21. data/vendor/choosealicense.com/_licenses/gpl-2.0.txt +3 -5
  22. data/vendor/choosealicense.com/_licenses/gpl-3.0.txt +3 -2
  23. data/vendor/choosealicense.com/_licenses/isc.txt +2 -3
  24. data/vendor/choosealicense.com/_licenses/lgpl-2.1.txt +2 -3
  25. data/vendor/choosealicense.com/_licenses/lgpl-3.0.txt +3 -2
  26. data/vendor/choosealicense.com/_licenses/mit.txt +1 -1
  27. data/vendor/choosealicense.com/_licenses/mpl-2.0.txt +1 -0
  28. data/vendor/choosealicense.com/_licenses/ms-pl.txt +47 -0
  29. data/vendor/choosealicense.com/_licenses/ms-rl.txt +46 -0
  30. data/vendor/choosealicense.com/_licenses/no-license.txt +2 -2
  31. data/vendor/choosealicense.com/_licenses/ofl-1.1.txt +3 -4
  32. data/vendor/choosealicense.com/_licenses/osl-3.0.txt +3 -4
  33. data/vendor/choosealicense.com/_licenses/unlicense.txt +3 -3
  34. metadata +7 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63059879d191ca3bf975e0637e991fa9b9ed0421
4
- data.tar.gz: 00d43ef2f8dffdc51771150afec931baa3ce2e68
3
+ metadata.gz: 177e5c94bb43c3603d0581bfaed3f873ab17c94e
4
+ data.tar.gz: a9218af2d2922cccbddf269df1bd35d710198c79
5
5
  SHA512:
6
- metadata.gz: d090f96f08bde997282923240d05886983ad4e4681da26a3549ebbcf06ff364174231b439b1a68d47c1ab2a9754170a1966de56d4cb7266f23d81d12a52f8822
7
- data.tar.gz: 2e6ffcbda4dd0a3f5f97c79a660648d8e5a045029c85288bb0a7994f77914f3fd33d11de70a2ecb84e4d508575dd408748676619f611b4404809ab05e822c01c
6
+ metadata.gz: 6a001f3ec27daba23c2c0a3d5902fd7f926861d3a5071aa4756591cb313884c77f6c022851f94fd440c1bd894ee45c3f6596b5835a062bf2926e1ff6abd99fd1
7
+ data.tar.gz: bab94b9c213be6caed4ab179cbe7b4b64bd928482a219ab98b63a24c0700a0190998e71dbfc747af597d9b2671863c0bdf4ab359903686be9200610ef7756323
@@ -60,7 +60,7 @@ class Licensee
60
60
  end
61
61
 
62
62
  def package_manager_files?
63
- @package_manager_files ||= false
63
+ @package_manager_files || false
64
64
  end
65
65
  end
66
66
  end
@@ -46,7 +46,7 @@ class Licensee
46
46
  include Licensee::ContentHelper
47
47
 
48
48
  def initialize(key)
49
- @key=key.downcase
49
+ @key = key.downcase
50
50
  end
51
51
 
52
52
  # Path to vendored license file on disk
@@ -134,12 +134,14 @@ class Licensee
134
134
 
135
135
  def body_includes_name?
136
136
  return false if BODY_INCLUDES_WHITELIST.include?(key)
137
- @body_includes_name ||= body_normalized.include?(name_without_version.downcase)
137
+ return @body_includes_name if defined? @body_includes_name
138
+ @body_includes_name = body_normalized.include?(name_without_version.downcase)
138
139
  end
139
140
 
140
141
  def body_includes_nickname?
141
142
  return false if BODY_INCLUDES_WHITELIST.include?(key)
142
- @body_includes_nickname ||= !!(nickname && body_normalized.include?(nickname.downcase))
143
+ return @body_includes_nickname if defined? @body_includes_nickname
144
+ @body_includes_nickname = !!(nickname && body_normalized.include?(nickname.downcase))
143
145
  end
144
146
 
145
147
  private
@@ -17,7 +17,8 @@ class Licensee
17
17
 
18
18
  # Pulled out for easier testing
19
19
  def match_info
20
- @match_info ||= begin
20
+ return @match_info if defined? @match_info
21
+ @match_info = begin
21
22
  match = matches.max_by { |license, similarity| similarity }
22
23
  match if match
23
24
  end
@@ -3,7 +3,8 @@ class Licensee
3
3
 
4
4
  # Return the first potential license that is more similar than the confidence threshold
5
5
  def match
6
- @match ||= potential_licenses.find do |license|
6
+ return @match if defined? @match
7
+ @match = potential_licenses.find do |license|
7
8
 
8
9
  # If we know the license text contains the license name or nickname,
9
10
  # bail early unless the file we're checking contains it.
@@ -27,12 +27,14 @@ class Licensee
27
27
  end
28
28
 
29
29
  def license_file
30
- @license_file ||= files.select { |f| f.license? }.sort_by { |f| f.license_score }.last
30
+ return @license_file if defined? @license_file
31
+ @license_file = files.select { |f| f.license? }.sort_by { |f| f.license_score }.last
31
32
  end
32
33
 
33
34
  def package_file
34
35
  return unless Licensee.package_manager_files?
35
- @package_file ||= files.select { |f| f.package? }.sort_by { |f| f.package_score }.last
36
+ return @package_file if defined? @package_file
37
+ @package_file = files.select { |f| f.package? }.sort_by { |f| f.package_score }.last
36
38
  end
37
39
 
38
40
  def matched_file
@@ -28,7 +28,8 @@ class Licensee
28
28
 
29
29
  # Determines which matching strategy to use, returns an instane of that matcher
30
30
  def matcher
31
- @matcher ||= Licensee.matchers.map { |m| m.new(self) }.find { |m| m.match }
31
+ return @matcher if defined? @matcher
32
+ @matcher = Licensee.matchers.map { |m| m.new(self) }.find { |m| m.match }
32
33
  end
33
34
 
34
35
  # Returns an Licensee::License instance of the matches license
@@ -78,14 +79,18 @@ class Licensee
78
79
  #
79
80
  # filename - (string) the name of the file to score
80
81
  #
81
- # Returns 1.0 if the file is definitely a license file
82
- # Returns 0.75 if the file is probably a license file
83
- # Returns 0.5 if the file is likely a license file
84
- # Returns 0.0 if the file is definitely not a license file
82
+ # Returns 1.0 if the file is definitely a license file (e.g, LICENSE)
83
+ # Returns 0.9 if the file is almost certainly a license file (e.g., LICENSE.md)
84
+ # Returns 0.8 if the file is probably a license file (e.g., COPYING, COPYING.md)
85
+ # Returns 0.7 if the file is potentially a license file (e.g., LICENSE.php)
86
+ # Returns 0.5 if the file is likely a license file (MIT-LICENSE)
87
+ # Returns 0.0 if the file is definitely not a license file (e.g., index.php)
85
88
  def license_score(filename)
86
- return 1.0 if filename =~ /\A(un)?licen[sc]e(\.[^.]+)?\z/i
87
- return 0.75 if filename =~ /\Acopy(ing|right)(\.[^.]+)?\z/i
88
- return 0.5 if filename =~ /licen[sc]e/i
89
+ return 1.0 if filename =~ /\A(un)?licen[sc]e\z/i
90
+ return 0.9 if filename =~ /\A(un)?licen[sc]e\.(md|markdown|txt)\z/i
91
+ return 0.8 if filename =~ /\Acopy(ing|right)(\.[^.]+)?\z/i
92
+ return 0.7 if filename =~ /\A(un)?licen[sc]e\.[^.]+\z/i
93
+ return 0.5 if filename =~ /licen[sc]e/i
89
94
  return 0.0
90
95
  end
91
96
  end
@@ -1,3 +1,3 @@
1
1
  class Licensee
2
- VERSION = "5.0.0b7"
2
+ VERSION = "5.0.0"
3
3
  end
@@ -4,7 +4,7 @@ class TestLicensee < Minitest::Test
4
4
  should "know the licenses" do
5
5
  assert_equal Array, Licensee.licenses.class
6
6
  assert_equal 15, Licensee.licenses.size
7
- assert_equal 20, Licensee.licenses(:hidden => true).size
7
+ assert_equal 23, Licensee.licenses(:hidden => true).size
8
8
  assert_equal Licensee::License, Licensee.licenses.first.class
9
9
  end
10
10
 
@@ -28,7 +28,7 @@ class TestLicenseeLevenshteinMatcher < Minitest::Test
28
28
  end
29
29
 
30
30
  should "round up potential licenses" do
31
- assert_equal 6, Licensee::LevenshteinMatcher.new(@mit).potential_licenses.size
31
+ assert_equal 7, Licensee::LevenshteinMatcher.new(@mit).potential_licenses.size
32
32
  end
33
33
 
34
34
  end
@@ -132,13 +132,13 @@ class TestLicenseeLicense < Minitest::Test
132
132
  describe "class methods" do
133
133
  should "know license names" do
134
134
  assert_equal Array, Licensee::License.keys.class
135
- assert_equal 20, Licensee::License.keys.size
135
+ assert_equal 23, Licensee::License.keys.size
136
136
  end
137
137
 
138
138
  should "load the licenses" do
139
139
  assert_equal Array, Licensee::License.all.class
140
140
  assert_equal 15, Licensee::License.all.size
141
- assert_equal 20, Licensee::License.all(:hidden => true).size
141
+ assert_equal 23, Licensee::License.all(:hidden => true).size
142
142
  assert_equal Licensee::License, Licensee::License.all.first.class
143
143
  end
144
144
 
@@ -35,14 +35,15 @@ class TestLicenseeProjectFile < Minitest::Test
35
35
  EXPECTATIONS = {
36
36
  "license" => 1.0,
37
37
  "LICENCE" => 1.0,
38
- "license.md" => 1.0,
39
- "LICENSE.md" => 1.0,
40
- "license.txt" => 1.0,
41
38
  "unLICENSE" => 1.0,
42
39
  "unlicence" => 1.0,
43
- "COPYING" => 0.75,
44
- "copyRIGHT" => 0.75,
45
- "COPYRIGHT.txt" => 0.75,
40
+ "license.md" => 0.9,
41
+ "LICENSE.md" => 0.9,
42
+ "license.txt" => 0.9,
43
+ "COPYING" => 0.8,
44
+ "copyRIGHT" => 0.8,
45
+ "COPYRIGHT.txt" => 0.8,
46
+ "LICENSE.php" => 0.7,
46
47
  "LICENSE-MIT" => 0.5,
47
48
  "MIT-LICENSE.txt" => 0.5,
48
49
  "mit-license-foo.md" => 0.5,
@@ -1,18 +1,18 @@
1
1
  ---
2
2
  title: GNU Affero General Public License v3.0
3
3
  nickname: GNU Affero GPL v3.0
4
- category: GPL
5
4
  tab-slug: agpl-v3
5
+ redirect_from: /licenses/agpl/
6
+ category: GPL
6
7
  variant: true
7
8
  source: http://www.gnu.org/licenses/agpl-3.0.txt
8
- redirect_from: /licenses/agpl/
9
9
 
10
10
  description: "The GPL family of licenses 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. The AGPL family of licenses is distinguished from GPLv2 and GPLv3 in that hosted services using the code are considered distribution and trigger the copyleft requirements."
11
11
 
12
- note: The Free Software Foundation recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the end of the license.
13
-
14
12
  how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file.
15
13
 
14
+ note: The Free Software Foundation recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the end of the license.
15
+
16
16
  required:
17
17
  - include-copyright
18
18
  - document-changes
@@ -1,16 +1,15 @@
1
1
  ---
2
2
  title: Apache License 2.0
3
+ nickname: Apache
3
4
  redirect_from: /licenses/apache/
4
5
  featured: true
5
- nickname: Apache
6
+ source: http://www.apache.org/licenses/LICENSE-2.0.html
6
7
 
7
8
  description: A permissive license that also provides an express grant of patent rights from contributors to users.
8
9
 
9
- note: The Apache Foundation recommends taking the additional step of adding a boilerplate notice to the header of each source file. You can find the notice at the very end of the license in the appendix.
10
-
11
10
  how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file.
12
11
 
13
- source: http://www.apache.org/licenses/LICENSE-2.0.html
12
+ note: The Apache Foundation recommends taking the additional step of adding a boilerplate notice to the header of each source file. You can find the notice at the very end of the license in the appendix.
14
13
 
15
14
  required:
16
15
  - include-copyright
@@ -22,7 +21,6 @@ permitted:
22
21
  - distribution
23
22
  - sublicense
24
23
  - patent-grant
25
-
26
24
  - private-use
27
25
 
28
26
  forbidden:
@@ -21,7 +21,9 @@ permitted:
21
21
  forbidden:
22
22
  - no-liability
23
23
  - trademark-use
24
+
24
25
  ---
26
+
25
27
  The Artistic License 2.0
26
28
 
27
29
  Copyright (c) [year] [fullname]
@@ -1,17 +1,16 @@
1
1
  ---
2
2
  title: BSD 2-clause "Simplified" License
3
3
  nickname: Simplified BSD
4
- category: BSD
5
4
  tab-slug: bsd
6
- variant: true
7
5
  redirect_from: /licenses/bsd/
6
+ category: BSD
7
+ variant: true
8
+ source: http://opensource.org/licenses/BSD-2-Clause
8
9
 
9
10
  description: A permissive license that comes in two variants, the <a href="/licenses/bsd">BSD 2-Clause</a> and <a href="/licenses/bsd-3-clause">BSD 3-Clause</a>. Both have very minute differences to the MIT license.
10
11
 
11
12
  how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
12
13
 
13
- source: http://opensource.org/licenses/BSD-2-Clause
14
-
15
14
  required:
16
15
  - include-copyright
17
16
 
@@ -0,0 +1,63 @@
1
+ ---
2
+ title: BSD 3-clause Clear License
3
+ nickname: Clear BSD
4
+ hidden: true
5
+
6
+ category: BSD
7
+ tab-slug: bsd-3-clear
8
+ variant: true
9
+
10
+ description: A permissive license that comes in two variants, the <a href="/licenses/bsd">BSD 2-Clause</a> and <a href="/licenses/bsd-3-clause">BSD 3-Clause</a>. Both have very minute differences to the MIT license. The three clause variant prohibits others from using the name of the project or its contributors to promote derivative works without written consent.
11
+
12
+ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. Replace [project] with the project organization, if any, that sponsors this work.
13
+
14
+ source: https://spdx.org/licenses/BSD-3-Clause-Clear.html
15
+
16
+ required:
17
+ - include-copyright
18
+
19
+ permitted:
20
+ - commercial-use
21
+ - modifications
22
+ - distribution
23
+ - sublicense
24
+ - private-use
25
+
26
+ forbidden:
27
+ - no-liability
28
+ - trademark-use
29
+
30
+ ---
31
+
32
+ The Clear BSD License
33
+
34
+ Copyright (c) [year], [fullname]
35
+ All rights reserved.
36
+
37
+ Redistribution and use in source and binary forms, with or without
38
+ modification, are permitted (subject to the limitations in the disclaimer
39
+ below) provided that the following conditions are met:
40
+
41
+ * Redistributions of source code must retain the above copyright notice, this
42
+ list of conditions and the following disclaimer.
43
+
44
+ * Redistributions in binary form must reproduce the above copyright notice,
45
+ this list of conditions and the following disclaimer in the documentation
46
+ and/or other materials provided with the distribution.
47
+
48
+ * Neither the name of [project] nor the names of its contributors may be used
49
+ to endorse or promote products derived from this software without specific
50
+ prior written permission.
51
+
52
+ NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS
53
+ LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
54
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
55
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
56
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
57
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
58
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
59
+ GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
60
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
61
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
62
+ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
63
+ DAMAGE.
@@ -1,16 +1,15 @@
1
1
  ---
2
2
  title: BSD 3-clause "New" or "Revised" License
3
3
  nickname: New BSD
4
- category: BSD
5
4
  tab-slug: bsd-3
5
+ category: BSD
6
6
  variant: true
7
+ source: http://opensource.org/licenses/BSD-3-Clause
7
8
 
8
9
  description: A permissive license that comes in two variants, the <a href="/licenses/bsd">BSD 2-Clause</a> and <a href="/licenses/bsd-3-clause">BSD 3-Clause</a>. Both have very minute differences to the MIT license. The three clause variant prohibits others from using the name of the project or its contributors to promote derivative works without written consent.
9
10
 
10
11
  how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. Replace [project] with the project organization, if any, that sponsors this work.
11
12
 
12
- source: http://opensource.org/licenses/BSD-3-Clause
13
-
14
13
  required:
15
14
  - include-copyright
16
15
 
@@ -1,12 +1,10 @@
1
1
  ---
2
2
  title: Creative Commons Zero v1.0 Universal
3
3
  nickname: CC0 1.0 Universal
4
- redirect_from: /licenses/cc0/
5
-
6
4
  tab-slug: cc0
5
+ redirect_from: /licenses/cc0/
7
6
  category: Public Domain Dedication
8
7
  variant: true
9
-
10
8
  source: http://creativecommons.org/publicdomain/zero/1.0/
11
9
 
12
10
  description: The <a href="http://creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC0 Public Domain Dedication</a> waives copyright interest in any a work you've created and dedicates it to the world-wide public domain. Use CC0 to opt out of copyright entirely and ensure your work has the widest reach. As with the Unlicense and typical software licenses, CC0 disclaims warranties. CC0 is very similar to the Unlicense.
@@ -20,13 +18,14 @@ permitted:
20
18
  - modifications
21
19
  - distribution
22
20
  - private-use
23
-
21
+
24
22
  forbidden:
25
23
  - no-liability
26
24
 
27
25
  required: []
28
26
 
29
27
  ---
28
+
30
29
  CC0 1.0 Universal
31
30
 
32
31
  Statement of Purpose
@@ -1,9 +1,12 @@
1
1
  ---
2
2
  title: Eclipse Public License 1.0
3
3
  redirect_from: /licenses/eclipse/
4
+ source: http://www.eclipse.org/legal/epl-v10.html
4
5
 
5
6
  description: 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.
6
7
 
8
+ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file.
9
+
7
10
  using:
8
11
  The Eclipse Foundation: "http://www.eclipse.org"
9
12
  OpenDaylight: "http://www.opendaylight.org/"
@@ -12,10 +15,6 @@ using:
12
15
  Ruby: "https://github.com/jruby/jruby"
13
16
  Mondrian: "http://en.wikipedia.org/wiki/Mondrian_OLAP_server"
14
17
 
15
- how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file.
16
-
17
- source: http://www.eclipse.org/legal/epl-v10.html
18
-
19
18
  required:
20
19
  - disclose-source
21
20
  - include-copyright
@@ -32,6 +31,7 @@ forbidden:
32
31
  - no-liability
33
32
 
34
33
  ---
34
+
35
35
  Eclipse Public License - v 1.0
36
36
 
37
37
  THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
@@ -1,16 +1,14 @@
1
1
  ---
2
2
  title: GNU General Public License v2.0
3
3
  nickname: GNU GPL v2.0
4
+ tab-slug: gpl-v2
4
5
  redirect_from: /licenses/gpl-v2/
5
- source: http://www.gnu.org/licenses/gpl-2.0.txt
6
-
7
6
  category: GPL
8
- tab-slug: gpl-v2
7
+ featured: true
8
+ source: http://www.gnu.org/licenses/gpl-2.0.txt
9
9
 
10
10
  description: 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.
11
11
 
12
- featured: true
13
-
14
12
  how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file.
15
13
 
16
14
  note: The Free Software Foundation recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the end of the license.
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  title: GNU General Public License v3.0
3
3
  nickname: GNU GPL v3.0
4
- category: GPL
5
4
  tab-slug: gpl-v3
6
- variant: true
7
5
  redirect_from: /licenses/gpl-v3/
6
+ category: GPL
7
+ variant: true
8
8
  source: http://www.gnu.org/licenses/gpl-3.0.txt
9
9
 
10
10
  description: 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.
@@ -30,6 +30,7 @@ forbidden:
30
30
  - no-sublicense
31
31
 
32
32
  ---
33
+
33
34
  GNU GENERAL PUBLIC LICENSE
34
35
  Version 3, 29 June 2007
35
36
 
@@ -1,9 +1,8 @@
1
1
  ---
2
2
  title: ISC License
3
- source: http://opensource.org/licenses/isc-license
4
-
5
- category: BSD
6
3
  tab-slug: isc
4
+ category: BSD
5
+ source: http://opensource.org/licenses/isc-license
7
6
 
8
7
  description: A permissive license lets people do anything with your code with proper attribution and without warranty. The ISC license is functionally equivalent to the <a href="/licenses/bsd">BSD 2-Clause</a> and <a href="/licenses/mit">MIT</a> licenses, removing some language that is no longer necessary.
9
8
 
@@ -1,11 +1,10 @@
1
1
  ---
2
2
  title: GNU Lesser General Public License v2.1
3
3
  nickname: GNU LGPL v2.1
4
+ tab-slug: lgpl-v2_1
4
5
  redirect_from: /licenses/lgpl-v2.1/
5
- source: http://www.gnu.org/licenses/lgpl-2.1.txt
6
-
7
6
  category: LGPL
8
- tab-slug: lgpl-v2_1
7
+ source: http://www.gnu.org/licenses/lgpl-2.1.txt
9
8
 
10
9
  description: 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.
11
10
 
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  title: GNU Lesser General Public License v3.0
3
3
  nickname: GNU LGPL v3.0
4
- category: LGPL
5
4
  tab-slug: lgpl-v3
6
- variant: true
7
5
  redirect_from: /licenses/lgpl-v3/
6
+ category: LGPL
7
+ variant: true
8
8
  source: http://www.gnu.org/licenses/lgpl-3.0.txt
9
9
 
10
10
  description: Version 3 of the LGPL is an additional set of permissions to the <a href="/licenses/GPL-3.0">GPL v3 license</a> that requires that derived works be licensed under the same license, but works that only link to it do not fall under this restriction.
@@ -30,6 +30,7 @@ forbidden:
30
30
  - no-liability
31
31
 
32
32
  ---
33
+
33
34
  GNU LESSER GENERAL PUBLIC LICENSE
34
35
  Version 3, 29 June 2007
35
36
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: MIT License
3
- source: http://opensource.org/licenses/MIT
4
3
  featured: true
4
+ source: http://opensource.org/licenses/MIT
5
5
 
6
6
  description: A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty.
7
7
 
@@ -24,6 +24,7 @@ forbidden:
24
24
  - trademark-use
25
25
 
26
26
  ---
27
+
27
28
  Mozilla Public License, version 2.0
28
29
 
29
30
  1. Definitions
@@ -0,0 +1,47 @@
1
+ ---
2
+ title: Microsoft Public License
3
+ hidden: true
4
+
5
+ source: http://opensource.org/licenses/ms-pl
6
+
7
+ description: "Microsoft Open Source"
8
+
9
+ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file.
10
+
11
+ required:
12
+ - include-copyright
13
+
14
+ permitted:
15
+ - commercial-use
16
+ - modifications
17
+ - distribution
18
+ - patent-grant
19
+ - private-use
20
+
21
+ forbidden:
22
+ - no-liability
23
+ - trademark-use
24
+ ---
25
+
26
+ Microsoft Public License (MS-PL)
27
+
28
+ This license governs use of the accompanying software. If you use the software, you
29
+ accept this license. If you do not accept the license, do not use the software.
30
+
31
+ 1. Definitions
32
+ The terms "reproduce," "reproduction," "derivative works," and "distribution" have the
33
+ same meaning here as under U.S. copyright law.
34
+ A "contribution" is the original software, or any additions or changes to the software.
35
+ A "contributor" is any person that distributes its contribution under this license.
36
+ "Licensed patents" are a contributor's patent claims that read directly on its contribution.
37
+
38
+ 2. Grant of Rights
39
+ (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
40
+ (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
41
+
42
+ 3. Conditions and Limitations
43
+ (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
44
+ (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
45
+ (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
46
+ (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
47
+ (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Microsoft Reciprocal License
3
+ hidden: true
4
+
5
+ source: http://opensource.org/licenses/ms-pl
6
+
7
+ description: "Microsoft Open Source"
8
+
9
+ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file.
10
+
11
+ required:
12
+ - include-copyright
13
+
14
+ permitted:
15
+ - commercial-use
16
+ - modifications
17
+ - distribution
18
+ - patent-grant
19
+ - private-use
20
+
21
+ forbidden:
22
+ - no-liability
23
+ - trademark-use
24
+ ---
25
+
26
+ Microsoft Reciprocal License (MS-RL)
27
+
28
+ This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.
29
+
30
+ 1. Definitions
31
+ The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law.
32
+ A "contribution" is the original software, or any additions or changes to the software.
33
+ A "contributor" is any person that distributes its contribution under this license.
34
+ "Licensed patents" are a contributor's patent claims that read directly on its contribution.
35
+
36
+ 2. Grant of Rights
37
+ (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
38
+ (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
39
+
40
+ 3. Conditions and Limitations
41
+ (A) Reciprocal Grants- For any file you distribute that contains code from the software (in source code or binary format), you must provide recipients the source code to that file along with a copy of this license, which license will govern that file. You may license other files that are entirely your own work and do not contain code from the software under any terms you choose.
42
+ (B) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
43
+ (C) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
44
+ (D) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
45
+ (E) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
46
+ (F) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
@@ -4,10 +4,10 @@ source: "http://choosealicense.com/no-license/"
4
4
 
5
5
  description: 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.
6
6
 
7
- note: This option may be subject to the Terms Of Use of the site where you publish your source code.
8
-
9
7
  how: Simply do nothing, though including a copyright notice is recommended.
10
8
 
9
+ note: This option may be subject to the Terms Of Use of the site where you publish your source code.
10
+
11
11
  required:
12
12
  - include-copyright
13
13
 
@@ -1,16 +1,15 @@
1
1
  ---
2
2
  title: SIL Open Font License 1.1
3
- hidden: true
4
3
  redirect_from: /licenses/ofl/
5
-
4
+ hidden: true
6
5
  source: http://scripts.sil.org/OFL_web
7
6
 
8
7
  description: The Open Font License (OFL) is maintained by SIL International. It attempts to be a compromise between the values of the free software and typeface design communities. It is used for almost all open source font projects, including those by Adobe, Google and Mozilla.
9
8
 
10
- note: This license doesn't require source provision, but recommends it. All files derived from OFL files must remain licensed under the OFL.
11
-
12
9
  how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your font source and copy the text of the license into the file. Replace [year] with the current year and [fullname] ([email]) with the name and contact email address of each copyright holder. You may take the additional step of appending a Reserved Font Name notice. This option requires anyone making modifications to change the font's name, and is not ideal for web fonts (which all users will modify by changing formats and subsetting for their own needs.)
13
10
 
11
+ note: This license doesn't require source provision, but recommends it. All files derived from OFL files must remain licensed under the OFL.
12
+
14
13
  required:
15
14
  - include-copyright
16
15
 
@@ -1,9 +1,12 @@
1
1
  ---
2
2
  title: Open Software License 3.0
3
3
  hidden: true
4
+ source: http://opensource.org/licenses/OSL-3.0
4
5
 
5
6
  description: OSL 3.0 is a copyleft license that does not require reciprocal licensing on linked works. It also provides an express grant of patent rights from contributors to users, with a termination clause triggered if a user files a patent infringement lawsuit.
6
7
 
8
+ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Files licensed under OSL 3.0 must also include the notice "Licensed under the Open Software License version 3.0" adjacent to the copyright notice.
9
+
7
10
  note: OSL 3.0's author has <a href="http://rosenlaw.com/OSL3.0-explained.htm">provided an explanation</a> behind the creation of the license.
8
11
 
9
12
  using:
@@ -13,10 +16,6 @@ using:
13
16
  Mulgara: "http://mulgara.org"
14
17
  AbanteCart: "http://www.abantecart.com/"
15
18
 
16
- how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Files licensed under OSL 3.0 must also include the notice "Licensed under the Open Software License version 3.0" adjacent to the copyright notice.
17
-
18
- source: http://opensource.org/licenses/OSL-3.0
19
-
20
19
  required:
21
20
  - include-copyright
22
21
  - disclose-source
@@ -1,9 +1,8 @@
1
1
  ---
2
2
  title: The Unlicense
3
- source: http://unlicense.org/UNLICENSE
4
-
5
- category: Public Domain Dedication
6
3
  tab-slug: unlicense
4
+ category: Public Domain Dedication
5
+ source: http://unlicense.org/UNLICENSE
7
6
 
8
7
  description: Because copyright is automatic in most countries, <a href="http://unlicense.org">the Unlicense</a> 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.
9
8
 
@@ -24,6 +23,7 @@ forbidden:
24
23
  required: []
25
24
 
26
25
  ---
26
+
27
27
  This is free and unencumbered software released into the public domain.
28
28
 
29
29
  Anyone is free to copy, modify, publish, use, compile, sell, or
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: licensee
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0b7
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-03 00:00:00.000000000 Z
11
+ date: 2015-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged
@@ -196,6 +196,7 @@ files:
196
196
  - vendor/choosealicense.com/_licenses/apache-2.0.txt
197
197
  - vendor/choosealicense.com/_licenses/artistic-2.0.txt
198
198
  - vendor/choosealicense.com/_licenses/bsd-2-clause.txt
199
+ - vendor/choosealicense.com/_licenses/bsd-3-clause-clear.txt
199
200
  - vendor/choosealicense.com/_licenses/bsd-3-clause.txt
200
201
  - vendor/choosealicense.com/_licenses/cc0-1.0.txt
201
202
  - vendor/choosealicense.com/_licenses/epl-1.0.txt
@@ -206,6 +207,8 @@ files:
206
207
  - vendor/choosealicense.com/_licenses/lgpl-3.0.txt
207
208
  - vendor/choosealicense.com/_licenses/mit.txt
208
209
  - vendor/choosealicense.com/_licenses/mpl-2.0.txt
210
+ - vendor/choosealicense.com/_licenses/ms-pl.txt
211
+ - vendor/choosealicense.com/_licenses/ms-rl.txt
209
212
  - vendor/choosealicense.com/_licenses/no-license.txt
210
213
  - vendor/choosealicense.com/_licenses/ofl-1.1.txt
211
214
  - vendor/choosealicense.com/_licenses/osl-3.0.txt
@@ -226,9 +229,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
229
  version: '0'
227
230
  required_rubygems_version: !ruby/object:Gem::Requirement
228
231
  requirements:
229
- - - ">"
232
+ - - ">="
230
233
  - !ruby/object:Gem::Version
231
- version: 1.3.1
234
+ version: '0'
232
235
  requirements: []
233
236
  rubyforge_project:
234
237
  rubygems_version: 2.4.8