licensee 9.12.0 → 9.14.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +1 -1
  3. data/bin/licensee +4 -4
  4. data/lib/licensee.rb +3 -3
  5. data/lib/licensee/commands/detect.rb +6 -6
  6. data/lib/licensee/commands/diff.rb +2 -2
  7. data/lib/licensee/content_helper.rb +72 -26
  8. data/lib/licensee/hash_helper.rb +5 -5
  9. data/lib/licensee/license.rb +17 -21
  10. data/lib/licensee/matchers.rb +1 -0
  11. data/lib/licensee/matchers/cabal.rb +1 -1
  12. data/lib/licensee/matchers/cargo.rb +1 -1
  13. data/lib/licensee/matchers/copyright.rb +3 -3
  14. data/lib/licensee/matchers/dice.rb +4 -4
  15. data/lib/licensee/matchers/dist_zilla.rb +1 -1
  16. data/lib/licensee/matchers/gemspec.rb +4 -4
  17. data/lib/licensee/matchers/npm_bower.rb +5 -2
  18. data/lib/licensee/matchers/nuget.rb +43 -0
  19. data/lib/licensee/matchers/spdx.rb +1 -1
  20. data/lib/licensee/project_files/license_file.rb +3 -3
  21. data/lib/licensee/project_files/package_manager_file.rb +3 -2
  22. data/lib/licensee/project_files/project_file.rb +2 -1
  23. data/lib/licensee/projects/fs_project.rb +7 -2
  24. data/lib/licensee/projects/git_project.rb +3 -3
  25. data/lib/licensee/projects/github_project.rb +1 -1
  26. data/lib/licensee/projects/project.rb +3 -3
  27. data/lib/licensee/version.rb +1 -1
  28. data/licensee.gemspec +45 -0
  29. data/spec/bin_spec.rb +1 -1
  30. data/spec/fixture_spec.rb +5 -5
  31. data/spec/fixtures/bom/LICENSE.txt +21 -0
  32. data/spec/fixtures/bsd-3-noendorseslash/LICENSE +30 -0
  33. data/spec/fixtures/cc0-cal2013/LICENSE +116 -0
  34. data/spec/fixtures/cc0-cc/LICENSE +121 -0
  35. data/spec/fixtures/crlf-bsd/LICENSE.md +27 -0
  36. data/spec/fixtures/detect.json +14 -20
  37. data/spec/fixtures/fixtures.yml +43 -3
  38. data/spec/fixtures/license-hashes.json +10 -8
  39. data/spec/fixtures/markdown-artistic/LICENSE.md +192 -0
  40. data/spec/fixtures/multiple-arrs/LICENSE +30 -0
  41. data/spec/fixtures/readme-invalid-encoding/README.md +24 -0
  42. data/spec/fixtures/unlicense-noinfo/LICENSE +22 -0
  43. data/spec/fixtures/vim/LICENSE +78 -0
  44. data/spec/integration_spec.rb +87 -4
  45. data/spec/licensee/commands/detect_spec.rb +5 -5
  46. data/spec/licensee/commands/license_path_spec.rb +1 -1
  47. data/spec/licensee/commands/version_spec.rb +1 -1
  48. data/spec/licensee/content_helper_spec.rb +46 -50
  49. data/spec/licensee/hash_helper_spec.rb +23 -23
  50. data/spec/licensee/license_field_spec.rb +3 -3
  51. data/spec/licensee/license_meta_spec.rb +18 -22
  52. data/spec/licensee/license_rules_spec.rb +4 -2
  53. data/spec/licensee/license_spec.rb +43 -39
  54. data/spec/licensee/matchers/cabal_matcher_spec.rb +4 -2
  55. data/spec/licensee/matchers/cargo_matcher_spec.rb +3 -2
  56. data/spec/licensee/matchers/copyright_matcher_spec.rb +3 -3
  57. data/spec/licensee/matchers/cran_matcher_spec.rb +3 -2
  58. data/spec/licensee/matchers/dice_matcher_spec.rb +15 -21
  59. data/spec/licensee/matchers/dist_zilla_matcher_spec.rb +3 -2
  60. data/spec/licensee/matchers/exact_matcher_spec.rb +3 -2
  61. data/spec/licensee/matchers/gemspec_matcher_spec.rb +3 -2
  62. data/spec/licensee/matchers/matcher_spec.rb +10 -8
  63. data/spec/licensee/matchers/npm_bower_matcher_spec.rb +12 -3
  64. data/spec/licensee/matchers/nu_get_matcher_spec.rb +91 -0
  65. data/spec/licensee/matchers/package_matcher_spec.rb +4 -2
  66. data/spec/licensee/matchers/reference_matcher_spec.rb +2 -2
  67. data/spec/licensee/matchers/spdx_matcher_spec.rb +3 -2
  68. data/spec/licensee/project_files/license_file_spec.rb +43 -42
  69. data/spec/licensee/project_files/package_info_spec.rb +11 -1
  70. data/spec/licensee/project_files/project_file_spec.rb +5 -2
  71. data/spec/licensee/project_files/readme_file_spec.rb +2 -1
  72. data/spec/licensee/project_spec.rb +22 -17
  73. data/spec/licensee/projects/github_project_spec.rb +6 -5
  74. data/spec/licensee/rule_spec.rb +5 -4
  75. data/spec/licensee_spec.rb +10 -9
  76. data/spec/spec_helper.rb +2 -2
  77. data/spec/vendored_license_spec.rb +5 -5
  78. data/vendor/choosealicense.com/_data/meta.yml +1 -1
  79. data/vendor/choosealicense.com/_data/rules.yml +15 -12
  80. data/vendor/choosealicense.com/_licenses/0bsd.txt +3 -3
  81. data/vendor/choosealicense.com/_licenses/apache-2.0.txt +4 -4
  82. data/vendor/choosealicense.com/_licenses/artistic-2.0.txt +1 -1
  83. data/vendor/choosealicense.com/_licenses/bsd-2-clause.txt +3 -3
  84. data/vendor/choosealicense.com/_licenses/bsd-3-clause-clear.txt +1 -0
  85. data/vendor/choosealicense.com/_licenses/bsd-3-clause.txt +3 -3
  86. data/vendor/choosealicense.com/_licenses/bsd-4-clause.txt +61 -0
  87. data/vendor/choosealicense.com/_licenses/bsl-1.0.txt +5 -1
  88. data/vendor/choosealicense.com/_licenses/cc-by-4.0.txt +16 -13
  89. data/vendor/choosealicense.com/_licenses/cc-by-sa-4.0.txt +16 -13
  90. data/vendor/choosealicense.com/_licenses/cc0-1.0.txt +113 -104
  91. data/vendor/choosealicense.com/_licenses/cecill-2.1.txt +6 -6
  92. data/vendor/choosealicense.com/_licenses/ecl-2.0.txt +4 -4
  93. data/vendor/choosealicense.com/_licenses/epl-1.0.txt +3 -3
  94. data/vendor/choosealicense.com/_licenses/epl-2.0.txt +5 -5
  95. data/vendor/choosealicense.com/_licenses/eupl-1.2.txt +3 -3
  96. data/vendor/choosealicense.com/_licenses/gpl-2.0.txt +3 -3
  97. data/vendor/choosealicense.com/_licenses/gpl-3.0.txt +4 -4
  98. data/vendor/choosealicense.com/_licenses/isc.txt +3 -3
  99. data/vendor/choosealicense.com/_licenses/lgpl-3.0.txt +0 -1
  100. data/vendor/choosealicense.com/_licenses/lppl-1.3c.txt +1 -1
  101. data/vendor/choosealicense.com/_licenses/mit.txt +3 -3
  102. data/vendor/choosealicense.com/_licenses/mpl-2.0.txt +3 -3
  103. data/vendor/choosealicense.com/_licenses/ncsa.txt +24 -24
  104. data/vendor/choosealicense.com/_licenses/odbl-1.0.txt +3 -3
  105. data/vendor/choosealicense.com/_licenses/ofl-1.1.txt +4 -1
  106. data/vendor/choosealicense.com/_licenses/osl-3.0.txt +3 -3
  107. data/vendor/choosealicense.com/_licenses/postgresql.txt +5 -5
  108. data/vendor/choosealicense.com/_licenses/unlicense.txt +3 -3
  109. data/vendor/choosealicense.com/_licenses/upl-1.0.txt +4 -4
  110. data/vendor/choosealicense.com/_licenses/vim.txt +111 -0
  111. data/vendor/choosealicense.com/_licenses/zlib.txt +4 -1
  112. metadata +62 -21
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  RSpec.describe Licensee::Rule do
4
- let(:groups) { %w[permissions conditions limitations] }
5
4
  subject do
