licensee 9.14.1 → 9.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +1 -1
  3. data/bin/licensee +1 -1
  4. data/lib/licensee.rb +1 -1
  5. data/lib/licensee/commands/detect.rb +2 -4
  6. data/lib/licensee/commands/diff.rb +1 -3
  7. data/lib/licensee/content_helper.rb +23 -27
  8. data/lib/licensee/hash_helper.rb +1 -1
  9. data/lib/licensee/license.rb +28 -14
  10. data/lib/licensee/matchers/copyright.rb +2 -7
  11. data/lib/licensee/matchers/cran.rb +1 -1
  12. data/lib/licensee/matchers/dice.rb +1 -1
  13. data/lib/licensee/project_files/license_file.rb +29 -22
  14. data/lib/licensee/project_files/project_file.rb +2 -4
  15. data/lib/licensee/project_files/readme_file.rb +1 -1
  16. data/lib/licensee/projects/fs_project.rb +1 -3
  17. data/lib/licensee/projects/git_project.rb +6 -4
  18. data/lib/licensee/projects/project.rb +11 -10
  19. data/lib/licensee/version.rb +1 -1
  20. data/licensee.gemspec +5 -4
  21. data/spec/fixture_spec.rb +2 -2
  22. data/spec/fixtures/bsd-3-authorowner/LICENSE +27 -0
  23. data/spec/fixtures/cc-by-sa-mdlinks/License.md +173 -0
  24. data/spec/fixtures/cc-by-sa-nocclicensor/License.md +425 -0
  25. data/spec/fixtures/detect.json +5 -5
  26. data/spec/fixtures/eupl-cal2017/LICENSE.txt +274 -0
  27. data/spec/fixtures/fixtures.yml +45 -25
  28. data/spec/fixtures/license-hashes.json +39 -38
  29. data/spec/fixtures/pixar-modified-apache/LICENSE.txt +174 -0
  30. data/spec/integration_spec.rb +46 -6
  31. data/spec/licensee/commands/detect_spec.rb +2 -2
  32. data/spec/licensee/content_helper_spec.rb +14 -13
  33. data/spec/licensee/license_spec.rb +5 -5
  34. data/spec/licensee/matchers/dice_matcher_spec.rb +2 -2
  35. data/spec/licensee/project_files/license_file_spec.rb +8 -2
  36. data/spec/licensee/project_spec.rb +1 -3
  37. data/spec/licensee_spec.rb +1 -1
  38. data/spec/spec_helper.rb +3 -3
  39. data/spec/vendored_license_spec.rb +1 -1
  40. data/vendor/choosealicense.com/_licenses/apache-2.0.txt +1 -1
  41. data/vendor/choosealicense.com/_licenses/bsl-1.0.txt +1 -1
  42. data/vendor/choosealicense.com/_licenses/eupl-1.2.txt +75 -58
  43. data/vendor/choosealicense.com/_licenses/mit-0.txt +45 -0
  44. data/vendor/choosealicense.com/_licenses/odbl-1.0.txt +1 -1
  45. data/vendor/choosealicense.com/_licenses/unlicense.txt +1 -1
  46. data/vendor/license-list-XML/src/0BSD.xml +21 -0
  47. data/vendor/license-list-XML/src/AFL-3.0.xml +212 -0
  48. data/vendor/license-list-XML/src/AGPL-3.0.xml +852 -0
  49. data/vendor/license-list-XML/src/Apache-2.0.xml +223 -0
  50. data/vendor/license-list-XML/src/Artistic-2.0.xml +238 -0
  51. data/vendor/license-list-XML/src/BSD-2-Clause.xml +42 -0
  52. data/vendor/license-list-XML/src/BSD-3-Clause-Clear.xml +59 -0
  53. data/vendor/license-list-XML/src/BSD-3-Clause.xml +46 -0
  54. data/vendor/license-list-XML/src/BSD-4-Clause.xml +59 -0
  55. data/vendor/license-list-XML/src/BSL-1.0.xml +30 -0
  56. data/vendor/license-list-XML/src/CC-BY-4.0.xml +444 -0
  57. data/vendor/license-list-XML/src/CC-BY-SA-4.0.xml +475 -0
  58. data/vendor/license-list-XML/src/CC0-1.0.xml +153 -0
  59. data/vendor/license-list-XML/src/CECILL-2.1.xml +669 -0
  60. data/vendor/license-list-XML/src/ECL-2.0.xml +242 -0
  61. data/vendor/license-list-XML/src/EPL-1.0.xml +255 -0
  62. data/vendor/license-list-XML/src/EPL-2.0.xml +639 -0
  63. data/vendor/license-list-XML/src/EUPL-1.1.xml +337 -0
  64. data/vendor/license-list-XML/src/EUPL-1.2.xml +502 -0
  65. data/vendor/license-list-XML/src/GPL-2.0.xml +474 -0
  66. data/vendor/license-list-XML/src/GPL-3.0.xml +858 -0
  67. data/vendor/license-list-XML/src/ISC.xml +29 -0
  68. data/vendor/license-list-XML/src/LGPL-2.1.xml +662 -0
  69. data/vendor/license-list-XML/src/LGPL-3.0.xml +260 -0
  70. data/vendor/license-list-XML/src/LPPL-1.3c.xml +380 -0
  71. data/vendor/license-list-XML/src/MIT-0.xml +40 -0
  72. data/vendor/license-list-XML/src/MIT.xml +32 -0
  73. data/vendor/license-list-XML/src/MPL-2.0.xml +438 -0
  74. data/vendor/license-list-XML/src/MS-PL.xml +89 -0
  75. data/vendor/license-list-XML/src/MS-RL.xml +97 -0
  76. data/vendor/license-list-XML/src/NCSA.xml +60 -0
  77. data/vendor/license-list-XML/src/ODbL-1.0.xml +660 -0
  78. data/vendor/license-list-XML/src/OFL-1.1.xml +94 -0
  79. data/vendor/license-list-XML/src/OSL-3.0.xml +209 -0
  80. data/vendor/license-list-XML/src/PostgreSQL.xml +32 -0
  81. data/vendor/license-list-XML/src/UPL-1.0.xml +46 -0
  82. data/vendor/license-list-XML/src/Unlicense.xml +27 -0
  83. data/vendor/license-list-XML/src/Vim.xml +124 -0
  84. data/vendor/license-list-XML/src/WTFPL.xml +30 -0
  85. data/vendor/license-list-XML/src/Zlib.xml +38 -0
  86. metadata +73 -13
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  RSpec.describe Licensee::License do
4
- let(:license_count) { 41 }
5
- let(:hidden_license_count) { 28 }
4
+ let(:license_count) { 42 }
5
+ let(:hidden_license_count) { 29 }
6
6
  let(:featured_license_count) { 3 }
