licensee 4.7.4 → 4.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +0 -1
  3. data/lib/licensee.rb +7 -1
  4. data/lib/licensee/license.rb +10 -3
  5. data/lib/licensee/matchers/git_matcher.rb +1 -1
  6. data/lib/licensee/matchers/levenshtein_matcher.rb +2 -2
  7. data/lib/licensee/version.rb +1 -1
  8. data/test/functions.rb +3 -3
  9. data/test/test_licensee.rb +11 -1
  10. data/test/test_licensee_levenshtein_matcher.rb +1 -1
  11. data/test/test_licensee_license.rb +21 -1
  12. data/test/test_licensee_licenses.rb +2 -2
  13. data/vendor/choosealicense.com/_licenses/agpl-3.0.txt +1 -3
  14. data/vendor/choosealicense.com/_licenses/apache-2.0.txt +2 -5
  15. data/vendor/choosealicense.com/_licenses/artistic-2.0.txt +0 -3
  16. data/vendor/choosealicense.com/_licenses/bsd-2-clause.txt +1 -3
  17. data/vendor/choosealicense.com/_licenses/bsd-3-clause.txt +1 -3
  18. data/vendor/choosealicense.com/_licenses/cc0-1.0.txt +5 -7
  19. data/vendor/choosealicense.com/_licenses/epl-1.0.txt +0 -3
  20. data/vendor/choosealicense.com/_licenses/gpl-2.0.txt +3 -5
  21. data/vendor/choosealicense.com/_licenses/gpl-3.0.txt +1 -3
  22. data/vendor/choosealicense.com/_licenses/isc.txt +1 -4
  23. data/vendor/choosealicense.com/_licenses/lgpl-2.1.txt +3 -4
  24. data/vendor/choosealicense.com/_licenses/lgpl-3.0.txt +1 -3
  25. data/vendor/choosealicense.com/_licenses/mit.txt +0 -4
  26. data/vendor/choosealicense.com/_licenses/mpl-2.0.txt +0 -3
  27. data/vendor/choosealicense.com/_licenses/no-license.txt +2 -5
  28. data/vendor/choosealicense.com/_licenses/ofl-1.1.txt +120 -0
  29. data/vendor/choosealicense.com/_licenses/osl-3.0.txt +210 -0
  30. data/vendor/choosealicense.com/_licenses/unlicense.txt +2 -6
  31. data/vendor/choosealicense.com/_licenses/wtfpl.txt +35 -0
  32. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6984107519228dacb0ba976acc28b80f19376d53
4
- data.tar.gz: daf4206bff1812b8c8412606d976700ef960c430
3
+ metadata.gz: 99fc294a5629e4b14e3483f626ff01a6b3e4e369
4
+ data.tar.gz: 59d66b77d426fbb3e71d4794549ba7e09abc9977
5
5
  SHA512:
6
- metadata.gz: 5d37c183b0db5f226de8f9fee6e3d4c1026d0954481c1d70be0c21dfaffcdd4115afddc8b302dc340dd2b3754b64846273cd5cfa93bba7e213793a2f34a5f22f
7
- data.tar.gz: da180c291e673c7022e22387e18981499696d883ba0259e72ea588d16d7a91059b6831ed2de17cdf0cc0857ecf6bc4c1f0ab0cb100376f53fc0461ef806429a3
6
+ metadata.gz: a69d140676e75804094a8d8c57b8af01a22a2c47b1f890d0baf84ade654149be96e0bc7b043193a3a2655d2dab3c062f7b7c99b0ac254c434206779a7fb25c4d
7
+ data.tar.gz: 542c42872d3e944e62d9ba877881613606d09086830480907f7bcfe01c4cbb7373cec8f50acc895b6d9c8134a886e19ea8a80f392cfefa99bde883bb9d4d62d5
data/Rakefile CHANGED
@@ -4,7 +4,6 @@ require 'rake/testtask'
4
4
  Rake::TestTask.new(:test) do |test|
5
5
  test.libs << 'lib' << 'test'
6
6
  test.pattern = 'test/**/test_licensee*.rb'
7
- test.verbose = true
8
7
  end
9
8
 
10
9
  desc "Open console with Licensee loaded"
data/lib/licensee.rb CHANGED
@@ -17,7 +17,7 @@ require_relative "licensee/matchers/levenshtein_matcher"
17
17
 
18
18
  class Licensee
19
19
 
20
- # Over which percent is a match considered a match
20
+ # Over which percent is a match considered a match by default
21
21
  CONFIDENCE_THRESHOLD = 90
22
22
 
23
23
  # Base domain from which to build license URLs
@@ -25,6 +25,8 @@ class Licensee
25
25
 
26
26
  class << self
27
27
 