6
5
  described_class.new(
7
6
  description: 'description',
@@ -11,6 +10,8 @@ RSpec.describe Licensee::Rule do
11
10
  )
12
11
  end
13
12
 
13
+ let(:groups) { %w[permissions conditions limitations] }
14
+
14
15
  it 'stores properties' do
15
16
  expect(subject.tag).to eql('tag')
16
17
  expect(subject.label).to eql('label')
@@ -30,7 +31,7 @@ RSpec.describe Licensee::Rule do
30
31
 
31
32
  it 'determines the file path' do
32
33
  path = described_class.file_path
33
- expect(File.exist?(path)).to eql(true)
34
+ expect(File.exist?(path)).to be(true)
34
35
  end
35
36
 
36
37
  it 'loads a rule by tag' do
@@ -52,7 +53,7 @@ RSpec.describe Licensee::Rule do
52
53
  end
53
54
 
54
55
  it 'loads all rules' do
55
- expect(described_class.all.count).to eql(16)
56
+ expect(described_class.all.count).to be(17)
56
57
  rule = described_class.all.first
57
58
  expect(rule).to be_a(described_class)
58
59
  expect(rule.tag).to eql('commercial-use')
@@ -61,7 +62,7 @@ RSpec.describe Licensee::Rule do
61
62
  context 'to_h' do