7
7
  let(:pseudo_license_count) { 2 }
8
8
  let(:non_featured_license_count) do
@@ -383,7 +383,7 @@ RSpec.describe Licensee::License do
383
383
  expect(described_class.find_by_title(text)).to eql(license)
384
384
  end
385
385
 
386
- if license.title =~ /\bGNU\b/
386
+ if /\bGNU\b/.match?(license.title)
387
387
  context "without 'GNU'" do
388
388
  let(:text) { license_variation.sub(/GNU /i, '') }
389
389
 
@@ -490,7 +490,7 @@ RSpec.describe Licensee::License do
490
490
  prefixes.each do |prefix|
491
491
  context "with '#{prefix}' before the host" do
492
492
  before do
493
- source.host = "#{prefix}#{source.host.sub(/\Awww\./, '')}"
493
+ source.host = "#{prefix}#{source.host.delete_prefix('www.')}"
494
494
  end
495
495
 
496
496
  suffixes.each do |suffix|
@@ -498,7 +498,7 @@ RSpec.describe Licensee::License do
498
498
  before do
499
499
  next if license.key == 'wtfpl'
500
500
 
501
- regex = /#{Licensee::License::SOURCE_SUFFIX}\z/
501
+ regex = /#{Licensee::License::SOURCE_SUFFIX}\z/o
502
502
  source.path = source.path.sub(regex, '')
503
503
  source.path = "#{source.path}#{suffix}"
504
504
  end
@@ -22,8 +22,8 @@ RSpec.describe Licensee::Matchers::Dice do
22
22
 
23
23
  it 'sorts licenses by similarity' do
24
24
  expect(subject.matches_by_similarity[0]).to eql([gpl, 100.0])
25
- expect(subject.matches_by_similarity[1]).to eql([agpl, 95.28301886792453])
26
- expect(subject.matches_by_similarity[2]).to eql([lgpl, 39.33253873659118])
25
+ expect(subject.matches_by_similarity[1]).to eql([agpl, 94.56967213114754])
26
+ expect(subject.matches_by_similarity[2]).to eql([lgpl, 26.821370750134918])
27
27
  end
28
28
 
29
29
  it 'returns the match confidence' do
@@ -47,7 +47,7 @@ RSpec.describe Licensee::ProjectFiles::LicenseFile do
47
47
  end
48
48
 
49
49
  it 'creates the wordset' do
50
- expect(subject.wordset.count).to be(92)
50
+ expect(subject.wordset.count).to be(93)
51
51
  expect(subject.wordset.first).to eql('permission')
52
52
  end
53
53
 
@@ -70,6 +70,7 @@ RSpec.describe Licensee::ProjectFiles::LicenseFile do
70
70
  'copying.txt' => 0.85,
71
71
  'LICENSE.php' => 0.80,