28
+ attr_writer :confidence_threshold
29
+
28
30
  # Returns an array of Licensee::License instances
29
31
  def licenses
30
32
  @licenses ||= Licensee::Licenses.list
@@ -45,5 +47,9 @@ class Licensee
45
47
  def matchers
46
48
  [Licensee::CopyrightMatcher, Licensee::ExactMatcher, Licensee::GitMatcher, Licensee::LevenshteinMatcher]
47
49
  end
50
+
51
+ def confidence_threshold
52
+ @confidence_threshold ||= CONFIDENCE_THRESHOLD
53
+ end
48
54
  end
49
55
  end
@@ -8,6 +8,12 @@ class Licensee
8
8
 
9
9
  attr_reader :key
10
10
 
11
+ YAML_DEFAULTS = {
12
+ "featured" => false,
13
+ "hidden" => false,
14
+ "variant" => false
15
+ }
16
+
11
17
  def initialize(key)
12
18
  @key=key.downcase
13
19
  end
@@ -32,10 +38,11 @@ class Licensee
32
38
  def meta
33
39
  @meta ||= if parts && parts[1]
34
40
  if YAML.respond_to? :safe_load
35
- YAML.safe_load(parts[1])
41
+ meta = YAML.safe_load(parts[1])
36
42
  else
37
- YAML.load(parts[1])
43
+ meta = YAML.load(parts[1])
38
44
  end
45
+ YAML_DEFAULTS.merge(meta)
39
46
  end
40
47
  end
41
48
 
@@ -74,7 +81,7 @@ class Licensee
74
81
  end
75
82
 
76
83
  def url
77
- URI.join(Licensee::DOMAIN, meta["permalink"]).to_s
84
+ URI.join(Licensee::DOMAIN, "/licenses/#{key}/").to_s
78
85
  end
79
86
 
80
87
  private
@@ -19,7 +19,7 @@ class Licensee
19
19
  def match_info
20
20
  @match_info ||= begin
21
21
  match = matches.max_by { |license, similarity| similarity }
22
- match if match && match[1] > Licensee::CONFIDENCE_THRESHOLD
22
+ match if match && match[1] > Licensee.confidence_threshold
23
23
  end
24
24
  end
25
25
  end
@@ -4,7 +4,7 @@ class Licensee
4
4
  # Return the first potential license that is more similar than the confidence threshold
5
5
  def match
6
6
  @match ||= potential_licenses.find do |license|
7
- similarity(license) >= Licensee::CONFIDENCE_THRESHOLD
7
+ similarity(license) >= Licensee.confidence_threshold
8
8
  end
9
9
  end
10
10
 
@@ -24,7 +24,7 @@ class Licensee
24
24
  # Maximum possible difference between file length and license length
25
25
  # for a license to be a potential license to be matched
26
26
  def max_delta
27
- @max_delta ||= (file_length * (Licensee::CONFIDENCE_THRESHOLD.to_f / 100.to_f ))
27
+ @max_delta ||= (file_length * (Licensee.confidence_threshold.to_f / 100.to_f ))
28
28
  end
29
29
 
30
30
  # Confidence that the matched license is a match
@@ -1,3 +1,3 @@
1
1
  class Licensee
2
- VERSION = "4.7.4"
2
+ VERSION = "4.8.0"
3
3
  end
data/test/functions.rb CHANGED
@@ -12,7 +12,7 @@ def fixture_path(fixture)
12
12
  end
13
13
 
14
14
  def license_from_path(path)
15
- license = File.open(path).read.split("---").last
15
+ license = File.open(path).read.match(/\A(---\n.*\n---\n+)?(.*)/m).to_a[2]
16
16
  license.sub! "[fullname]", "Ben Balter"
17
17
  license.sub! "[year]", "2014"
18
18
  license.sub! "[email]", "ben@github.invalid"
@@ -23,7 +23,7 @@ FakeBlob = Licensee::FilesystemRepository::Blob
23
23
 
24
24
  def chaos_monkey(string)
25
25
  Random.rand(5).times do
26
- string[Random.rand(string.length)] = SecureRandom.base64(Random.rand(10))
26
+ string[Random.rand(string.length)] = SecureRandom.base64(Random.rand(5))
27
27
  end
28
28
  string
29
29
  end
@@ -39,7 +39,7 @@ def verify_license_file(license, chaos = false, wrap=false)
39
39
  license_file = Licensee::LicenseFile.new(blob)
40
40
 
41
41
  actual = license_file.match
42
- assert actual, "No match for #{expected}."
42
+ assert actual, "No match for #{expected}. Here's the test text:\n#{text}"
43
43
  assert_equal expected, actual.key, "expeceted #{expected} but got #{actual.key} for .match. Confidence: #{license_file.confidence}. Method: #{license_file.matcher.class}"
