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
@@ -35,7 +35,7 @@ module Licensee
35
35
 
36
36
  def self.name_score(filename)
37
37
  SCORES.each do |pattern, score|
38
- return score if pattern =~ filename
38
+ return score if pattern&.match?(filename)
39
39
  end
40
40
  0.0
41
41
  end
@@ -20,9 +20,7 @@ module Licensee
20
20
  end
21
21
 
22
22
  @root = File.expand_path(args.delete(:search_root) || @dir)
23
- unless valid_search_root?
24
- raise 'Search root must be the project path directory or its ancestor'
25
- end
23
+ raise 'Search root must be the project path directory or its ancestor' unless valid_search_root?
26
24
 
27
25
  super(**args)
28
26
  end
@@ -28,9 +28,11 @@ module Licensee
28
28
 
29
29
  def repository
30
30
  @repository ||= begin
31
- return @raw_repo if @raw_repo.is_a? Rugged::Repository
32
-
33
- Rugged::Repository.new(@raw_repo)
31
+ if @raw_repo.is_a? Rugged::Repository
32
+ @raw_repo
33
+ else
34
+ Rugged::Repository.new(@raw_repo)
35
+ end
34
36
  end
35
37
  rescue Rugged::OSError, Rugged::RepositoryError
36
38
  raise InvalidRepository
@@ -47,7 +49,7 @@ module Licensee
47
49
  repository.lookup(revision)
48
50
  else
49
51
  repository.last_commit
50
- end
52
+ end
51
53
  end
52
54
 
53
55
  MAX_LICENSE_SIZE = 64 * 1024
@@ -28,7 +28,7 @@ module Licensee
28
28
  licenses_without_copyright.first
29
29
  elsif licenses_without_copyright.count > 1
30
30
  Licensee::License.find('other')
31
- end
31
+ end
32
32
  end
33
33
 
34
34
  # Returns an array of detected Licenses
@@ -55,16 +55,17 @@ module Licensee
55
55
 
56
56
  def license_files
57
57
  @license_files ||= begin
58
- return [] if files.empty? || files.nil?
59
-
60
- files = find_files do |n|
61
- Licensee::ProjectFiles::LicenseFile.name_score(n)
58
+ if files.empty? || files.nil?
59
+ []
60
+ else
61
+ files = find_files do |n|
62
+ Licensee::ProjectFiles::LicenseFile.name_score(n)
63
+ end
64
+ files = files.map do |file|
65
+ Licensee::ProjectFiles::LicenseFile.new(load_file(file), file)
66
+ end
67
+ prioritize_lgpl(files)
62
68
  end
63
- files = files.map do |file|
64
- Licensee::ProjectFiles::LicenseFile.new(load_file(file), file)
65
- end
66
-
67
- prioritize_lgpl(files)
68
69
  end
69
70
  end
70
71
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Licensee
4
- VERSION = '9.14.1'
4
+ VERSION = '9.15.0'
5
5
  end
data/licensee.gemspec CHANGED
@@ -21,21 +21,22 @@ Gem::Specification.new do |gem|
21
21
  gem.executables << 'licensee'
22
22
 
23
23
  gem.add_dependency('dotenv', '~> 2.0')
24
- gem.add_dependency('octokit', '~> 4.17')
24
+ gem.add_dependency('octokit', '~> 4.20')
25
25
  gem.add_dependency('reverse_markdown', '~> 1.0')
26
26
  gem.add_dependency('rugged', '>= 0.24', '<2.0')
27
27
  gem.add_dependency('thor', '>= 0.19', '< 2.0')
28
28
 
29
+ gem.add_development_dependency('gem-release', '~> 2.0')
29
30
  gem.add_development_dependency('mustache', '>= 0.9', '< 2.0')
30
31
  gem.add_development_dependency('pry', '~> 0.9')
31
32
  gem.add_development_dependency('rspec', '~> 3.5')
32
- gem.add_development_dependency('rubocop', '~> 0.80')
33
+ gem.add_development_dependency('rubocop', '~> 1.0')
33
34
  gem.add_development_dependency('rubocop-performance', '~> 1.5')