72
72
  'LICENCE.docs' => 0.80,
73
+ 'license.xml' => 0.80,
73
74
  'copying.image' => 0.75,
74
75
  'COPYRIGHT.go' => 0.75,
75
76
  'LICENSE-MIT' => 0.70,
@@ -83,7 +84,12 @@ RSpec.describe Licensee::ProjectFiles::LicenseFile do
83
84
  'ofl' => 0.40,
84
85
  'not-the-ofl' => 0.00,
85
86
  'README.txt' => 0.00,
86
- '.pip-license-ignore' => 0.00
87
+ '.pip-license-ignore' => 0.00,
88
+ 'license-checks.xml' => 0.00,
89
+ 'license_test.go' => 0.00,
90
+ 'licensee.gemspec' => 0.00,
91
+ 'LICENSE.spdx' => 0.00
92
+
87
93
  }.each do |filename, expected|
88
94
  context "a file named #{filename}" do
89
95
  let(:score) { described_class.name_score(filename) }
@@ -106,9 +106,7 @@
106
106
  license = files.find { |f| f[:name] == 'LICENSE.txt' }
107
107
  expect(license).not_to be_nil
108
108
 
109
- if described_class == Licensee::Projects::GitProject
110
- expect(files.first).to have_key(:oid)
111
- end
109
+ expect(files.first).to have_key(:oid) if described_class == Licensee::Projects::GitProject
112
110
  end
113
111
 
114
112
  it "returns a file's content" do
@@ -4,7 +4,7 @@ RSpec.describe Licensee do
4
4
  let(:project_path) { fixture_path('mit') }
5
5
  let(:license_path) { fixture_path('mit/LICENSE.txt') }
6
6
  let(:mit_license) { Licensee::License.find('mit') }
7
- let(:hidden_license_count) { 41 }
7
+ let(:hidden_license_count) { 42 }
8
8
 
9
9
  it 'exposes licenses' do
10
10
  expect(described_class.licenses).to be_an(Array)
data/spec/spec_helper.rb CHANGED
@@ -80,8 +80,8 @@ end
80
80
 
81
81
  # Add random words to the end of a license to test similarity tollerances
82
82
  def add_random_words(string, count = 5)
83
- words = string.dup.split(' ')
84
- ipsum = File.read(fixture_path('ipsum.txt')).split(' ')
83
+ words = string.dup.split
84
+ ipsum = File.read(fixture_path('ipsum.txt')).split
85
85
  count.times do
86
86
  word = ipsum[Random.rand(ipsum.length)]
87
87
  index = Random.rand(words.length)
@@ -91,7 +91,7 @@ def add_random_words(string, count = 5)
91
91
  end
92
92
 
93
93
  # Init git dir
94
- # Note: we disable gpgsign and restore it to its original setting to avoid
94
+ # NOTE: we disable gpgsign and restore it to its original setting to avoid
95
95
  # Signing commits during tests and slowing down / breaking specs
96
96
  def git_init(path)
97
97
  Dir.chdir path do
@@ -16,7 +16,7 @@ RSpec.describe 'vendored licenses' do
16
16
  let(:content) { content_with_copyright }
17
17
  let(:expected_hash) { license_hashes[license.key] }
18
18
  let(:hash_change_msg) do
19
- msg = 'Did you update a vendored license? Run '.dup
19
+ msg = +'Did you update a vendored license? Run '
20
20
  msg << '`bundle exec script/hash-licenses`. '
21
21
  msg << 'Changes in license hashes must be a MINOR (or MAJOR) bump.'
22
22
  msg
@@ -14,7 +14,7 @@ note: The Apache Foundation recommends taking the additional step of adding a bo
14
14
  using:
15
15
  Kubernetes: https://github.com/kubernetes/kubernetes/blob/master/LICENSE
16
16
  PDF.js: https://github.com/mozilla/pdf.js/blob/master/LICENSE
17
- Swift: https://github.com/apple/swift/blob/master/LICENSE.txt
17
+ Swift: https://github.com/apple/swift/blob/main/LICENSE.txt
18
18
 
19
19
  permissions:
20
20
  - commercial-use
@@ -11,7 +11,7 @@ note: Boost recommends taking the additional step of adding a boilerplate notice
11
11
 
12
12
  using:
13
13
  Boost: https://github.com/boostorg/boost/blob/master/LICENSE_1_0.txt
14
- Catch2: https://github.com/catchorg/Catch2/blob/master/LICENSE.txt
14
+ Catch2: https://github.com/catchorg/Catch2/blob/devel/LICENSE.txt
15
15
  DMD: https://github.com/dlang/dmd/blob/master/LICENSE.txt
16
16
 
17
17
  permissions:
@@ -2,12 +2,12 @@
2
2
  title: European Union Public License 1.2