44
44
  end
45
45
 
@@ -3,7 +3,7 @@ require 'helper'
3
3
  class TestLicensee < Minitest::Test
4
4
  should "know the licenses" do
5
5
  assert_equal Array, Licensee.licenses.class
6
- assert_equal 16, Licensee.licenses.size
6
+ assert_equal 19, Licensee.licenses.size
7
7
  assert_equal Licensee::License, Licensee.licenses.first.class
8
8
  end
9
9
 
@@ -14,4 +14,14 @@ class TestLicensee < Minitest::Test
14
14
  should "diff a license" do
15
15
  Licensee.diff(fixture_path("licenses.git"))
16
16
  end
17
+
18
+ should "return the confidence threshold" do
19
+ assert_equal 90, Licensee.confidence_threshold
20
+ end
21
+
22
+ should "let the user override the confidence threshold" do
23
+ Licensee.confidence_threshold = 50
24
+ assert_equal 50, Licensee.confidence_threshold
25
+ Licensee.confidence_threshold = 90
26
+ end
17
27
  end
@@ -28,7 +28,7 @@ class TestLicenseeLevenshteinMatcher < Minitest::Test
28
28
  end
29
29
 
30
30
  should "round up potential licenses" do
31
- assert_equal 5, Licensee::LevenshteinMatcher.new(@mit).potential_licenses.size
31
+ assert_equal 6, Licensee::LevenshteinMatcher.new(@mit).potential_licenses.size
32
32
  end
33
33
 
34
34
  end
@@ -8,7 +8,14 @@ class TestLicenseeLicense < Minitest::Test
8
8
 
9
9
  should "read the license body" do
10
10
  assert @license.body
11
- assert @license.text =~ /MIT/
11
+ assert @license.text =~ /MIT/, "Expected the following license body to contain MIT:\n#{@license.body}"
12
+ end
13
+
14
+ should "read the license body if it contains `---`" do
15
+ license = Licensee::License.new "MIT"
16
+ content = "---\nfoo: bar\n---\nSome license\n---------\nsome text\n"
17
+ license.instance_variable_set(:@content, content)
18
+ assert_equal "Some license\n---------\nsome text\n", license.body
12
19
  end
13
20
 
14
21
  should "read the license meta" do
@@ -34,6 +41,19 @@ class TestLicenseeLicense < Minitest::Test
34
41
  assert_equal FalseClass, Licensee::License.new("cc0-1.0").featured?.class
35
42
  end
36
43
 
44
+ should "inject default meta without overriding" do
45
+ license = Licensee::License.new("cc0-1.0")
46
+
47
+ assert license.meta.has_key? "featured"
48
+ assert_equal false, license.meta["featured"]
49
+
50
+ assert license.meta.has_key? "hidden"
51
+ assert_equal false, license.meta["hidden"]
52
+
53
+ assert license.meta.has_key? "variant"
54
+ assert_equal true, license.meta["variant"]
55
+ end
56
+
37
57
  should "parse the license parts" do
38
58
  assert_equal 3, @license.send(:parts).size
39
59
  end
@@ -4,12 +4,12 @@ class TestLicenseeLicenses < Minitest::Test
4
4
 
5
5
  should "know license names" do
6
6
  assert_equal Array, Licensee::Licenses.keys.class
7
- assert_equal 16, Licensee::Licenses.keys.size
7
+ assert_equal 19, Licensee::Licenses.keys.size
8
8
  end
9
9
 
10
10
  should "load the licenses" do
11
11
  assert_equal Array, Licensee::Licenses.list.class
12
- assert_equal 16, Licensee::Licenses.list.size
12
+ assert_equal 19, Licensee::Licenses.list.size
13
13
  assert_equal Licensee::License, Licensee::Licenses.list.first.class
14
14
  end
15
15
 
@@ -3,9 +3,7 @@ title: GNU Affero General Public License v3.0
3
3
  nickname: GNU Affero GPL v3.0
4
4
  category: GPL
5
5
  tab-slug: agpl-v3
6
- hide-from-license-list: true
7
- layout: license
8
- permalink: /licenses/agpl-3.0/
6
+ variant: true
9
7
  source: http://www.gnu.org/licenses/agpl-3.0.txt
10
8
  redirect_from: /licenses/agpl/
11
9
 
@@ -1,11 +1,8 @@
1
1
  ---
2
2
  title: Apache License 2.0
3
- category: Apache
4
- layout: license
5
- permalink: /licenses/apache-2.0/
6
3
  redirect_from: /licenses/apache/
7
-
8
4
  featured: true
5
+ nickname: Apache
9
6
 