34
- gem.add_development_dependency('rubocop-rspec', '~> 1.36')
35
+ gem.add_development_dependency('rubocop-rspec', '~> 2.0')
35
36
  gem.add_development_dependency('simplecov', '~> 0.16')
36
37
  gem.add_development_dependency('webmock', '~> 3.1')
37
38
 
38
- gem.required_ruby_version = '> 2.3'
39
+ gem.required_ruby_version = '>= 2.5'
39
40
 
40
41
  # ensure the gem is built out of versioned files
41
42
  gem.files = Dir[
data/spec/fixture_spec.rb CHANGED
@@ -15,7 +15,7 @@ RSpec.describe 'fixture test' do
15
15
  let(:matcher) { license_file&.matcher }
16
16
 
17
17
  it 'has an expected license in fixtures-licenses.yml' do
18
- msg = 'Expected an entry in `'.dup
18
+ msg = +'Expected an entry in `'
19
19
  msg << fixture_path('fixtures-licenses.yml')
20
20
  msg << "` for the `#{fixture}` fixture. Please run "
21
21
  msg << 'script/dump-fixture-licenses and confirm the output.'
@@ -27,7 +27,7 @@ RSpec.describe 'fixture test' do
27
27
  Licensee::License.find(expectations['key'])
28
28
  else
29
29
  none
30
- end
30
+ end
31
31
 
32
32
  expect(subject.license).to eql(expected)
33
33
  end
@@ -0,0 +1,27 @@
1
+ Copyright 2010-2020 Mike Bostock
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification,
5
+ are permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+
10
+ * Redistributions in binary form must reproduce the above copyright notice,
11
+ this list of conditions and the following disclaimer in the documentation
12
+ and/or other materials provided with the distribution.
13
+
14
+ * Neither the name of the author nor the names of contributors may be used to
15
+ endorse or promote products derived from this software without specific prior
16
+ written permission.
17
+
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
22
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,173 @@
1
+ ## creative commons
2
+
3
+ # Attribution-ShareAlike 4.0 International
4
+
5
+ Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
6
+
7
+ ### Using Creative Commons Public Licenses
8
+
9
+ Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
10
+
11
+ * __Considerations for licensors:__ Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. [More considerations for licensors](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensors).
12
+
13
+ * __Considerations for the public:__ By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. [More considerations for the public](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensees).
14
+
15
+ ## Creative Commons Attribution-ShareAlike 4.0 International Public License
16
+
17
+ By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
18
+
19
+ ### Section 1 – Definitions.
20
+
21
+ a. __Adapted Material__ means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
22
+
23
+ b. __Adapter's License__ means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
24
+
25
+ c. __BY-SA Compatible License__ means a license listed at [creativecommons.org/compatiblelicenses](http://creativecommons.org/compatiblelicenses), approved by Creative Commons as essentially the equivalent of this Public License.
26
+
27
+ d. __Copyright and Similar Rights__ means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
28
+
29
+ e. __Effective Technological Measures__ means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
30
+
31
+ f. __Exceptions and Limitations__ means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
32
+
33
+ g. __License Elements__ means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike.
34
+
35
+ h. __Licensed Material__ means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
36
+
37
+ i. __Licensed Rights__ means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
38
+
39
+ j. __Licensor__ means the individual(s) or entity(ies) granting rights under this Public License.
40
+
41
+ k. __Share__ means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
42
+
43
+ l. __Sui Generis Database Rights__ means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
44
+
45
+ m. __You__ means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
46
+
47
+ ### Section 2 – Scope.
48
+
49
+ a. ___License grant.___
50
+
51
+ 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
52
+
53
+ A. reproduce and Share the Licensed Material, in whole or in part; and
54
+
55
+ B. produce, reproduce, and Share Adapted Material.
56
+
57
+ 2. __Exceptions and Limitations.__ For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
58
+
59
+ 3. __Term.__ The term of this Public License is specified in Section 6(a).
60
+
61
+ 4. __Media and formats; technical modifications allowed.__ The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
62
+
63
+ 5. __Downstream recipients.__
64
+
65
+ A. __Offer from the Licensor – Licensed Material.__ Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
66
+
67
+ B. __Additional offer from the Licensor – Adapted Material.__ Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply.
68
+
69
+ C. __No downstream restrictions.__ You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
70
+
71
+ 6. __No endorsement.__ Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
72
+
73
+ b. ___Other rights.___
74
+
75
+ 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
76
+
77
+ 2. Patent and trademark rights are not licensed under this Public License.
78
+
79
+ 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
80
+
81
+ ### Section 3 – License Conditions.
82
+
83
+ Your exercise of the Licensed Rights is expressly made subject to the following conditions.
84
+
85
+ a. ___Attribution.___
86
+
87
+ 1. If You Share the Licensed Material (including in modified form), You must:
88
+
89
+ A. retain the following if it is supplied by the Licensor with the Licensed Material:
90
+
91
+ i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
92
+
93
+ ii. a copyright notice;
94
+
95
+ iii. a notice that refers to this Public License;
96
+
97
+ iv. a notice that refers to the disclaimer of warranties;
98
+
99
+ v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
100
+
101
+ B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
102
+
103
+ C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
104
+
105
+ 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
106
+
107
+ 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
108
+
109
+ b. ___ShareAlike.___
110
+
111
+ In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.
112
+
113
+ 1. The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License.
114
+
115
+ 2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.
116
+
117
+ 3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.
118
+
119
+ ### Section 4 – Sui Generis Database Rights.
120
+
121
+ Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
122
+
123
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
124
+
125
+ b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and
126
+
127
+ c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
128
+
129
+ For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
130
+
131
+ ### Section 5 – Disclaimer of Warranties and Limitation of Liability.
132
+
133
+ a. __Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.__
134
+
135
+ b. __To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.__
136
+
137
+ c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
138
+
139
+ ### Section 6 – Term and Termination.
140
+
141
+ a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
142
+
143
+ b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
144
+
145
+ 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
146
+
147
+ 2. upon express reinstatement by the Licensor.
148
+
149
+ For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
150
+
151
+ c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
152
+
153
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
154
+
155
+ ### Section 7 – Other Terms and Conditions.
156
+
157
+ a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
158
+
159
+ b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
160
+
161
+ ### Section 8 – Interpretation.
162
+
163
+ a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
164
+
165
+ b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
166
+
167
+ c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
168
+
169
+ d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
170
+
171
+ > Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” The text of the Creative Commons public licenses is dedicated to the public domain under the [CC0 Public Domain Dedication](https://creativecommons.org/publicdomain/zero/1.0/legalcode). Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at [creativecommons.org/policies](http://creativecommons.org/policies), Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
172
+ >
173
+ > Creative Commons may be contacted at creativecommons.org.
@@ -0,0 +1,425 @@
1
+ Attribution-ShareAlike 4.0 International
2
+
3
+ =======================================================================
4
+
5
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
6
+ does not provide legal services or legal advice. Distribution of
7
+ Creative Commons public licenses does not create a lawyer-client or
8
+ other relationship. Creative Commons makes its licenses and related
9
+ information available on an "as-is" basis. Creative Commons gives no
10
+ warranties regarding its licenses, any material licensed under their
11
+ terms and conditions, or any related information. Creative Commons
12
+ disclaims all liability for damages resulting from their use to the
13
+ fullest extent possible.
14
+
15
+ Using Creative Commons Public Licenses
16
+
17
+ Creative Commons public licenses provide a standard set of terms and
18
+ conditions that creators and other rights holders may use to share
19
+ original works of authorship and other material subject to copyright
20
+ and certain other rights specified in the public license below. The
21
+ following considerations are for informational purposes only, are not
22
+ exhaustive, and do not form part of our licenses.
23
+
24
+ Considerations for licensors: Our public licenses are
25
+ intended for use by those authorized to give the public
26
+ permission to use material in ways otherwise restricted by
27
+ copyright and certain other rights. Our licenses are
28
+ irrevocable. Licensors should read and understand the terms
29
+ and conditions of the license they choose before applying it.
30
+ Licensors should also secure all rights necessary before
31
+ applying our licenses so that the public can reuse the
32
+ material as expected. Licensors should clearly mark any
33
+ material not subject to the license. This includes other CC-
34
+ licensed material, or material used under an exception or
35
+ limitation to copyright. More considerations for licensors:
36
+ wiki.creativecommons.org/Considerations_for_licensors
37
+
38
+ Considerations for the public: By using one of our public
39
+ licenses, a licensor grants the public permission to use the
40
+ licensed material under specified terms and conditions. If
41
+ the licensor's permission is not necessary for any reason--for
42
+ example, because of any applicable exception or limitation to
43
+ copyright--then that use is not regulated by the license. Our
44
+ licenses grant only permissions under copyright and certain
45
+ other rights that a licensor has authority to grant. Use of
46
+ the licensed material may still be restricted for other
47
+ reasons, including because others have copyright or other
48
+ rights in the material. A licensor may make special requests,
49
+ such as asking that all changes be marked or described.
50
+ Although not required by our licenses, you are encouraged to
51
+ respect those requests where reasonable. More_considerations
52
+ for the public:
53
+ wiki.creativecommons.org/Considerations_for_licensees
54
+
55
+ =======================================================================
56
+
57
+ Creative Commons Attribution-ShareAlike 4.0 International Public
58
+ License
59
+
60
+ By exercising the Licensed Rights (defined below), You accept and agree
61
+ to be bound by the terms and conditions of this Creative Commons
62
+ Attribution-ShareAlike 4.0 International Public License ("Public
63
+ License"). To the extent this Public License may be interpreted as a
64
+ contract, You are granted the Licensed Rights in consideration of Your
65
+ acceptance of these terms and conditions, and the Licensor grants You
66
+ such rights in consideration of benefits the Licensor receives from
67
+ making the Licensed Material available under these terms and
68
+ conditions.
69
+
70
+
71
+ Section 1 -- Definitions.
72
+
73
+ a. Adapted Material means material subject to Copyright and Similar
74
+ Rights that is derived from or based upon the Licensed Material
75
+ and in which the Licensed Material is translated, altered,
76
+ arranged, transformed, or otherwise modified in a manner requiring
77
+ permission under the Copyright and Similar Rights held by the
78
+ Licensor. For purposes of this Public License, where the Licensed
79
+ Material is a musical work, performance, or sound recording,
80
+ Adapted Material is always produced where the Licensed Material is
81
+ synched in timed relation with a moving image.
82
+
83
+ b. Adapter's License means the license You apply to Your Copyright
84
+ and Similar Rights in Your contributions to Adapted Material in
85
+ accordance with the terms and conditions of this Public License.
86
+
87
+ c. BY-SA Compatible License means a license listed at
88
+ creativecommons.org/compatiblelicenses, approved by Creative
89
+ Commons as essentially the equivalent of this Public License.
90
+
91
+ d. Copyright and Similar Rights means copyright and/or similar rights
92
+ closely related to copyright including, without limitation,
93
+ performance, broadcast, sound recording, and Sui Generis Database
94
+ Rights, without regard to how the rights are labeled or
95
+ categorized. For purposes of this Public License, the rights
96
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
97
+ Rights.
98
+
99
+ e. Effective Technological Measures means those measures that, in the
100
+ absence of proper authority, may not be circumvented under laws
101
+ fulfilling obligations under Article 11 of the WIPO Copyright
102
+ Treaty adopted on December 20, 1996, and/or similar international
103
+ agreements.
104
+
105
+ f. Exceptions and Limitations means fair use, fair dealing, and/or
106
+ any other exception or limitation to Copyright and Similar Rights
107
+ that applies to Your use of the Licensed Material.
108
+
109
+ g. License Elements means the license attributes listed in the name
110
+ of a Creative Commons Public License. The License Elements of this
111
+ Public License are Attribution and ShareAlike.
112
+
113
+ h. Licensed Material means the artistic or literary work, database,
114
+ or other material to which the Licensor applied this Public
115
+ License.
116
+
117
+ i. Licensed Rights means the rights granted to You subject to the
118
+ terms and conditions of this Public License, which are limited to
119
+ all Copyright and Similar Rights that apply to Your use of the
120
+ Licensed Material and that the Licensor has authority to license.
121
+
122
+ j. Licensor means the individual(s) or entity(ies) granting rights
123
+ under this Public License.
124
+
125
+ k. Share means to provide material to the public by any means or
126
+ process that requires permission under the Licensed Rights, such
127
+ as reproduction, public display, public performance, distribution,
128
+ dissemination, communication, or importation, and to make material
129
+ available to the public including in ways that members of the
130
+ public may access the material from a place and at a time
131
+ individually chosen by them.
132
+
133
+ l. Sui Generis Database Rights means rights other than copyright
134
+ resulting from Directive 96/9/EC of the European Parliament and of
135
+ the Council of 11 March 1996 on the legal protection of databases,
136
+ as amended and/or succeeded, as well as other essentially
137
+ equivalent rights anywhere in the world.
138
+
139
+ m. You means the individual or entity exercising the Licensed Rights
140
+ under this Public License. Your has a corresponding meaning.
141
+
142
+
143
+ Section 2 -- Scope.
144
+
145
+ a. License grant.
146
+
147
+ 1. Subject to the terms and conditions of this Public License,
148
+ the Licensor hereby grants You a worldwide, royalty-free,
149
+ non-sublicensable, non-exclusive, irrevocable license to
150
+ exercise the Licensed Rights in the Licensed Material to:
151
+
152
+ a. reproduce and Share the Licensed Material, in whole or
153
+ in part; and
154
+
155
+ b. produce, reproduce, and Share Adapted Material.
156
+
157
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
158
+ Exceptions and Limitations apply to Your use, this Public
159
+ License does not apply, and You do not need to comply with
160
+ its terms and conditions.
161
+
162
+ 3. Term. The term of this Public License is specified in Section
163
+ 6(a).
164
+
165
+ 4. Media and formats; technical modifications allowed. The
166
+ Licensor authorizes You to exercise the Licensed Rights in
167
+ all media and formats whether now known or hereafter created,
168
+ and to make technical modifications necessary to do so. The
169
+ Licensor waives and/or agrees not to assert any right or
170
+ authority to forbid You from making technical modifications
171
+ necessary to exercise the Licensed Rights, including
172
+ technical modifications necessary to circumvent Effective
173
+ Technological Measures. For purposes of this Public License,
174
+ simply making modifications authorized by this Section 2(a)
175
+ (4) never produces Adapted Material.
176
+
177
+ 5. Downstream recipients.
178
+
179
+ a. Offer from the Licensor -- Licensed Material. Every
180
+ recipient of the Licensed Material automatically
181
+ receives an offer from the Licensor to exercise the
182
+ Licensed Rights under the terms and conditions of this
183
+ Public License.
184
+
185
+ b. Additional offer from the Licensor -- Adapted Material.
186
+ Every recipient of Adapted Material from You
187
+ automatically receives an offer from the Licensor to
188
+ exercise the Licensed Rights in the Adapted Material
189
+ under the conditions of the Adapter's License You apply.
190
+
191
+ c. No downstream restrictions. You may not offer or impose
192
+ any additional or different terms or conditions on, or
193
+ apply any Effective Technological Measures to, the
194
+ Licensed Material if doing so restricts exercise of the
195
+ Licensed Rights by any recipient of the Licensed
196
+ Material.
197
+
198
+ 6. No endorsement. Nothing in this Public License constitutes or
199
+ may be construed as permission to assert or imply that You
200
+ are, or that Your use of the Licensed Material is, connected
201
+ with, or sponsored, endorsed, or granted official status by,
202
+ the Licensor or others designated to receive attribution as
203
+ provided in Section 3(a)(1)(A)(i).
204
+
205
+ b. Other rights.
206
+
207
+ 1. Moral rights, such as the right of integrity, are not
208
+ licensed under this Public License, nor are publicity,
209
+ privacy, and/or other similar personality rights; however, to
210
+ the extent possible, the Licensor waives and/or agrees not to
211
+ assert any such rights held by the Licensor to the limited
212
+ extent necessary to allow You to exercise the Licensed
213
+ Rights, but not otherwise.
214
+
215
+ 2. Patent and trademark rights are not licensed under this
216
+ Public License.
217
+
218
+ 3. To the extent possible, the Licensor waives any right to
219
+ collect royalties from You for the exercise of the Licensed
220
+ Rights, whether directly or through a collecting society
221
+ under any voluntary or waivable statutory or compulsory
222
+ licensing scheme. In all other cases the Licensor expressly
223
+ reserves any right to collect such royalties.
224
+
225
+
226
+ Section 3 -- License Conditions.
227
+
228
+ Your exercise of the Licensed Rights is expressly made subject to the
229
+ following conditions.
230
+
231
+ a. Attribution.
232
+
233
+ 1. If You Share the Licensed Material (including in modified
234
+ form), You must:
235
+
236
+ a. retain the following if it is supplied by the Licensor
237
+ with the Licensed Material:
238
+
239
+ i. identification of the creator(s) of the Licensed
240
+ Material and any others designated to receive
241
+ attribution, in any reasonable manner requested by
242
+ the Licensor (including by pseudonym if
243
+ designated);
244
+
245
+ ii. a copyright notice;
246
+
247
+ iii. a notice that refers to this Public License;
248
+
249
+ iv. a notice that refers to the disclaimer of
250
+ warranties;
251
+
252
+ v. a URI or hyperlink to the Licensed Material to the
253
+ extent reasonably practicable;
254
+
255
+ b. indicate if You modified the Licensed Material and
256
+ retain an indication of any previous modifications; and
257
+
258
+ c. indicate the Licensed Material is licensed under this
259
+ Public License, and include the text of, or the URI or
260
+ hyperlink to, this Public License.
261
+
262
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
263
+ reasonable manner based on the medium, means, and context in
264
+ which You Share the Licensed Material. For example, it may be
265
+ reasonable to satisfy the conditions by providing a URI or
266
+ hyperlink to a resource that includes the required
267
+ information.
268
+
269
+ 3. If requested by the Licensor, You must remove any of the
270
+ information required by Section 3(a)(1)(A) to the extent
271
+ reasonably practicable.
272
+
273
+ b. ShareAlike.
274
+
275
+ In addition to the conditions in Section 3(a), if You Share
276
+ Adapted Material You produce, the following conditions also apply.
277
+
278
+ 1. The Adapter's License You apply must be a Creative Commons
279
+ license with the same License Elements, this version or
280
+ later, or a BY-SA Compatible License.
281
+
282
+ 2. You must include the text of, or the URI or hyperlink to, the
283
+ Adapter's License You apply. You may satisfy this condition
284
+ in any reasonable manner based on the medium, means, and
285
+ context in which You Share Adapted Material.
286
+
287
+ 3. You may not offer or impose any additional or different terms
288
+ or conditions on, or apply any Effective Technological
289
+ Measures to, Adapted Material that restrict exercise of the
290
+ rights granted under the Adapter's License You apply.
291
+
292
+
293
+ Section 4 -- Sui Generis Database Rights.
294
+
295
+ Where the Licensed Rights include Sui Generis Database Rights that
296
+ apply to Your use of the Licensed Material:
297
+
298
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
299
+ to extract, reuse, reproduce, and Share all or a substantial
300
+ portion of the contents of the database;
301
+
302
+ b. if You include all or a substantial portion of the database
303
+ contents in a database in which You have Sui Generis Database
304
+ Rights, then the database in which You have Sui Generis Database
305
+ Rights (but not its individual contents) is Adapted Material,
306
+
307
+ including for purposes of Section 3(b); and
308
+ c. You must comply with the conditions in Section 3(a) if You Share
309
+ all or a substantial portion of the contents of the database.
310
+
311
+ For the avoidance of doubt, this Section 4 supplements and does not
312
+ replace Your obligations under this Public License where the Licensed
313
+ Rights include other Copyright and Similar Rights.
314
+
315
+
316
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
317
+
318
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
319
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
320
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
321
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
322
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
323
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
324
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
325
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
326
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
327
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
328
+
329
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
330
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
331
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
332
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
333
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
334
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
335
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
336
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
337
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
338
+
339
+ c. The disclaimer of warranties and limitation of liability provided
340
+ above shall be interpreted in a manner that, to the extent
341
+ possible, most closely approximates an absolute disclaimer and
342
+ waiver of all liability.
343
+
344
+
345
+ Section 6 -- Term and Termination.
346
+
347
+ a. This Public License applies for the term of the Copyright and
348
+ Similar Rights licensed here. However, if You fail to comply with
349
+ this Public License, then Your rights under this Public License
350
+ terminate automatically.
351
+
352
+ b. Where Your right to use the Licensed Material has terminated under
353
+ Section 6(a), it reinstates:
354
+
355
+ 1. automatically as of the date the violation is cured, provided
356
+ it is cured within 30 days of Your discovery of the
357
+ violation; or
358
+
359
+ 2. upon express reinstatement by the Licensor.
360
+
361
+ For the avoidance of doubt, this Section 6(b) does not affect any
362
+ right the Licensor may have to seek remedies for Your violations
363
+ of this Public License.
364
+
365
+ c. For the avoidance of doubt, the Licensor may also offer the
366
+ Licensed Material under separate terms or conditions or stop
367
+ distributing the Licensed Material at any time; however, doing so
368
+ will not terminate this Public License.
369
+
370
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
371
+ License.
372
+
373
+
374
+ Section 7 -- Other Terms and Conditions.
375
+
376
+ a. The Licensor shall not be bound by any additional or different
377
+ terms or conditions communicated by You unless expressly agreed.
378
+
379
+ b. Any arrangements, understandings, or agreements regarding the
380
+ Licensed Material not stated herein are separate from and
381
+ independent of the terms and conditions of this Public License.
382
+
383
+
384
+ Section 8 -- Interpretation.
385
+
386
+ a. For the avoidance of doubt, this Public License does not, and
387
+ shall not be interpreted to, reduce, limit, restrict, or impose
388
+ conditions on any use of the Licensed Material that could lawfully
389
+ be made without permission under this Public License.
390
+
391
+ b. To the extent possible, if any provision of this Public License is
392
+ deemed unenforceable, it shall be automatically reformed to the
393
+ minimum extent necessary to make it enforceable. If the provision
394
+ cannot be reformed, it shall be severed from this Public License
395
+ without affecting the enforceability of the remaining terms and
396
+ conditions.
397
+
398
+ c. No term or condition of this Public License will be waived and no
399
+ failure to comply consented to unless expressly agreed to by the
400
+ Licensor.
401
+
402
+ d. Nothing in this Public License constitutes or may be interpreted
403
+ as a limitation upon, or waiver of, any privileges and immunities
404
+ that apply to the Licensor or You, including from the legal
405
+ processes of any jurisdiction or authority.
406
+
407
+
408
+ =======================================================================
409
+
410
+ Creative Commons is not a party to its public licenses.
411
+ Notwithstanding, Creative Commons may elect to apply one of its public
412
+ licenses to material it publishes and in those instances will be
413
+ considered the "Licensor." Except for the limited purpose of indicating
414
+ that material is shared under a Creative Commons public license or as
415
+ otherwise permitted by the Creative Commons policies published at
416
+ creativecommons.org/policies, Creative Commons does not authorize the
417
+ use of the trademark "Creative Commons" or any other trademark or logo
418
+ of Creative Commons without its prior written consent including,
419
+ without limitation, in connection with any unauthorized modifications
420
+ to any of its public licenses or any other arrangements,
421
+ understandings, or agreements concerning use of licensed material. For
422
+ the avoidance of doubt, this paragraph does not form part of the public
423
+ licenses.
424
+
425
+ Creative Commons may be contacted at creativecommons.org.