3
3
  spdx-id: EUPL-1.2
4
4
 
5
- description: The European Union Public Licence (EUPL) is a copyleft free/open source software license created on the initiative of and approved by the European Commission in 22 official languages of the European Union.
5
+ description: The European Union Public Licence (EUPL) is a copyleft free/open source software license created on the initiative of and approved by the European Commission in <a href="https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12">23 official languages</a> of the European Union.
6
6
 
7
7
  how: Indicate “Licensed under the EUPL” following the copyright notice of your source code, for example in a README file or directly in a source code file as a comment.
8
8
 
9
9
  using:
10
- AethysRotation: https://github.com/SimCMinMax/AethysRotation/blob/master/LICENSE
10
+ HeroRotation: https://github.com/herotc/hero-rotation/blob/shadowlands/LICENSE
11
11
  WildDuck: https://github.com/nodemailer/wildduck/blob/master/LICENSE
12
12
  ZoneMTA: https://github.com/zone-eu/zone-mta/blob/master/LICENSE
13
13
 
@@ -32,10 +32,8 @@ limitations:
32
32
 
33
33
  ---
34
34
 
35
- European Union Public Licence
36
- V. 1.2
37
-
38
- EUPL © the European Union 2007, 2016
35
+ EUROPEAN UNION PUBLIC LICENCE v. 1.2
36
+ EUPL © the European Union 2007, 2016
39
37
 
40
38
  This European Union Public Licence (the ‘EUPL’) applies to the Work (as
41
39
  defined below) which is provided under the terms of this Licence. Any use of
@@ -44,35 +42,47 @@ extent such use is covered by a right of the copyright holder of the Work).
44
42
 
45
43
  The Work is provided under the terms of this Licence when the Licensor (as
46
44
  defined below) has placed the following notice immediately following the
47
- copyright notice for the Work: “Licensed under the EUPL”, or has expressed by
48
- any other means his willingness to license under the EUPL.
45
+ copyright notice for the Work:
46
+
47
+ Licensed under the EUPL
48
+
49
+ or has expressed by any other means his willingness to license under the EUPL.
49
50
 
50
51
  1. Definitions
51
52
 
52
53
  In this Licence, the following terms have the following meaning:
53
- — ‘The Licence’: this Licence.
54
- ‘The Original Work’: the work or software distributed or communicated by the
55
- ‘Licensor under this Licence, available as Source Code and also as
56
- Executable Code as the case may be.
57
- ‘Derivative Works’: the works or software that could be created by the
58
- ‘Licensee, based upon the Original Work or modifications thereof. This
59
- ‘Licence does not define the extent of modification or dependence on the
60
- Original Work required in order to classify a work as a Derivative Work;
61
- ‘this extent is determined by copyright law applicable in the country
62
- ‘mentioned in Article 15.
63
- ‘The Work’: the Original Work or its Derivative Works.
64
- ‘The Source Code’: the human-readable form of the Work which is the most
54
+
55
+ - ‘The Licence’: this Licence.
56
+
57
+ - The Original Work’: the work or software distributed or communicated by the
58
+ Licensor under this Licence, available as Source Code and also as Executable
59
+ Code as the case may be.
60
+
61
+ - Derivative Works’: the works or software that could be created by the
62
+ Licensee, based upon the Original Work or modifications thereof. This
63
+ Licence does not define the extent of modification or dependence on the
64
+ Original Work required in order to classify a work as a Derivative Work;
65
+ this extent is determined by copyright law applicable in the country
66
+ mentioned in Article 15.
67
+
68
+ - ‘The Work’: the Original Work or its Derivative Works.
69
+
70
+ - ‘The Source Code’: the human-readable form of the Work which is the most
65
71
  convenient for people to study and modify.
66
72
 
67
- ‘The Executable Code’: any code which has generally been compiled and which
73
+ - ‘The Executable Code’: any code which has generally been compiled and which
68
74
  is meant to be interpreted by a computer as a program.
69
- — ‘The Licensor’: the natural or legal person that distributes or communicates
75
+
76
+ - ‘The Licensor’: the natural or legal person that distributes or communicates
70
77
  the Work under the Licence.
71
- — ‘Contributor(s)’: any natural or legal person who modifies the Work under
78
+
79
+ - ‘Contributor(s)’: any natural or legal person who modifies the Work under
72
80
  the Licence, or otherwise contributes to the creation of a Derivative Work.
73
- — ‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of
81
+
82
+ - ‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of
74
83
  the Work under the terms of the Licence.
75
- — ‘Distribution’ or ‘Communication’: any act of selling, giving, lending,
84
+
85
+ - ‘Distribution’ or ‘Communication’: any act of selling, giving, lending,
76
86
  renting, distributing, communicating, transmitting, or otherwise making
77
87
  available, online or offline, copies of the Work or providing access to its