10
7
  description: A permissive license that also provides an express grant of patent rights from contributors to users.
11
8
 
@@ -18,7 +15,7 @@ source: http://www.apache.org/licenses/LICENSE-2.0.html
18
15
  required:
19
16
  - include-copyright
20
17
  - document-changes
21
-
18
+
22
19
  permitted:
23
20
  - commercial-use
24
21
  - modifications
@@ -1,10 +1,7 @@
1
1
  ---
2
- layout: license
3
2
  title: Artistic License 2.0
4
- category: Artistic
5
3
  redirect_from: /licenses/artistic/
6
4
  source: http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt
7
- permalink: /licenses/artistic-2.0/
8
5
 
9
6
  description: 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.
10
7
 
@@ -1,12 +1,10 @@
1
1
  ---
2
- layout: license
3
2
  title: BSD 2-clause "Simplified" License
4
3
  nickname: Simplified BSD
5
4
  category: BSD
6
5
  tab-slug: bsd
7
- hide-from-license-list: true
6
+ variant: true
8
7
  redirect_from: /licenses/bsd/
9
- permalink: /licenses/bsd-2-clause/
10
8
 
11
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.
12
10
 
@@ -1,11 +1,9 @@
1
1
  ---
2
- layout: license
3
2
  title: BSD 3-clause "New" or "Revised" License
4
3
  nickname: New BSD
5
4
  category: BSD
6
5
  tab-slug: bsd-3
7
- hide-from-license-list: true
8
- permalink: /licenses/bsd-3-clause/
6
+ variant: true
9
7
 
10
8
  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
9
 
@@ -1,13 +1,11 @@
1
1
  ---
2
- layout: license
3
2
  title: Creative Commons Zero v1.0 Universal
4
3
  nickname: CC0 1.0 Universal
5
- category: Public Domain Dedication
4
+ redirect_from: /licenses/cc0/
5
+
6
6
  tab-slug: cc0
7
- permalink: /licenses/cc0/
8
- class: license-types
9
- hide-from-license-list: true
10
- filename: LICENSE
7
+ category: Public Domain Dedication
8
+ variant: true
11
9
 
12
10
  source: http://creativecommons.org/publicdomain/zero/1.0/
13
11
 
@@ -22,7 +20,7 @@ permitted:
22
20
  - modifications
23
21
  - distribution
24
22
  - private-use
25
-
23
+
26
24
  forbidden:
27
25
  - no-liability
28
26
 
@@ -1,9 +1,6 @@
1
1
  ---
2
- layout: license
3
2
  title: Eclipse Public License 1.0
4
- category: Eclipse
5
3
  redirect_from: /licenses/eclipse/
6
- permalink: /licenses/epl-1.0/
7
4
 
8
5
  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.
9
6
 
@@ -1,14 +1,12 @@
1
1
  ---
2
2
  title: GNU General Public License v2.0
3
3
  nickname: GNU GPL v2.0
4
- category: GPL
5
- tab-slug: gpl-v2
6
- hide-from-license-list: false
7
- layout: license
8
- permalink: /licenses/gpl-2.0/
9
4
  redirect_from: /licenses/gpl-v2/
10
5
  source: http://www.gnu.org/licenses/gpl-2.0.txt
11
6
 
7
+ category: GPL
8
+ tab-slug: gpl-v2
9
+
12
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.
13
11
 
14
12
  featured: true
@@ -3,9 +3,7 @@ title: GNU General Public License v3.0
3
3
  nickname: GNU GPL v3.0
4
4
  category: GPL
5
5
  tab-slug: gpl-v3
6
- hide-from-license-list: true
7
- layout: license
8
- permalink: /licenses/gpl-3.0/
6
+ variant: true
9
7
  redirect_from: /licenses/gpl-v3/
10
8
  source: http://www.gnu.org/licenses/gpl-3.0.txt
11
9
 
@@ -1,8 +1,7 @@
1
1
  ---
2
- layout: license
3
2
  title: ISC License
4
- permalink: /licenses/isc/
5
3
  source: http://opensource.org/licenses/isc-license
4
+
6
5
  category: BSD
7
6
  tab-slug: isc
8
7
 
@@ -10,8 +9,6 @@ description: A permissive license lets people do anything with your code with pr
10
9
 
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. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. [email] is optional but recommended.
12
11
 
13
- filename: LICENSE
14
-
15
12
  required:
16
13
  - include-copyright
17
14
 
@@ -1,13 +1,12 @@
1
1
  ---
2
- layout: license
3
2
  title: GNU Lesser General Public License v2.1
4
3
  nickname: GNU LGPL v2.1
5
- category: LGPL
6
- tab-slug: lgpl-v2_1
7
4
  redirect_from: /licenses/lgpl-v2.1/