62
63
  let(:hash) { described_class.all.first.to_h }
63
64
  let(:description) do
64
- 'This software and derivatives may be used for commercial purposes.'
65
+ 'The licensed material and derivatives may be used for commercial purposes.'
65
66
  end
66
67
  let(:expected) do
67
68
  {
@@ -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) { 39 }
7
+ let(:hidden_license_count) { 41 }
8
8
 
9
9
  it 'exposes licenses' do
10
10
  expect(described_class.licenses).to be_an(Array)
@@ -14,15 +14,15 @@ RSpec.describe Licensee do
14
14
  end
15
15
 
16
16
  it "detects a project's license" do
17
- expect(Licensee.license(project_path)).to eql(mit_license)
17
+ expect(described_class.license(project_path)).to eql(mit_license)
18
18
  end
19
19
 
20
20
  it "detect a file's license" do
21
- expect(Licensee.license(license_path)).to eql(mit_license)
21
+ expect(described_class.license(license_path)).to eql(mit_license)
22
22
  end
23
23
 
24
24
  describe '.project' do
25
- subject { Licensee.project(project_path) }
25
+ subject { described_class.project(project_path) }
26
26
 
27
27
  it 'inits a project' do
28
28
  expect(subject).to be_a(Licensee::Projects::Project)
@@ -39,19 +39,20 @@ RSpec.describe Licensee do
39
39
 
40
40
  context 'confidence threshold' do
41
41
  it 'exposes the confidence threshold' do
42
- expect(described_class.confidence_threshold).to eql(98)
42
+ expect(described_class.confidence_threshold).to be(98)
43
43
  end
44
44
 
45
45
  it 'exposes the inverse of the confidence threshold' do
46
- expect(described_class.inverse_confidence_threshold).to eql(0.02)
46
+ expect(described_class.inverse_confidence_threshold).to be(0.02)
47
47
  end
48
48
 
49
49
  context 'user overridden' do
50
- before { Licensee.confidence_threshold = 50 }
51
- after { Licensee.confidence_threshold = nil }
50
+ before { described_class.confidence_threshold = 50 }
51
+
52
+ after { described_class.confidence_threshold = nil }
52
53
 
53
54
  it 'lets the user override the confidence threshold' do
54
- expect(described_class.confidence_threshold).to eql(50)
55
+ expect(described_class.confidence_threshold).to be(50)
55
56
  end
56
57
  end
57
58
  end
@@ -131,7 +131,7 @@ RSpec::Matchers.define :be_detected_as do |expected|
131
131
  license_name = expected.meta['spdx-id'] || expected.key