78
88
  essential functionalities at the disposal of any other natural or legal
@@ -84,15 +94,15 @@ The Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
84
94
  sublicensable licence to do the following, for the duration of copyright
85
95
  vested in the Original Work:
86
96
 
87
- use the Work in any circumstance and for all usage,
88
- reproduce the Work,
89
- modify the Work, and make Derivative Works based upon the Work,
90
- communicate to the public, including the right to make available or display
97
+ - use the Work in any circumstance and for all usage,
98
+ - reproduce the Work,
99
+ - modify the Work, and make Derivative Works based upon the Work,
100
+ - communicate to the public, including the right to make available or display
91
101
  the Work or copies thereof to the public and perform publicly, as the case
92
102
  may be, the Work,
93
- distribute the Work or copies thereof,
94
- lend and rent the Work or copies thereof,
95
- sublicense rights in the Work or copies thereof.
103
+ - distribute the Work or copies thereof,
104
+ - lend and rent the Work or copies thereof,
105
+ - sublicense rights in the Work or copies thereof.
96
106
 
97
107
  Those rights can be exercised on any media, supports and formats, whether now
98
108
  known or later invented, as far as the applicable law permits so.
@@ -238,10 +248,11 @@ accessible, concluded, stored and reproduced by the Licensee.
238
248
  12. Termination of the Licence
239
249
 
240
250
  The Licence and the rights granted hereunder will terminate automatically upon
241
- any breach by the Licensee of the terms of the Licence. Such a termination
242
- will not terminate the licences of any person who has received the Work from
243
- the Licensee under the Licence, provided such persons remain in full
244
- compliance with the Licence.
251
+ any breach by the Licensee of the terms of the Licence.
252
+
253
+ Such a termination will not terminate the licences of any person who has
254
+ received the Work from the Licensee under the Licence, provided such persons
255
+ remain in full compliance with the Licence.
245
256
 
246
257
  13. Miscellaneous
247
258
 
@@ -266,12 +277,14 @@ their choice.
266
277
  14. Jurisdiction
267
278
 
268
279
  Without prejudice to specific agreement between parties,
269
- — any litigation resulting from the interpretation of this License, arising
280
+
281
+ - any litigation resulting from the interpretation of this License, arising
270
282
  between the European Union institutions, bodies, offices or agencies, as a
271
283
  Licensor, and any Licensee, will be subject to the jurisdiction of the Court
272
284
  of Justice of the European Union, as laid down in article 272 of the Treaty
273
285
  on the Functioning of the European Union,
274
- — any litigation arising between other parties and resulting from the
286
+
287
+ - any litigation arising between other parties and resulting from the
275
288
  interpretation of this License, will be subject to the exclusive
276
289
  jurisdiction of the competent court where the Licensor resides or conducts
277
290
  its primary business.
@@ -279,30 +292,34 @@ Without prejudice to specific agreement between parties,
279
292
  15. Applicable Law
280
293
 
281
294
  Without prejudice to specific agreement between parties,
282
- — this Licence shall be governed by the law of the European Union Member State
295
+
296
+ - this Licence shall be governed by the law of the European Union Member State
283
297
  where the Licensor has his seat, resides or has his registered office,
284
- — this licence shall be governed by Belgian law if the Licensor has no seat,
298
+
299
+ - this licence shall be governed by Belgian law if the Licensor has no seat,
285
300
  residence or registered office inside a European Union Member State.
286
301
 
287
302
  Appendix
288
303
 
289
304
  ‘Compatible Licences’ according to Article 5 EUPL are:
290
- — GNU General Public License (GPL) v. 2, v. 3
291
- GNU Affero General Public License (AGPL) v. 3
292
- Open Software License (OSL) v. 2.1, v. 3.0
293
- Eclipse Public License (EPL) v. 1.0
294
- CeCILL v. 2.0, v. 2.1
295
- Mozilla Public Licence (MPL) v. 2
296
- GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3
297
- Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for
305
+
306
+ - GNU General Public License (GPL) v. 2, v. 3
307
+ - GNU Affero General Public License (AGPL) v. 3
308
+ - Open Software License (OSL) v. 2.1, v. 3.0
309
+ - Eclipse Public License (EPL) v. 1.0
310
+ - CeCILL v. 2.0, v. 2.1
311
+ - Mozilla Public Licence (MPL) v. 2
312
+ - GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3
313
+ - Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for
298
314
  works other than software