8
- permalink: /licenses/lgpl-2.1/
9
5
  source: http://www.gnu.org/licenses/lgpl-2.1.txt
10
6
 
7
+ category: LGPL
8
+ tab-slug: lgpl-v2_1
9
+
11
10
  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.
12
11
 
13
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.
@@ -1,13 +1,11 @@
1
1
  ---
2
- layout: license
3
2
  title: GNU Lesser General Public License v3.0
4
3
  nickname: GNU LGPL v3.0
5
4
  category: LGPL
6
5
  tab-slug: lgpl-v3
7
- hide-from-license-list: true
6
+ variant: true
8
7
  redirect_from: /licenses/lgpl-v3/
9
8
  source: http://www.gnu.org/licenses/lgpl-3.0.txt
10
- permalink: /licenses/lgpl-3.0/
11
9
 
12
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.
13
11
 
@@ -1,10 +1,6 @@
1
1
  ---
2
- layout: license
3
2
  title: MIT License
4
- category: MIT
5
- permalink: /licenses/mit/
6
3
  source: http://opensource.org/licenses/MIT
7
-
8
4
  featured: true
9
5
 
10
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.
@@ -1,10 +1,7 @@
1
1
  ---
2
- layout: license
3
2
  title: Mozilla Public License 2.0
4
- category: Mozilla
5
3
  redirect_from: /licenses/mozilla/
6
4
  source: http://www.mozilla.org/MPL/2.0/
7
- permalink: /licenses/mpl-2.0/
8
5
 
9
6
  description: 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.
10
7
 
@@ -1,9 +1,6 @@
1
1
  ---
2
- layout: license
3
- permalink: /licenses/no-license/
4
- category: No License
5
- class: license-types
6
2
  title: No License
3
+ source: "http://choosealicense.com/no-license/"
7
4
 
8
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.
9
6
 
@@ -25,4 +22,4 @@ forbidden:
25
22
 
26
23
  ---
27
24
 