132
132
  similarity = expected.similarity(license_file)
133
133
  content = @license_file.content
134
- msg = "Expected '#{content}' to match the #{license_name} license"
134
+ msg = +"Expected '#{content}' to match the #{license_name} license"
135
135
  msg << " (#{format_percent(similarity)} similarity"
136
136
  msg << "using the #{license_file.matcher} matcher)"
137
137
  end
@@ -141,7 +141,7 @@ RSpec::Matchers.define :be_detected_as do |expected|
141
141
  license_name = expected.meta['spdx-id'] || expected.key
142
142
  similarity = expected.similarity(license_file)
143
143
 
144
- msg = "Expected the content to *not* match the #{license_name} license"
144
+ msg = +"Expected the content to *not* match the #{license_name} license"
145
145
  msg << " (#{format_percent(similarity)} similarity)"
146
146
  end
147
147
 
@@ -16,8 +16,8 @@ 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
20
- msg << ' bundle exec script/hash-licenses'
19
+ msg = 'Did you update a vendored license? Run '.dup
20
+ msg << '`bundle exec script/hash-licenses`. '
21
21
  msg << 'Changes in license hashes must be a MINOR (or MAJOR) bump.'
22
22
  msg
23
23
  end
@@ -31,7 +31,7 @@ RSpec.describe 'vendored licenses' do
31
31
  end
32
32
 
33
33
  it 'has a cached content hash' do
34
- expect(expected_hash).to_not be_nil, hash_change_msg
34
+ expect(expected_hash).not_to be_nil, hash_change_msg
35
35
  end
36
36
 
37
37
  it 'matches the expected content hash' do
@@ -81,7 +81,7 @@ RSpec.describe 'vendored licenses' do
81
81
  let(:content) { content_with_random_words }
82
82
 
83
83
  it 'does not match the license' do
84
- expect(content).to_not be_detected_as(license)
84
+ expect(content).not_to be_detected_as(license)
85
85
  end
86
86
  end
87
87
 
@@ -91,7 +91,7 @@ RSpec.describe 'vendored licenses' do
91
91
  end
92
92
 
93
93
  it 'does not match the license' do
94
- expect(content).to_not be_detected_as(license)
94
+ expect(content).not_to be_detected_as(license)
95
95
  end
96
96
  end
97
97
  end
@@ -30,7 +30,7 @@
30
30
  required: true
31
31
 
32
32
  - name: using
33
- description: 'A list of 3 notable projects using the license with straightforward LICENSE files which serve as examples newcomers can follow and that can be detected by [licensee](https://github.com/benbalter/licensee) in the form of `project_name: license_file_url`'
33
+ description: 'A list of 3 notable projects using the license with straightforward LICENSE files which serve as examples newcomers can follow and that can be detected by [licensee](https://github.com/licensee/licensee) in the form of `project_name: license_file_url`'
34
34
  required: true
35
35
 
36
36
  # Optional fields
@@ -1,14 +1,14 @@
1
1
  permissions:
2
- - description: This software and derivatives may be used for commercial purposes.
2
+ - description: The licensed material and derivatives may be used for commercial purposes.
3
3
  label: Commercial use
4
4
  tag: commercial-use
5
- - description: This software may be modified.
5
+ - description: The licensed material may be modified.
6
6
  label: Modification
7
7
  tag: modifications
8
- - description: This software may be distributed.
8
+ - description: The licensed material may be distributed.
9
9
  label: Distribution
10
10
  tag: distribution
11
- - description: This software may be used and modified in private.
11
+ - description: The licensed material may be used and modified in private.
12
12
  label: Private use
13
13
  tag: private-use
14
14
  - description: This license provides an express grant of patent rights from contributors.
@@ -16,25 +16,28 @@ permissions:
16
16
  tag: patent-use
17
17
 
18
18
  conditions:
19
- - description: A copy of the license and copyright notice must be included with the software.
19
+ - description: A copy of the license and copyright notice must be included with the licensed material.
20
20
  label: License and copyright notice
21
21
  tag: include-copyright