299
- European Union Public Licence (EUPL) v. 1.1, v. 1.2
300
- Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or
301
- Strong Reciprocity (LiLiQ-R+)
302
-
303
- The European Commission may update this Appendix to later versions of the
304
- above licences without producing a new version of the EUPL, as long as they
305
- provide the rights granted in Article 2 of this Licence and protect the
306
- covered Source Code from exclusive appropriation.
307
- — All other changes or additions to this Appendix require the production of a
308
- new EUPL version.
315
+ - European Union Public Licence (EUPL) v. 1.1, v. 1.2
316
+ - Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong
317
+ Reciprocity (LiLiQ-R+).
318
+
319
+ The European Commission may update this Appendix to later versions of the
320
+ above licences without producing a new version of the EUPL, as long as they
321
+ provide the rights granted in Article 2 of this Licence and protect the
322
+ covered Source Code from exclusive appropriation.
323
+
324
+ All other changes or additions to this Appendix require the production of a
325
+ new EUPL version.
@@ -0,0 +1,45 @@
1
+ ---
2
+ title: MIT No Attribution
3
+ spdx-id: MIT-0
4
+
5
+ description: A short and simple permissive license with no conditions, not even requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.
6
+
7
+ 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.
8
+
9
+ using:
10
+ rssfs: https://github.com/dertuxmalwieder/rssfs/blob/master/LICENSE
11
+ SOIL2: https://github.com/SpartanJ/SOIL2/blob/master/LICENSE
12
+ Units.NET: https://github.com/angularsen/UnitsNet/blob/master/LICENSE
13
+
14
+ permissions:
15
+ - commercial-use
16
+ - modifications
17
+ - distribution
18
+ - private-use
19
+
20
+ conditions: []
21
+
22
+ limitations:
23
+ - liability
24
+ - warranty
25
+
26
+ ---
27
+
28
+ MIT No Attribution
29
+
30
+ Copyright [year] [fullname]
31
+
32
+ Permission is hereby granted, free of charge, to any person obtaining a copy
33
+ of this software and associated documentation files (the "Software"), to deal
34
+ in the Software without restriction, including without limitation the rights
35
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
36
+ copies of the Software, and to permit persons to whom the Software is
37
+ furnished to do so.
38
+
39
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
40
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
41
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
42
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
43
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
44
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
45
+ SOFTWARE.
@@ -10,7 +10,7 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
10
10
  using:
11
11
  World Countries: https://github.com/mledoze/countries/blob/master/LICENSE
12
12
  OpenFlights: https://github.com/jpatokal/openflights/blob/master/data/LICENSE
13
- Public Zone Database: https://github.com/zonedb/zonedb/blob/master/LICENSE.md
13
+ Public Zone Database: https://github.com/zonedb/zonedb/blob/main/LICENSE.md
14
14
 
15
15
  permissions:
16
16
  - commercial-use
@@ -8,7 +8,7 @@ description: A license with no conditions whatsoever which dedicates works to th
8
8
  how: Create a text file (typically named UNLICENSE or UNLICENSE.txt) in the root of your source code and copy the text of the license disclaimer into the file.
9
9
 
10
10
  using:
11
- youtube-dl: https://github.com/rg3/youtube-dl/blob/master/LICENSE
11
+ scoop: https://github.com/lukesampson/scoop/blob/master/LICENSE
12
12
  kakoune: https://github.com/mawww/kakoune/blob/master/UNLICENSE
13
13
  RDF.rb: https://github.com/ruby-rdf/rdf/blob/master/UNLICENSE