28
- Copyright [year] [fullname]
25
+ Copyright [year] [fullname]
@@ -0,0 +1,120 @@
1
+ ---
2
+ title: SIL Open Font License 1.1
3
+ hidden: true
4
+ redirect_from: /licenses/ofl/
5
+
6
+ source: http://scripts.sil.org/OFL_web
7
+
8
+ 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
+
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
+ 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
+
14
+ required:
15
+ - include-copyright
16
+
17
+ permitted:
18
+ - private-use
19
+ - commercial-use
20
+ - modifications
21
+ - distribution
22
+
23
+ forbidden:
24
+ - no-liability
25
+ - trademark-use
26
+
27
+ ---
28
+
29
+ Copyright (c) [year] [fullname] ([email])
30
+
31
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
32
+ This license is copied below, and is also available with a FAQ at:
33
+ http://scripts.sil.org/OFL
34
+
35
+ -----------------------------------------------------------
36
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
37
+ -----------------------------------------------------------
38
+
39
+ PREAMBLE
40
+ The goals of the Open Font License (OFL) are to stimulate worldwide
41
+ development of collaborative font projects, to support the font creation
42
+ efforts of academic and linguistic communities, and to provide a free and
43
+ open framework in which fonts may be shared and improved in partnership
44
+ with others.
45
+
46
+ The OFL allows the licensed fonts to be used, studied, modified and
47
+ redistributed freely as long as they are not sold by themselves. The
48
+ fonts, including any derivative works, can be bundled, embedded,
49
+ redistributed and/or sold with any software provided that any reserved
50
+ names are not used by derivative works. The fonts and derivatives,
51
+ however, cannot be released under any other type of license. The
52
+ requirement for fonts to remain under this license does not apply
53
+ to any document created using the fonts or their derivatives.
54
+
55
+ DEFINITIONS
56
+ "Font Software" refers to the set of files released by the Copyright
57
+ Holder(s) under this license and clearly marked as such. This may
58
+ include source files, build scripts and documentation.
59
+
60
+ "Reserved Font Name" refers to any names specified as such after the
61
+ copyright statement(s).
62
+
63
+ "Original Version" refers to the collection of Font Software components as
64
+ distributed by the Copyright Holder(s).
65
+
66
+ "Modified Version" refers to any derivative made by adding to, deleting,
67
+ or substituting -- in part or in whole -- any of the components of the
68
+ Original Version, by changing formats or by porting the Font Software to a
69
+ new environment.
70
+
71
+ "Author" refers to any designer, engineer, programmer, technical
72
+ writer or other person who contributed to the Font Software.
73
+
74
+ PERMISSION AND CONDITIONS
75
+ Permission is hereby granted, free of charge, to any person obtaining
76
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
77
+ redistribute, and sell modified and unmodified copies of the Font
78
+ Software, subject to the following conditions:
79
+
80
+ 1) Neither the Font Software nor any of its individual components,
81
+ in Original or Modified Versions, may be sold by itself.
82
+
83
+ 2) Original or Modified Versions of the Font Software may be bundled,
84
+ redistributed and/or sold with any software, provided that each copy
85
+ contains the above copyright notice and this license. These can be
86
+ included either as stand-alone text files, human-readable headers or
87
+ in the appropriate machine-readable metadata fields within text or
88
+ binary files as long as those fields can be easily viewed by the user.
89
+
90
+ 3) No Modified Version of the Font Software may use the Reserved Font
91
+ Name(s) unless explicit written permission is granted by the corresponding
92
+ Copyright Holder. This restriction only applies to the primary font name as
93
+ presented to the users.
94
+
95
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
96
+ Software shall not be used to promote, endorse or advertise any
97
+ Modified Version, except to acknowledge the contribution(s) of the
98
+ Copyright Holder(s) and the Author(s) or with their explicit written
99
+ permission.
100
+
101
+ 5) The Font Software, modified or unmodified, in part or in whole,
102
+ must be distributed entirely under this license, and must not be
103
+ distributed under any other license. The requirement for fonts to
104
+ remain under this license does not apply to any document created
105
+ using the Font Software.
106
+
107
+ TERMINATION
108
+ This license becomes null and void if any of the above conditions are
109
+ not met.
110
+
111
+ DISCLAIMER
112
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
113
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
114
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
115
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
116
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
117
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
118
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
119
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
120
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,210 @@
1
+ ---
2
+ title: Open Software License 3.0
3
+ hidden: true
4
+
5
+ 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
+ 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
+
9
+ using:
10
+ Magento Community Edition: "http://magento.com/"
11
+ Parsimony: "https://github.com/parsimony/parsimony"
12
+ PrestaShop: "https://www.prestashop.com"
13
+ Mulgara: "http://mulgara.org"
14
+ AbanteCart: "http://www.abantecart.com/"
15
+
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
+ required:
21
+ - include-copyright
22
+ - disclose-source
23
+
24
+ permitted:
25
+ - commercial-use
26
+ - distribution
27
+ - modifications
28
+ - patent-grant
29
+ - private-use
30
+ - sublicense
31
+
32
+
33
+ forbidden:
34
+ - trademark-use
35
+ - no-liability
36
+
37
+ ---
38
+
39
+ Open Software License ("OSL") v 3.0
40
+
41
+ This Open Software License (the "License") applies to any original work of
42
+ authorship (the "Original Work") whose owner (the "Licensor") has placed the
43
+ following licensing notice adjacent to the copyright notice for the Original
44
+ Work:
45
+
46
+ Licensed under the Open Software License version 3.0
47
+
48
+ 1) Grant of Copyright License. Licensor grants You a worldwide, royalty-free,
49
+ non-exclusive, sublicensable license, for the duration of the copyright, to do
50
+ the following:
51
+
52
+ a) to reproduce the Original Work in copies, either alone or as part of a
53
+ collective work;
54
+
55
+ b) to translate, adapt, alter, transform, modify, or arrange the Original
56
+ Work, thereby creating derivative works ("Derivative Works") based upon the
57
+ Original Work;
58
+
59
+ c) to distribute or communicate copies of the Original Work and Derivative
60
+ Works to the public, with the proviso that copies of Original Work or
61
+ Derivative Works that You distribute or communicate shall be licensed under
62
+ this Open Software License;
63
+
64
+ d) to perform the Original Work publicly; and
65
+
66
+ e) to display the Original Work publicly.
67
+
68
+ 2) Grant of Patent License. Licensor grants You a worldwide, royalty- free,
69
+ non-exclusive, sublicensable license, under patent claims owned or controlled
70
+ by the Licensor that are embodied in the Original Work as furnished by the
71
+ Licensor, for the duration of the patents, to make, use, sell, offer for sale,
72
+ have made, and import the Original Work and Derivative Works.
73
+
74
+ 3) Grant of Source Code License. The term "Source Code" means the preferred
75
+ form of the Original Work for making modifications to it and all available
76
+ documentation describing how to modify the Original Work. Licensor agrees to
77
+ provide a machine-readable copy of the Source Code of the Original Work along
78
+ with each copy of the Original Work that Licensor distributes. Licensor
79
+ reserves the right to satisfy this obligation by placing a machine-readable
80
+ copy of the Source Code in an information repository reasonably calculated to
81
+ permit inexpensive and convenient access by You for as long as Licensor
82
+ continues to distribute the Original Work.
83
+
84
+ 4) Exclusions From License Grant. Neither the names of Licensor, nor the names
85
+ of any contributors to the Original Work, nor any of their trademarks or
86
+ service marks, may be used to endorse or promote products derived from this
87
+ Original Work without express prior permission of the Licensor. Except as
88
+ expressly stated herein, nothing in this License grants any license to
89
+ Licensor's trademarks, copyrights, patents, trade secrets or any other
90
+ intellectual property. No patent license is granted to make, use, sell, offer
91
+ for sale, have made, or import embodiments of any patent claims other than the
92
+ licensed claims defined in Section 2. No license is granted to the trademarks
93
+ of Licensor even if such marks are included in the Original Work. Nothing in
94
+ this License shall be interpreted to prohibit Licensor from licensing under
95
+ terms different from this License any Original Work that Licensor otherwise
96
+ would have a right to license.
97
+
98
+ 5) External Deployment. The term "External Deployment" means the use,
99
+ distribution, or communication of the Original Work or Derivative Works in any
100
+ way such that the Original Work or Derivative Works may be used by anyone
101
+ other than You, whether those works are distributed or communicated to those
102
+ persons or made available as an application intended for use over a network.
103
+ As an express condition for the grants of license hereunder, You must treat
104
+ any External Deployment by You of the Original Work or a Derivative Work as a
105
+ distribution under section 1(c).
106
+
107
+ 6) Attribution Rights. You must retain, in the Source Code of any Derivative
108
+ Works that You create, all copyright, patent, or trademark notices from the
109
+ Source Code of the Original Work, as well as any notices of licensing and any
110
+ descriptive text identified therein as an "Attribution Notice." You must cause
111
+ the Source Code for any Derivative Works that You create to carry a prominent
112
+ Attribution Notice reasonably calculated to inform recipients that You have
113
+ modified the Original Work.
114
+
115
+ 7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that
116
+ the copyright in and to the Original Work and the patent rights granted herein
117
+ by Licensor are owned by the Licensor or are sublicensed to You under the
118
+ terms of this License with the permission of the contributor(s) of those
119
+ copyrights and patent rights. Except as expressly stated in the immediately
120
+ preceding sentence, the Original Work is provided under this License on an "AS
121
+ IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without
122
+ limitation, the warranties of non-infringement, merchantability or fitness for
123
+ a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK
124
+ IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this
125
+ License. No license to the Original Work is granted by this License except
126
+ under this disclaimer.
127
+
128
+ 8) Limitation of Liability. Under no circumstances and under no legal theory,
129
+ whether in tort (including negligence), contract, or otherwise, shall the
130
+ Licensor be liable to anyone for any indirect, special, incidental, or
131
+ consequential damages of any character arising as a result of this License or
132
+ the use of the Original Work including, without limitation, damages for loss
133
+ of goodwill, work stoppage, computer failure or malfunction, or any and all
134
+ other commercial damages or losses. This limitation of liability shall not
135
+ apply to the extent applicable law prohibits such limitation.
136
+
137
+ 9) Acceptance and Termination. If, at any time, You expressly assented to this
138
+ License, that assent indicates your clear and irrevocable acceptance of this
139
+ License and all of its terms and conditions. If You distribute or communicate
140
+ copies of the Original Work or a Derivative Work, You must make a reasonable
141
+ effort under the circumstances to obtain the express assent of recipients to
142
+ the terms of this License. This License conditions your rights to undertake
143
+ the activities listed in Section 1, including your right to create Derivative
144
+ Works based upon the Original Work, and doing so without honoring these terms
145
+ and conditions is prohibited by copyright law and international treaty.
146
+ Nothing in this License is intended to affect copyright exceptions and
147
+ limitations (including "fair use" or "fair dealing"). This License shall
148
+ terminate immediately and You may no longer exercise any of the rights granted
149
+ to You by this License upon your failure to honor the conditions in Section
150
+ 1(c).
151
+
152
+ 10) Termination for Patent Action. This License shall terminate automatically
153
+ and You may no longer exercise any of the rights granted to You by this
154
+ License as of the date You commence an action, including a cross-claim or
155
+ counterclaim, against Licensor or any licensee alleging that the Original Work
156
+ infringes a patent. This termination provision shall not apply for an action
157
+ alleging patent infringement by combinations of the Original Work with other
158
+ software or hardware.
159
+
160
+ 11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this
161
+ License may be brought only in the courts of a jurisdiction wherein the
162
+ Licensor resides or in which Licensor conducts its primary business, and under
163
+ the laws of that jurisdiction excluding its conflict-of-law provisions. The
164
+ application of the United Nations Convention on Contracts for the
165
+ International Sale of Goods is expressly excluded. Any use of the Original
166
+ Work outside the scope of this License or after its termination shall be
167
+ subject to the requirements and penalties of copyright or patent law in the
168
+ appropriate jurisdiction. This section shall survive the termination of this
169
+ License.
170
+
171
+ 12) Attorneys' Fees. In any action to enforce the terms of this License or
172
+ seeking damages relating thereto, the prevailing party shall be entitled to
173
+ recover its costs and expenses, including, without limitation, reasonable
174
+ attorneys' fees and costs incurred in connection with such action, including
175
+ any appeal of such action. This section shall survive the termination of this
176
+ License.
177
+
178
+ 13) Miscellaneous. If any provision of this License is held to be
179
+ unenforceable, such provision shall be reformed only to the extent necessary
180
+ to make it enforceable.
181
+
182
+ 14) Definition of "You" in This License. "You" throughout this License,
183
+ whether in upper or lower case, means an individual or a legal entity
184
+ exercising rights under, and complying with all of the terms of, this License.
185
+ For legal entities, "You" includes any entity that controls, is controlled by,
186
+ or is under common control with you. For purposes of this definition,
187
+ "control" means (i) the power, direct or indirect, to cause the direction or
188
+ management of such entity, whether by contract or otherwise, or (ii) ownership
189
+ of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial
190
+ ownership of such entity.
191
+
192
+ 15) Right to Use. You may use the Original Work in all ways not otherwise
193
+ restricted or conditioned by this License or by law, and Licensor promises not
194
+ to interfere with or be responsible for such uses by You.
195
+
196
+ 16) Modification of This License. This License is Copyright © 2005 Lawrence
197
+ Rosen. Permission is granted to copy, distribute, or communicate this License
198
+ without modification. Nothing in this License permits You to modify this
199
+ License as applied to the Original Work or to Derivative Works. However, You
200
+ may modify the text of this License and copy, distribute or communicate your
201
+ modified version (the "Modified License") and apply it to other original works
202
+ of authorship subject to the following conditions: (i) You may not indicate in
203
+ any way that your Modified License is the "Open Software License" or "OSL" and
204
+ you may not use those names in the name of your Modified License; (ii) You
205
+ must replace the notice specified in the first paragraph above with the notice
206
+ "Licensed under <insert your license name here>" or with a notice of your own
207
+ that is not confusingly similar to the notice in this License; and (iii) You
208
+ may not claim that your original works are open source software unless your
209
+ Modified License has been approved by Open Source Initiative (OSI) and You
210
+ comply with its license review and certification process.
@@ -1,13 +1,9 @@
1
1
  ---