22
- - description: Changes made to the code must be documented.
22
+ - description: A copy of the license and copyright notice must be included with the licensed material in source form, but is not required for binaries.
23
+ label: License and copyright notice for source
24
+ tag: include-copyright--source
25
+ - description: Changes made to the licensed material must be documented.
23
26
  label: State changes
24
27
  tag: document-changes
25
- - description: Source code must be made available when the software is distributed.
28
+ - description: Source code must be made available when the licensed material is distributed.
26
29
  label: Disclose source
27
30
  tag: disclose-source
28
- - description: Users who interact with the software via network are given the right to receive a copy of the source code.
31
+ - description: Users who interact with the licensed material via network are given the right to receive a copy of the source code.
29
32
  label: Network use is distribution
30
33
  tag: network-use-disclose
31
- - description: Modifications must be released under the same license when distributing the software. In some cases a similar or related license may be used.
34
+ - description: Modifications must be released under the same license when distributing the licensed material. In some cases a similar or related license may be used.
32
35
  label: Same license
33
36
  tag: same-license
34
- - description: Modifications of existing files must be released under the same license when distributing the software. In some cases a similar or related license may be used.
37
+ - description: Modifications of existing files must be released under the same license when distributing the licensed material. In some cases a similar or related license may be used.
35
38
  label: Same license (file)
36
39
  tag: same-license--file
37
- - description: Modifications must be released under the same license when distributing the software. In some cases a similar or related license may be used, or this condition may not apply to works that use the software as a library.
40
+ - description: Modifications must be released under the same license when distributing the licensed material. In some cases a similar or related license may be used, or this condition may not apply to works that use the licensed material as a library.
38
41
  label: Same license (library)
39
42
  tag: same-license--library
40
43
 
@@ -48,6 +51,6 @@ limitations:
48
51
  - description: This license explicitly states that it does NOT grant any rights in the patents of contributors.
49
52
  label: Patent use
50
53
  tag: patent-use
51
- - description: The license explicitly states that it does NOT provide any warranty.
54
+ - description: This license explicitly states that it does NOT provide any warranty.
52
55
  label: Warranty
53
56
  tag: warranty
@@ -7,9 +7,9 @@ description: The BSD Zero Clause license goes further than the BSD 2-Clause lice
7
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. You may take the additional step of removing the copyright notice.
8
8
 
9
9
  using:
10
- - PickMeUp: https://github.com/nazar-pc/PickMeUp/blob/master/copying.md
11
- - smoltcp: https://github.com/m-labs/smoltcp/blob/master/LICENSE-0BSD.txt
12
- - Toybox: https://github.com/landley/toybox/blob/master/LICENSE
10
+ PickMeUp: https://github.com/nazar-pc/PickMeUp/blob/master/copying.md
11
+ smoltcp: https://github.com/m-labs/smoltcp/blob/master/LICENSE-0BSD.txt
12
+ Toybox: https://github.com/landley/toybox/blob/master/LICENSE
13
13
 
14
14
  permissions:
15
15
  - commercial-use
@@ -9,12 +9,12 @@ description: A permissive license whose main conditions require preservation of
9
9
 
10
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.
11
11
 
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.
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 in the appendix at the very end of the license text.
13
13
 
14
14
  using:
15
- - Kubernetes: https://github.com/kubernetes/kubernetes/blob/master/LICENSE
16
- - PDF.js: https://github.com/mozilla/pdf.js/blob/master/LICENSE
17
- - Swift: https://github.com/apple/swift/blob/master/LICENSE.txt
15
+ Kubernetes: https://github.com/kubernetes/kubernetes/blob/master/LICENSE
16
+ PDF.js: https://github.com/mozilla/pdf.js/blob/master/LICENSE
17
+ Swift: https://github.com/apple/swift/blob/master/LICENSE.txt
18
18
 
19
19
  permissions:
20
20
  - commercial-use
@@ -5,7 +5,7 @@ redirect_from: /licenses/artistic/
5
5
 
6
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.
7
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. Do not replace the copyright notice (year, author), which refers to the license itself, not the licensed project.
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. Do not replace the copyright notice (year, author), which refers to the license itself, not the licensed project.
9
9
 
10
10
  using:
11
11
 
@@ -9,9 +9,9 @@ description: A permissive license that comes in two variants, the <a href="/lice
9
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. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
10
10
 
11
11
  using:
12
- - go-redis: https://github.com/go-redis/redis/blob/master/LICENSE
13
- - Homebrew: https://github.com/Homebrew/brew/blob/master/LICENSE.txt
14
- - Pony: https://github.com/ponylang/ponyc/blob/master/LICENSE
12
+ go-redis: https://github.com/go-redis/redis/blob/master/LICENSE
13
+ Homebrew: https://github.com/Homebrew/brew/blob/master/LICENSE.txt
14
+ Pony: https://github.com/ponylang/ponyc/blob/master/LICENSE
15
15
 
16
16
  permissions:
17
17
  - commercial-use
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: BSD 3-Clause Clear License
3
3
  spdx-id: BSD-3-Clause-Clear
4
+ nickname: Clear BSD
4
5
 
5
6
  description: A variant of the <a href="/licenses/bsd-3-clause/">BSD 3-Clause License</a> that explicitly does not grant any patent rights.
6
7
 
@@ -8,9 +8,9 @@ description: A permissive license similar to the <a href="/licenses/bsd-2-clause
8
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. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
9
9
 
10
10
  using:
11
- - d3: https://github.com/d3/d3/blob/master/LICENSE
12
- - LevelDB: https://github.com/google/leveldb/blob/master/LICENSE
13
- - Quill: https://github.com/quilljs/quill/blob/develop/LICENSE
11
+ d3: https://github.com/d3/d3/blob/master/LICENSE
12
+ LevelDB: https://github.com/google/leveldb/blob/master/LICENSE
13
+ Quill: https://github.com/quilljs/quill/blob/develop/LICENSE
14
14
 
15
15
  permissions:
16
16
  - commercial-use
@@ -0,0 +1,61 @@
1
+ ---
2
+ title: BSD 4-Clause "Original" or "Old" License
3
+ spdx-id: BSD-4-Clause
4
+
5
+ description: A permissive license similar to the <a href="/licenses/bsd-3-clause/">BSD 3-Clause License</a>, but with an "advertising clause" that requires an acknowledgment of the original source in all advertising material.
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. Replace [project] with the project organization, if any, that sponsors this work.
8
+
9
+ using:
10
+ Choco-solver: https://github.com/chocoteam/choco-solver/blob/master/LICENSE
11
+ PMSPAUR-public: https://github.com/ArthurGodet/PMSPAUR-public/blob/master/LICENSE
12
+ Switchblade: https://github.com/SwitchbladeBot/switchblade/blob/dev/LICENSE
13
+
14
+ permissions:
15
+ - commercial-use
16
+ - modifications
17
+ - distribution
18
+ - private-use
19
+
20
+ conditions:
21
+ - include-copyright
22
+
23
+ limitations:
24
+ - liability
25
+ - warranty
26
+
27
+ ---
28
+
29
+ BSD 4-Clause License
30
+
31
+ Copyright (c) [year], [fullname]
32
+ All rights reserved.
33
+
34
+ Redistribution and use in source and binary forms, with or without
35
+ modification, are permitted provided that the following conditions are met:
36
+
37
+ 1. Redistributions of source code must retain the above copyright notice, this
38
+ list of conditions and the following disclaimer.
39
+
40
+ 2. Redistributions in binary form must reproduce the above copyright notice,
41
+ this list of conditions and the following disclaimer in the documentation
42
+ and/or other materials provided with the distribution.
43
+
44
+ 3. All advertising materials mentioning features or use of this software must
45
+ display the following acknowledgement:
46
+ This product includes software developed by [project].
47
+
48
+ 4. Neither the name of the copyright holder nor the names of its
49
+ contributors may be used to endorse or promote products derived from
50
+ this software without specific prior written permission.
51
+
52
+ THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDER "AS IS" AND ANY EXPRESS OR
53
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
54
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
55
+ EVENT SHALL COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
56
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
57
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
58
+ OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
59
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
60
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
61
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: Boost Software License 1.0
3
3
  spdx-id: BSL-1.0
4
+ hidden: false
4
5
 
5
6
  description: A simple permissive license only requiring preservation of copyright and license notices for source (and not binary) distribution. Licensed works, modifications, and larger works may be distributed under different terms and without source code.
6
7
 