14
14
 
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <SPDXLicenseCollection xmlns="http://www.spdx.org/license">
3
+ <license isOsiApproved="true" licenseId="0BSD" name="BSD Zero Clause License">
4
+ <crossRefs>
5
+ <crossRef>http://landley.net/toybox/license.html</crossRef>
6
+ </crossRefs>
7
+ <text>
8
+ <copyrightText>
9
+ <p>Copyright (C) 2006 by Rob Landley &lt;rob@landley.net&gt;</p>
10
+ </copyrightText>
11
+
12
+ <p>Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is
13
+ hereby granted.</p>
14
+ <p>THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
15
+ INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
16
+ LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
17
+ FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
18
+ ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</p>
19
+ </text>
20
+ </license>
21
+ </SPDXLicenseCollection>
@@ -0,0 +1,212 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <SPDXLicenseCollection xmlns="http://www.spdx.org/license">
3
+ <license isOsiApproved="true" licenseId="AFL-3.0" name="Academic Free License v3.0">
4
+ <crossRefs>
5
+ <crossRef>http://www.rosenlaw.com/AFL3.0.htm</crossRef>
6
+ <crossRef>https://opensource.org/licenses/afl-3.0</crossRef>
7
+ </crossRefs>
8
+ <text>
9
+ <titleText>
10
+ <p>Academic Free License ("AFL") v. 3.0</p>
11
+ </titleText>
12
+ <optional>
13
+ <p>This Academic Free License (the "License") applies to any original work of authorship (the
14
+ "Original Work") whose owner (the "Licensor") has placed the following licensing
15
+ notice adjacent to the copyright notice for the Original Work:</p>
16
+ <standardLicenseHeader>
17
+ <p>Licensed under the Academic Free License version 3.0</p>
18
+ </standardLicenseHeader>
19
+ </optional>
20
+
21
+ <list>
22
+ <item>
23
+ <bullet>1)</bullet>
24
+ Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive,
25
+ sublicensable license, for the duration of the copyright, to do the following:
26
+ <list>
27
+ <item>
28
+ <bullet>a)</bullet>
29
+ to reproduce the Original Work in copies, either alone or as part of a collective work;
30
+ </item>
31
+ <item>
32
+ <bullet>b)</bullet>
33
+ to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating
34
+ derivative works ("Derivative Works") based upon the Original Work;
35
+ </item>
36
+ <item>
37
+ <bullet>c)</bullet>
38
+ to distribute or communicate copies of the Original Work and Derivative Works to the public,
39
+ under any license of your choice that does not contradict the terms and conditions,
40
+ including Licensor's reserved rights and remedies, in this Academic Free
41
+ License;
42
+ </item>
43
+ <item>
44
+ <bullet>d)</bullet>
45
+ to perform the Original Work publicly; and
46
+ </item>
47
+ <item>
48
+ <bullet>e)</bullet>
49
+ to display the Original Work publicly.
50
+ </item>
51
+ </list>
52
+ </item>
53
+ <item>
54
+ <bullet>2)</bullet>
55
+ Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive,
56
+ sublicensable license, under patent claims owned or controlled by the Licensor that are
57
+ embodied in the Original Work as furnished by the Licensor, for the duration of the patents,
58
+ to make, use, sell, offer for sale, have made, and import the Original Work and Derivative
59
+ Works.
60
+ </item>
61
+ <item>
62
+ <bullet>3)</bullet>
63
+ Grant of Source Code License. The term "Source Code" means the preferred form of the
64
+ Original Work for making modifications to it and all available documentation describing how to
65
+ modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source
66
+ Code of the Original Work along with each copy of the Original Work that Licensor distributes.
67
+ Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of
68
+ the Source Code in an information repository reasonably calculated to permit inexpensive and
69
+ convenient access by You for as long as Licensor continues to distribute the Original
70
+ Work.
71
+ </item>
72
+ <item>
73
+ <bullet>4)</bullet>
74
+ Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors
75
+ to the Original Work, nor any of their trademarks or service marks, may be used to endorse or
76
+ promote products derived from this Original Work without express prior permission of the
77
+ Licensor. Except as expressly stated herein, nothing in this License grants any license to
78
+ Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual
79
+ property. No patent license is granted to make, use, sell, offer for sale, have made, or
80
+ import embodiments of any patent claims other than the licensed claims defined in Section 2.
81
+ No license is granted to the trademarks of Licensor even if such marks are included in the
82
+ Original Work. Nothing in this License shall be interpreted to prohibit Licensor from
83
+ licensing under terms different from this License any Original Work that Licensor otherwise
84
+ would have a right to license.
85
+ </item>
86
+ <item>
87
+ <bullet>5)</bullet>
88
+ External Deployment. The term "External Deployment" means the use, distribution, or
89
+ communication of the Original Work or Derivative Works in any way such that the Original Work
90
+ or Derivative Works may be used by anyone other than You, whether those works are distributed
91
+ or communicated to those persons or made available as an application intended for use over a
92
+ network. As an express condition for the grants of license hereunder, You must treat any
93
+ External Deployment by You of the Original Work or a Derivative Work as a distribution under
94
+ section 1(c).
95
+ </item>
96
+ <item>
97
+ <bullet>6)</bullet>
98
+ Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create,
99
+ all copyright, patent, or trademark notices from the Source Code of the Original Work, as well
100
+ as any notices of licensing and any descriptive text identified therein as an
101
+ "Attribution Notice." You must cause the Source Code for any Derivative Works that
102
+ You create to carry a prominent Attribution Notice reasonably calculated to inform recipients
103
+ that You have modified the Original Work.
104
+ </item>
105
+ <item>
106
+ <bullet>7)</bullet>
107
+ Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to
108
+ the Original Work and the patent rights granted herein by Licensor are owned by the Licensor
109
+ or are sublicensed to You under the terms of this License with the permission of the
110
+ contributor(s) of those copyrights and patent rights. Except as expressly stated in the
111
+ immediately preceding sentence, the Original Work is provided under this License on an
112
+ "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without
113
+ limitation, the warranties of non-infringement, merchantability or fitness for a particular
114
+ purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER
115
+ OF WARRANTY constitutes an essential part of this License. No license to the Original Work is
116
+ granted by this License except under this disclaimer.
117
+ </item>
118
+ <item>
119
+ <bullet>8)</bullet>
120
+ Limitation of Liability. Under no circumstances and under no legal theory, whether in tort
121
+ (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any
122
+ indirect, special, incidental, or consequential damages of any character arising as a result
123
+ of this License or the use of the Original Work including, without limitation, damages for
124
+ loss of goodwill, work stoppage, computer failure or malfunction, or any and all other
125
+ commercial damages or losses. This limitation of liability shall not apply to the extent
126
+ applicable law prohibits such limitation.
127
+ </item>
128
+ <item>
129
+ <bullet>9)</bullet>
130
+ Acceptance and Termination. If, at any time, You expressly assented to this License, that assent
131
+ indicates your clear and irrevocable acceptance of this License and all of its terms and
132
+ conditions. If You distribute or communicate copies of the Original Work or a Derivative Work,
133
+ You must make a reasonable effort under the circumstances to obtain the express assent of
134
+ recipients to the terms of this License. This License conditions your rights to undertake the
135
+ activities listed in Section 1, including your right to create Derivative Works based upon the
136
+ Original Work, and doing so without honoring these terms and conditions is prohibited by
137
+ copyright law and international treaty. Nothing in this License is intended to affect
138
+ copyright exceptions and limitations (including "fair use" or "fair
139
+ dealing"). This License shall terminate immediately and You may no longer exercise any
140
+ of the rights granted to You by this License upon your failure to honor the conditions in
141
+ Section 1(c).
142
+ </item>
143
+ <item>
144
+ <bullet>10)</bullet>
145
+ Termination for Patent Action. This License shall terminate automatically and You may no longer
146
+ exercise any of the rights granted to You by this License as of the date You commence an
147
+ action, including a cross-claim or counterclaim, against Licensor or any licensee alleging
148
+ that the Original Work infringes a patent. This termination provision shall not apply for an
149
+ action alleging patent infringement by combinations of the Original Work with other software
150
+ or hardware.
151
+ </item>
152
+ <item>
153
+ <bullet>11)</bullet>
154
+ Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought
155
+ only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor
156
+ conducts its primary business, and under the laws of that jurisdiction excluding its
157
+ conflict-of-law provisions. The application of the United Nations Convention on Contracts for
158
+ the International Sale of Goods is expressly excluded. Any use of the Original Work outside
159
+ the scope of this License or after its termination shall be subject to the requirements and
160
+ penalties of copyright or patent law in the appropriate jurisdiction. This section shall
161
+ survive the termination of this License.
162
+ </item>
163
+ <item>
164
+ <bullet>12)</bullet>
165
+ Attorneys' Fees. In any action to enforce the terms of this License or seeking damages
166
+ relating thereto, the prevailing party shall be entitled to recover its costs and expenses,
167
+ including, without limitation, reasonable attorneys' fees and costs incurred in
168
+ connection with such action, including any appeal of such action. This section shall survive
169
+ the termination of this License.
170
+ </item>
171
+ <item>
172
+ <bullet>13)</bullet>
173
+ Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall
174
+ be reformed only to the extent necessary to make it enforceable.
175
+ </item>
176
+ <item>
177
+ <bullet>14)</bullet>
178
+ Definition of "You" in This License. "You" throughout this License, whether
179
+ in upper or lower case, means an individual or a legal entity exercising rights under, and
180
+ complying with all of the terms of, this License. For legal entities, "You" includes
181
+ any entity that controls, is controlled by, or is under common control with you. For purposes
182
+ of this definition, "control" means (i) the power, direct or indirect, to cause the
183
+ direction or management of such entity, whether by contract or otherwise, or (ii) ownership of
184
+ fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such
185
+ entity.
186
+ </item>
187
+ <item>
188
+ <bullet>15)</bullet>
189
+ Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned
190
+ by this License or by law, and Licensor promises not to interfere with or be responsible for
191
+ such uses by You.
192
+ </item>
193
+ <item>
194
+ <bullet>16)</bullet>
195
+ Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is
196
+ granted to copy, distribute, or communicate this License without modification. Nothing in this
197
+ License permits You to modify this License as applied to the Original Work or to Derivative
198
+ Works. However, You may modify the text of this License and copy, distribute or communicate
199
+ your modified version (the "Modified License") and apply it to other original works
200
+ of authorship subject to the following conditions: (i) You may not indicate in any way that
201
+ your Modified License is the "Academic Free License" or "AFL" and you may
202
+ not use those names in the name of your Modified License; (ii) You must replace the notice
203
+ specified in the first paragraph above with the notice "Licensed under &lt;insert your
204
+ license name here&gt;" or with a notice of your own that is not confusingly similar to
205
+ the notice in this License; and (iii) You may not claim that your original works are open
206
+ source software unless your Modified License has been approved by Open Source Initiative (OSI)
207
+ and You comply with its license review and certification process.
208
+ </item>
209
+ </list>
210
+ </text>
211
+ </license>
212
+ </SPDXLicenseCollection>