2
- layout: license
3
2
  title: The Unlicense
3
+ source: http://unlicense.org/UNLICENSE
4
+
4
5
  category: Public Domain Dedication
5
6
  tab-slug: unlicense
6
- permalink: /licenses/unlicense/
7
- class: license-types
8
- filename: UNLICENSE
9
-
10
- source: http://unlicense.org/UNLICENSE
11
7
 
12
8
  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.
13
9
 
@@ -0,0 +1,35 @@
1
+ ---
2
+ title: "Do What The F*ck You Want To Public License"
3
+ hidden: true
4
+ source: http://www.wtfpl.net/
5
+
6
+ description: The easiest licence out there. It gives the user permissions to do whatever they want with your code.
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
+
10
+ required: []
11
+
12
+ permitted:
13
+ - commercial-use
14
+ - modifications
15
+ - distribution
16
+ - sublicense
17
+ - private-use
18
+
19
+ forbidden: []
20
+
21
+ ---
22
+
23
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
24
+ Version 2, December 2004
25
+
26
+ Copyright (C) 2004 [fullname] <[email]>
27
+
28
+ Everyone is permitted to copy and distribute verbatim or modified
29
+ copies of this license document, and changing it is allowed as long
30
+ as the name is changed.
31
+
32
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
33
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
34
+
35
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
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: 4.7.4
4
+ version: 4.8.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-08-19 00:00:00.000000000 Z
11
+ date: 2015-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged
@@ -197,7 +197,10 @@ files:
197
197
  - vendor/choosealicense.com/_licenses/mit.txt
198
198
  - vendor/choosealicense.com/_licenses/mpl-2.0.txt
199
199
  - vendor/choosealicense.com/_licenses/no-license.txt
200
+ - vendor/choosealicense.com/_licenses/ofl-1.1.txt
201
+ - vendor/choosealicense.com/_licenses/osl-3.0.txt
200
202
  - vendor/choosealicense.com/_licenses/unlicense.txt
203
+ - vendor/choosealicense.com/_licenses/wtfpl.txt
201
204
  homepage: http://github.com/benbalter/licensee
202
205
  licenses:
203
206
  - MIT