@@ -9,6 +10,9 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
9
10
  note: Boost recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the [Boost Software License FAQ](https://www.boost.org/users/license.html#FAQ).
10
11
 
11
12
  using:
13
+ Boost: https://github.com/boostorg/boost/blob/master/LICENSE_1_0.txt
14
+ Catch2: https://github.com/catchorg/Catch2/blob/master/LICENSE.txt
15
+ DMD: https://github.com/dlang/dmd/blob/master/LICENSE.txt
12
16
 
13
17
  permissions:
14
18
  - commercial-use
@@ -17,7 +21,7 @@ permissions:
17
21
  - private-use
18
22
 
19
23
  conditions:
20
- - include-copyright
24
+ - include-copyright--source
21
25
 
22
26
  limitations:
23
27
  - liability
@@ -7,6 +7,9 @@ description: Permits almost any use subject to providing credit and license noti
7
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. It is also acceptable to solely supply a link to a copy of the license, usually to the <a href='https://creativecommons.org/licenses/by/4.0/'>canonical URL for the license</a>.
8
8
 
9
9
  using:
10
+ caniuse: https://github.com/Fyrd/caniuse/blob/master/LICENSE
11
+ WHATWG HTML standard: https://github.com/whatwg/html/blob/master/LICENSE
12
+ Kubernetes documentation: https://github.com/kubernetes/website/blob/master/LICENSE
10
13
 
11
14
  permissions:
12
15
  - commercial-use
@@ -61,7 +64,7 @@ exhaustive, and do not form part of our licenses.
61
64
  material not subject to the license. This includes other CC-
62
65
  licensed material, or material used under an exception or
63
66
  limitation to copyright. More considerations for licensors:
64
- wiki.creativecommons.org/Considerations_for_licensors
67
+ wiki.creativecommons.org/Considerations_for_licensors
65
68
 
66
69
  Considerations for the public: By using one of our public
67
70
  licenses, a licensor grants the public permission to use the
@@ -76,9 +79,9 @@ exhaustive, and do not form part of our licenses.
76
79
  rights in the material. A licensor may make special requests,
77
80
  such as asking that all changes be marked or described.
78
81
  Although not required by our licenses, you are encouraged to
79
- respect those requests where reasonable. More_considerations
82
+ respect those requests where reasonable. More considerations
80
83
  for the public:
81
- wiki.creativecommons.org/Considerations_for_licensees
84
+ wiki.creativecommons.org/Considerations_for_licensees
82
85
 
83
86
  =======================================================================
84
87
 
@@ -403,21 +406,21 @@ Section 8 -- Interpretation.
403
406
 
404
407
  =======================================================================
405
408
 
406
- Creative Commons is not a party to its public
407
- licenses. Notwithstanding, Creative Commons may elect to apply one of
408
- its public licenses to material it publishes and in those instances
409
- will be considered the “Licensor.” The text of the Creative Commons
410
- public licenses is dedicated to the public domain under the CC0 Public
411
- Domain Dedication. Except for the limited purpose of indicating that
412
- material is shared under a Creative Commons public license or as
413
- otherwise permitted by the Creative Commons policies published at
409
+ Creative Commons is not a party to its public licenses.
410
+ Notwithstanding, Creative Commons may elect to apply one of its public
411
+ licenses to material it publishes and in those instances will be
412
+ considered the “Licensor.” The text of the Creative Commons public
413
+ licenses is dedicated to the public domain under the CC0 Public Domain
414
+ Dedication. Except for the limited purpose of indicating that material
415
+ is shared under a Creative Commons public license or as otherwise
416
+ permitted by the Creative Commons policies published at
414
417
  creativecommons.org/policies, Creative Commons does not authorize the
415
418
  use of the trademark "Creative Commons" or any other trademark or logo
416
419
  of Creative Commons without its prior written consent including,
417
420
  without limitation, in connection with any unauthorized modifications
418
421
  to any of its public licenses or any other arrangements,
419
422
  understandings, or agreements concerning use of licensed material. For
420
- the avoidance of doubt, this paragraph does not form part of the
421
- public licenses.
423
+ the avoidance of doubt, this paragraph does not form part of the public
424
+ licenses.
422
425
 
423
426
  Creative Commons may be contacted at creativecommons.org.