metadata-json-lint 2.2.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +8 -0
  3. data/.github/workflows/release.yml +32 -0
  4. data/.github/workflows/test.yml +36 -0
  5. data/.gitignore +2 -1
  6. data/.rubocop.yml +7 -1
  7. data/CHANGELOG.md +55 -4
  8. data/Gemfile +8 -1
  9. data/HISTORY.md +107 -0
  10. data/LICENSE +174 -9
  11. data/README.md +65 -1
  12. data/Rakefile +26 -1
  13. data/bin/metadata-json-lint +1 -1
  14. data/lib/metadata-json-lint/schema.rb +2 -3
  15. data/lib/metadata_json_lint.rb +14 -0
  16. data/metadata-json-lint.gemspec +6 -13
  17. data/spec/spec_helper.rb +24 -0
  18. data/tests/bad_license/Rakefile +1 -1
  19. data/tests/broken/Rakefile +1 -1
  20. data/tests/duplicate-dep/Rakefile +1 -1
  21. data/tests/duplicate-requirement/Rakefile +2 -0
  22. data/tests/duplicate-requirement/expected +1 -0
  23. data/tests/duplicate-requirement/metadata.json +87 -0
  24. data/tests/json_format/Rakefile +1 -1
  25. data/tests/long_summary/Rakefile +1 -1
  26. data/tests/missing_version_requirement/Rakefile +1 -1
  27. data/tests/mixed_version_syntax/Rakefile +1 -1
  28. data/tests/multiple_problems/Rakefile +1 -1
  29. data/tests/no_dependencies/Rakefile +1 -1
  30. data/tests/no_pe/Rakefile +1 -1
  31. data/tests/no_version_range/Rakefile +1 -1
  32. data/tests/non_array_requirements/Rakefile +1 -1
  33. data/tests/noname/Rakefile +1 -1
  34. data/tests/open_ended_dependency/Rakefile +1 -1
  35. data/tests/perfect/Rakefile +1 -1
  36. data/tests/proprietary/Rakefile +1 -1
  37. data/tests/rake_chaining/Rakefile +1 -1
  38. data/tests/rake_global_options/Rakefile +1 -1
  39. data/tests/rake_multiple_json_options/Rakefile +1 -1
  40. data/tests/requirements_eol_version/Rakefile +1 -1
  41. data/tests/tags_no_array/Rakefile +1 -1
  42. data/tests/tags_with_array/Rakefile +1 -1
  43. data/tests/test.sh +3 -0
  44. data/tests/types/Rakefile +1 -1
  45. metadata +33 -31
  46. data/.travis.yml +0 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18ae05b2da0e3412d155e0ef98619401e66103b491592d0bf39662ef779ff510
4
- data.tar.gz: 1e072d693b6a7f3f1f819b81584a0766da507a18526195d7111617fcd1404cfd
3
+ metadata.gz: 88296907a8034712ed315c9673b18f7da0f6315246be651f2e62a59b32192ac9
4
+ data.tar.gz: e5d6b34c8b897688cb062121657fed5c02aa5cc8c28277896fe93833c4e68d82
5
5
  SHA512:
6
- metadata.gz: a6e20d329944205d3e8c24cc86176feca9a94609dfba8aabce7bf92c1529518ca51b6d24ef874df397b49f8e8769df3694f41983696a316b0cb1f06b8721c371
7
- data.tar.gz: cbf678ed70b94343ea6f123104bbc8471888b32c65fa4b40e7189adce53d679d879c4a1393afe11f8a5968622c83b331ab862a08583c862b188ac03dfc689ed3
6
+ metadata.gz: '0008127ce7d0379fd7f5aa394fb4d0f346c4868a71dc6875598af8aedbb005927d0f6ea050bdf143b508e812915c116143df25e647db63c05f8f6af8f6bb3ec3'
7
+ data.tar.gz: 39e8387ed09f30c2a4bc5edc22babc68b13b0ab16ec4753c6973f97509837532ca091f39df19b4826742b180725b13238cd4c5c09555f284ceed614b5d3a7fb4
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "13:00"
8
+ open-pull-requests-limit: 10
@@ -0,0 +1,32 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - '*'
7
+
8
+ jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
+ if: github.repository_owner == 'voxpupuli'
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - name: Install Ruby 3.0
15
+ uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: '3.0'
18
+ env:
19
+ BUNDLE_WITHOUT: release
20
+ - name: Build gem
21
+ run: gem build *.gemspec
22
+ - name: Publish gem to rubygems.org
23
+ run: gem push *.gem
24
+ env:
25
+ GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
26
+ - name: Setup GitHub packages access
27
+ run: |
28
+ mkdir -p ~/.gem
29
+ echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
30
+ chmod 0600 ~/.gem/credentials
31
+ - name: Publish gem to GitHub packages
32
+ run: gem push --key github --host https://rubygems.pkg.github.com/voxpupuli *.gem
@@ -0,0 +1,36 @@
1
+ name: Test
2
+
3
+ on:
4
+ - pull_request
5
+ - push
6
+
7
+ env:
8
+ BUNDLE_WITHOUT: release
9
+
10
+ jobs:
11
+ rspec:
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ fail-fast: true
15
+ matrix:
16
+ include:
17
+ - ruby: "2.4"
18
+ - ruby: "2.5"
19
+ - ruby: "2.6"
20
+ - ruby: "2.7"
21
+ - ruby: "3.0"
22
+ coverage: "yes"
23
+ env:
24
+ COVERAGE: ${{ matrix.coverage }}
25
+ name: RSpec - Ruby ${{ matrix.ruby }}
26
+ steps:
27
+ - uses: actions/checkout@v2
28
+ - name: Install Ruby ${{ matrix.ruby }}
29
+ uses: ruby/setup-ruby@v1
30
+ with:
31
+ ruby-version: ${{ matrix.ruby }}
32
+ bundler-cache: true
33
+ - name: spec tests
34
+ run: bundle exec rake test
35
+ - name: Verify gem builds
36
+ run: gem build *.gemspec
data/.gitignore CHANGED
@@ -4,4 +4,5 @@ Gemfile.lock
4
4
  /.bundle
5
5
  /vendor
6
6
  tests/*/last_*output
7
- .idea/
7
+ .idea/
8
+ .vendor/
data/.rubocop.yml CHANGED
@@ -26,4 +26,10 @@ Metrics/PerceivedComplexity:
26
26
  Enabled: false
27
27
 
28
28
  Metrics/ModuleLength:
29
- Max: 175
29
+ Max: 185
30
+
31
+ Style/TrailingCommaInHashLiteral:
32
+ EnforcedStyleForMultiline: consistent_comma
33
+
34
+ Style/AccessModifierDeclarations:
35
+ Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,17 +1,52 @@
1
- # Change Log
1
+ # Changelog
2
2
 
3
- All notable changes to this project will be documented in this file.
3
+ ## [3.0.1](https://github.com/voxpupuli/metadata-json-lint/tree/3.0.1) (2021-08-13)
4
4
 
5
- The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
- and this project adheres to [Semantic Versioning](http://semver.org/).
5
+ [Full Changelog](https://github.com/voxpupuli/metadata-json-lint/compare/3.0.0...3.0.1)
6
+
7
+ **Closed issues:**
8
+
9
+ - For the license: missing a file and license headers in source files [\#115](https://github.com/voxpupuli/metadata-json-lint/issues/115)
10
+ - one test fails against ruby 2.7 when semantic\_puppet is not present [\#114](https://github.com/voxpupuli/metadata-json-lint/issues/114)
11
+ - Missing possibility to set options via spec\_helper.rb like rspec [\#18](https://github.com/voxpupuli/metadata-json-lint/issues/18)
12
+
13
+ **Merged pull requests:**
14
+
15
+ - Update rubocop requirement from ~\> 0.50.0 to ~\> 0.57.2 [\#117](https://github.com/voxpupuli/metadata-json-lint/pull/117) ([dependabot[bot]](https://github.com/apps/dependabot))
16
+ - Add GitHub actions + badges [\#116](https://github.com/voxpupuli/metadata-json-lint/pull/116) ([bastelfreak](https://github.com/bastelfreak))
17
+
18
+ ## [3.0.0](https://github.com/voxpupuli/metadata-json-lint/tree/3.0.0) (2020-11-24)
19
+
20
+ [Full Changelog](https://github.com/voxpupuli/metadata-json-lint/compare/2.4.0...3.0.0)
21
+
22
+ **Merged pull requests:**
23
+
24
+ - Require Ruby 2.1 and drop post\_install\_message [\#112](https://github.com/voxpupuli/metadata-json-lint/pull/112) ([ekohl](https://github.com/ekohl))
25
+
26
+ ## [2.4.0](https://github.com/voxpupuli/metadata-json-lint/tree/2.4.0) (2020-06-12)
27
+
28
+ [Full Changelog](https://github.com/voxpupuli/metadata-json-lint/compare/2.3.0...2.4.0)
29
+
30
+ **Merged pull requests:**
31
+
32
+ - Add ruby 2.7 to test matrix [\#110](https://github.com/voxpupuli/metadata-json-lint/pull/110) ([DavidS](https://github.com/DavidS))
33
+ - Publish gem only on one rvm job [\#109](https://github.com/voxpupuli/metadata-json-lint/pull/109) ([bastelfreak](https://github.com/bastelfreak))
34
+
35
+ ## 2.3.0
36
+
37
+ * Add duplicate testing in requirements list
38
+ * Fix wrong license file content so GitHub can properly detect it
39
+ * Fix a typo in the README.md
7
40
 
8
41
  ## 2.2.0
42
+
9
43
  * Validate Puppet version_requirement [#99](https://github.com/voxpupuli/metadata-json-lint/issues/99)
10
44
  * Add optional check `--strict-puppet-version` to validate the Puppet Agent Version is not EOL or open ended [#100](https://github.com/voxpupuli/metadata-json-lint/pull/100)
11
45
 
12
46
  ## 2.1.0
13
47
 
14
48
  ### Changes
49
+
15
50
  * Improve rendering of post\_install message by trimming unnecessary leading
16
51
  spaces [#89](https://github.com/voxpupuli/metadata-json-lint/pull/89)
17
52
  * Fail when checking version requirements if the version range is empty
@@ -20,6 +55,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
20
55
  [#93](https://github.com/voxpupuli/metadata-json-lint/pull/93)
21
56
 
22
57
  ### Fixed
58
+
23
59
  * Prevent metadata-json-lint from crashing when the `requirements` field does
24
60
  not contain an array
25
61
  [#94](https://github.com/voxpupuli/metadata-json-lint/pull/94)
@@ -30,15 +66,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
30
66
  ## 2.0.2
31
67
 
32
68
  ### Changes
69
+
33
70
  * Make SemanticPuppet completely optional and remove dependency on Puppet [#86](https://github.com/voxpupuli/metadata-json-lint/pull/86)
34
71
  * Only log open dependency warning with --strict-dependencies [#78](https://github.com/voxpupuli/metadata-json-lint/pull/78)
35
72
 
36
73
  ### Fixed
74
+
37
75
  * Fix readme for gemfile usage [#84](https://github.com/voxpupuli/metadata-json-lint/pull/84)
38
76
 
39
77
  ## 2.0.1
40
78
 
41
79
  ### Changes
80
+
42
81
  * Puppet 4.9.0 and newer uses the vendored `semantic_puppet` packaged with Puppet.
43
82
  * If using Puppet 4.8.x and earlier, adding `semantic_puppet` to your Gemfile is required
44
83
  as the vendored `semantic_puppet` was not packaged with Puppet prior to `4.9.0`
@@ -47,40 +86,48 @@ as the vendored `semantic_puppet` was not packaged with Puppet prior to `4.9.0`
47
86
  ## 2.0.0
48
87
 
49
88
  ### Changes
89
+
50
90
  * The `semantic_puppet` gem is no longer included as a runtime dependency due to conflicts with Puppet 5.x libraries that break the `puppet module` command. As such, `semantic_puppet` must be added to a user's Gemfile in Puppet <= 4.x. See [Installation](https://github.com/voxpupuli/metadata-json-lint#installation) docs for more info
51
91
  * `metadata-json-lint` now officially only supports Ruby >= 2.0.0
52
92
 
53
93
  ### Fixed
94
+
54
95
  * Fix puppet 5.x `semantic_puppet` conflicts ([#79](https://github.com/voxpupuli/metadata-json-lint/issues/79))
55
96
  * Clarify Ruby >= 2.x only support ([#74](https://github.com/voxpupuli/metadata-json-lint/issues/74))
56
97
 
57
98
  ## 1.2.2
58
99
 
59
100
  ### Fixed
101
+
60
102
  * Fix `metadata_lint` rake task exiting on success, not continuing ([#70](https://github.com/voxpupuli/metadata-json-lint/issues/70))
61
103
  * Fix failure on incorrect license warning when `--no-strict-license` used ([#69](https://github.com/voxpupuli/metadata-json-lint/issues/69))
62
104
 
63
105
  ## 1.2.1
64
106
 
65
107
  ### Fixed
108
+
66
109
  * Fix missing lib/ files in published gem
67
110
 
68
111
  ## 1.2.0
69
112
 
70
113
  ### Added
114
+
71
115
  * Add `--format`/`-f` option to support a JSON output format
72
116
  * Add warning for mixed version range syntax, supported only in Puppet 5
73
117
 
74
118
  ### Changed
119
+
75
120
  * The default text format mode now outputs more structured messages
76
121
  * README has been edited and clarity improved
77
122
 
78
123
  ### Fixed
124
+
79
125
  * Fix non-zero exit code caused by some checks
80
126
 
81
127
  ## 1.1.0
82
128
 
83
129
  ### Added
130
+
84
131
  * Ensure module `tags` are correctly specified as an array ([#44](https://github.com/voxpupuli/metadata-json-lint/issues/44))
85
132
  * Ensure `requirements` doesn't list the deprecated `pe` key ([#46](https://github.com/voxpupuli/metadata-json-lint/issues/46))
86
133
  * Ensure `dependencies` aren't listed with `version_range` keys ([#47](https://github.com/voxpupuli/metadata-json-lint/issues/47))
@@ -88,6 +135,10 @@ as the vendored `semantic_puppet` was not packaged with Puppet prior to `4.9.0`
88
135
  * Show default strictness option values in `--help` output
89
136
 
90
137
  ### Fixed
138
+
91
139
  * Fix unclear error message when metadata.json does not exist
92
140
  * Fix gem publishing date
93
141
  * Various test improvements, ensuring failures are caught accurately and precisely
142
+
143
+
144
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/Gemfile CHANGED
@@ -2,4 +2,11 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'public_suffix', '< 3' if RUBY_VERSION < '2.1'
5
+ group :release do
6
+ gem 'github_changelog_generator', :require => false
7
+ end
8
+
9
+ group :coverage, optional: ENV['COVERAGE'] != 'yes' do
10
+ gem 'codecov', :require => false
11
+ gem 'simplecov-console', :require => false
12
+ end
data/HISTORY.md ADDED
@@ -0,0 +1,107 @@
1
+ ## 2.3.0
2
+
3
+ * Add duplicate testing in requirements list
4
+ * Fix wrong license file content so GitHub can properly detect it
5
+ * Fix a typo in the README.md
6
+
7
+ ## 2.2.0
8
+
9
+ * Validate Puppet version_requirement [#99](https://github.com/voxpupuli/metadata-json-lint/issues/99)
10
+ * Add optional check `--strict-puppet-version` to validate the Puppet Agent Version is not EOL or open ended [#100](https://github.com/voxpupuli/metadata-json-lint/pull/100)
11
+
12
+ ## 2.1.0
13
+
14
+ ### Changes
15
+
16
+ * Improve rendering of post\_install message by trimming unnecessary leading
17
+ spaces [#89](https://github.com/voxpupuli/metadata-json-lint/pull/89)
18
+ * Fail when checking version requirements if the version range is empty
19
+ [#91](https://github.com/voxpupuli/metadata-json-lint/pull/91)
20
+ * Pin `public_suffix` gem to < 3 for Ruby <= 2.0
21
+ [#93](https://github.com/voxpupuli/metadata-json-lint/pull/93)
22
+
23
+ ### Fixed
24
+
25
+ * Prevent metadata-json-lint from crashing when the `requirements` field does
26
+ not contain an array
27
+ [#94](https://github.com/voxpupuli/metadata-json-lint/pull/94)
28
+ * Fix loading of `semantic_puppet` so that it supports using version vendored
29
+ in Puppet (if available)
30
+ [#96](https://github.com/voxpupuli/metadata-json-lint/pull/96)
31
+
32
+ ## 2.0.2
33
+
34
+ ### Changes
35
+
36
+ * Make SemanticPuppet completely optional and remove dependency on Puppet [#86](https://github.com/voxpupuli/metadata-json-lint/pull/86)
37
+ * Only log open dependency warning with --strict-dependencies [#78](https://github.com/voxpupuli/metadata-json-lint/pull/78)
38
+
39
+ ### Fixed
40
+
41
+ * Fix readme for gemfile usage [#84](https://github.com/voxpupuli/metadata-json-lint/pull/84)
42
+
43
+ ## 2.0.1
44
+
45
+ ### Changes
46
+
47
+ * Puppet 4.9.0 and newer uses the vendored `semantic_puppet` packaged with Puppet.
48
+ * If using Puppet 4.8.x and earlier, adding `semantic_puppet` to your Gemfile is required
49
+ as the vendored `semantic_puppet` was not packaged with Puppet prior to `4.9.0`
50
+ * Add test environment for Ruby 2.4.1
51
+
52
+ ## 2.0.0
53
+
54
+ ### Changes
55
+
56
+ * The `semantic_puppet` gem is no longer included as a runtime dependency due to conflicts with Puppet 5.x libraries that break the `puppet module` command. As such, `semantic_puppet` must be added to a user's Gemfile in Puppet <= 4.x. See [Installation](https://github.com/voxpupuli/metadata-json-lint#installation) docs for more info
57
+ * `metadata-json-lint` now officially only supports Ruby >= 2.0.0
58
+
59
+ ### Fixed
60
+
61
+ * Fix puppet 5.x `semantic_puppet` conflicts ([#79](https://github.com/voxpupuli/metadata-json-lint/issues/79))
62
+ * Clarify Ruby >= 2.x only support ([#74](https://github.com/voxpupuli/metadata-json-lint/issues/74))
63
+
64
+ ## 1.2.2
65
+
66
+ ### Fixed
67
+
68
+ * Fix `metadata_lint` rake task exiting on success, not continuing ([#70](https://github.com/voxpupuli/metadata-json-lint/issues/70))
69
+ * Fix failure on incorrect license warning when `--no-strict-license` used ([#69](https://github.com/voxpupuli/metadata-json-lint/issues/69))
70
+
71
+ ## 1.2.1
72
+
73
+ ### Fixed
74
+
75
+ * Fix missing lib/ files in published gem
76
+
77
+ ## 1.2.0
78
+
79
+ ### Added
80
+
81
+ * Add `--format`/`-f` option to support a JSON output format
82
+ * Add warning for mixed version range syntax, supported only in Puppet 5
83
+
84
+ ### Changed
85
+
86
+ * The default text format mode now outputs more structured messages
87
+ * README has been edited and clarity improved
88
+
89
+ ### Fixed
90
+
91
+ * Fix non-zero exit code caused by some checks
92
+
93
+ ## 1.1.0
94
+
95
+ ### Added
96
+
97
+ * Ensure module `tags` are correctly specified as an array ([#44](https://github.com/voxpupuli/metadata-json-lint/issues/44))
98
+ * Ensure `requirements` doesn't list the deprecated `pe` key ([#46](https://github.com/voxpupuli/metadata-json-lint/issues/46))
99
+ * Ensure `dependencies` aren't listed with `version_range` keys ([#47](https://github.com/voxpupuli/metadata-json-lint/issues/47))
100
+ * Support strictness configuration via Ruby API, for use in rake tasks definitions
101
+ * Show default strictness option values in `--help` output
102
+
103
+ ### Fixed
104
+
105
+ * Fix unclear error message when metadata.json does not exist
106
+ * Fix gem publishing date
107
+ * Various test improvements, ensuring failures are caught accurately and precisely
data/LICENSE CHANGED
@@ -1,13 +1,178 @@
1
1
  Copyright 2014 HP Development Corporation L.P.
2
2
 
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this software except in compliance with the License.
5
- You may obtain a copy of the License at
3
+ Apache License
4
+ Version 2.0, January 2004
5
+ http://www.apache.org/licenses/
6
6
 
7
- http://www.apache.org/licenses/LICENSE-2.0
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
8
 
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction,
12
+ and distribution as defined by Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by
15
+ the copyright owner that is granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all
18
+ other entities that control, are controlled by, or are under common
19
+ control with that entity. For the purposes of this definition,
20
+ "control" means (i) the power, direct or indirect, to cause the
21
+ direction or management of such entity, whether by contract or
22
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
23
+ outstanding shares, or (iii) beneficial ownership of such entity.
24
+
25
+ "You" (or "Your") shall mean an individual or Legal Entity
26
+ exercising permissions granted by this License.
27
+
28
+ "Source" form shall mean the preferred form for making modifications,
29
+ including but not limited to software source code, documentation
30
+ source, and configuration files.
31
+
32
+ "Object" form shall mean any form resulting from mechanical
33
+ transformation or translation of a Source form, including but
34
+ not limited to compiled object code, generated documentation,
35
+ and conversions to other media types.
36
+
37
+ "Work" shall mean the work of authorship, whether in Source or
38
+ Object form, made available under the License, as indicated by a
39
+ copyright notice that is included in or attached to the work
40
+ (an example is provided in the Appendix below).
41
+
42
+ "Derivative Works" shall mean any work, whether in Source or Object
43
+ form, that is based on (or derived from) the Work and for which the
44
+ editorial revisions, annotations, elaborations, or other modifications
45
+ represent, as a whole, an original work of authorship. For the purposes
46
+ of this License, Derivative Works shall not include works that remain
47
+ separable from, or merely link (or bind by name) to the interfaces of,
48
+ the Work and Derivative Works thereof.
49
+
50
+ "Contribution" shall mean any work of authorship, including
51
+ the original version of the Work and any modifications or additions
52
+ to that Work or Derivative Works thereof, that is intentionally
53
+ submitted to Licensor for inclusion in the Work by the copyright owner
54
+ or by an individual or Legal Entity authorized to submit on behalf of
55
+ the copyright owner. For the purposes of this definition, "submitted"
56
+ means any form of electronic, verbal, or written communication sent
57
+ to the Licensor or its representatives, including but not limited to
58
+ communication on electronic mailing lists, source code control systems,
59
+ and issue tracking systems that are managed by, or on behalf of, the
60
+ Licensor for the purpose of discussing and improving the Work, but
61
+ excluding communication that is conspicuously marked or otherwise
62
+ designated in writing by the copyright owner as "Not a Contribution."
63
+
64
+ "Contributor" shall mean Licensor and any individual or Legal Entity
65
+ on behalf of whom a Contribution has been received by Licensor and
66
+ subsequently incorporated within the Work.
67
+
68
+ 2. Grant of Copyright License. Subject to the terms and conditions of
69
+ this License, each Contributor hereby grants to You a perpetual,
70
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71
+ copyright license to reproduce, prepare Derivative Works of,
72
+ publicly display, publicly perform, sublicense, and distribute the
73
+ Work and such Derivative Works in Source or Object form.
74
+
75
+ 3. Grant of Patent License. Subject to the terms and conditions of
76
+ this License, each Contributor hereby grants to You a perpetual,
77
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
+ (except as stated in this section) patent license to make, have made,
79
+ use, offer to sell, sell, import, and otherwise transfer the Work,
80
+ where such license applies only to those patent claims licensable
81
+ by such Contributor that are necessarily infringed by their
82
+ Contribution(s) alone or by combination of their Contribution(s)
83
+ with the Work to which such Contribution(s) was submitted. If You
84
+ institute patent litigation against any entity (including a
85
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
86
+ or a Contribution incorporated within the Work constitutes direct
87
+ or contributory patent infringement, then any patent licenses
88
+ granted to You under this License for that Work shall terminate
89
+ as of the date such litigation is filed.
90
+
91
+ 4. Redistribution. You may reproduce and distribute copies of the
92
+ Work or Derivative Works thereof in any medium, with or without
93
+ modifications, and in Source or Object form, provided that You
94
+ meet the following conditions:
95
+
96
+ (a) You must give any other recipients of the Work or
97
+ Derivative Works a copy of this License; and
98
+
99
+ (b) You must cause any modified files to carry prominent notices
100
+ stating that You changed the files; and
101
+
102
+ (c) You must retain, in the Source form of any Derivative Works
103
+ that You distribute, all copyright, patent, trademark, and
104
+ attribution notices from the Source form of the Work,
105
+ excluding those notices that do not pertain to any part of
106
+ the Derivative Works; and
107
+
108
+ (d) If the Work includes a "NOTICE" text file as part of its
109
+ distribution, then any Derivative Works that You distribute must
110
+ include a readable copy of the attribution notices contained
111
+ within such NOTICE file, excluding those notices that do not
112
+ pertain to any part of the Derivative Works, in at least one
113
+ of the following places: within a NOTICE text file distributed
114
+ as part of the Derivative Works; within the Source form or
115
+ documentation, if provided along with the Derivative Works; or,
116
+ within a display generated by the Derivative Works, if and
117
+ wherever such third-party notices normally appear. The contents
118
+ of the NOTICE file are for informational purposes only and
119
+ do not modify the License. You may add Your own attribution
120
+ notices within Derivative Works that You distribute, alongside
121
+ or as an addendum to the NOTICE text from the Work, provided
122
+ that such additional attribution notices cannot be construed
123
+ as modifying the License.
124
+
125
+ You may add Your own copyright statement to Your modifications and
126
+ may provide additional or different license terms and conditions
127
+ for use, reproduction, or distribution of Your modifications, or
128
+ for any such Derivative Works as a whole, provided Your use,
129
+ reproduction, and distribution of the Work otherwise complies with
130
+ the conditions stated in this License.
131
+
132
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
133
+ any Contribution intentionally submitted for inclusion in the Work
134
+ by You to the Licensor shall be under the terms and conditions of
135
+ this License, without any additional terms or conditions.
136
+ Notwithstanding the above, nothing herein shall supersede or modify
137
+ the terms of any separate license agreement you may have executed
138
+ with Licensor regarding such Contributions.
139
+
140
+ 6. Trademarks. This License does not grant permission to use the trade
141
+ names, trademarks, service marks, or product names of the Licensor,
142
+ except as required for reasonable and customary use in describing the
143
+ origin of the Work and reproducing the content of the NOTICE file.
144
+
145
+ 7. Disclaimer of Warranty. Unless required by applicable law or
146
+ agreed to in writing, Licensor provides the Work (and each
147
+ Contributor provides its Contributions) on an "AS IS" BASIS,
148
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149
+ implied, including, without limitation, any warranties or conditions
150
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
151
+ PARTICULAR PURPOSE. You are solely responsible for determining the
152
+ appropriateness of using or redistributing the Work and assume any
153
+ risks associated with Your exercise of permissions under this License.
154
+
155
+ 8. Limitation of Liability. In no event and under no legal theory,
156
+ whether in tort (including negligence), contract, or otherwise,
157
+ unless required by applicable law (such as deliberate and grossly
158
+ negligent acts) or agreed to in writing, shall any Contributor be
159
+ liable to You for damages, including any direct, indirect, special,
160
+ incidental, or consequential damages of any character arising as a
161
+ result of this License or out of the use or inability to use the
162
+ Work (including but not limited to damages for loss of goodwill,
163
+ work stoppage, computer failure or malfunction, or any and all
164
+ other commercial damages or losses), even if such Contributor
165
+ has been advised of the possibility of such damages.
166
+
167
+ 9. Accepting Warranty or Additional Liability. While redistributing
168
+ the Work or Derivative Works thereof, You may choose to offer,
169
+ and charge a fee for, acceptance of support, warranty, indemnity,
170
+ or other liability obligations and/or rights consistent with this
171
+ License. However, in accepting such obligations, You may act only
172
+ on Your own behalf and on Your sole responsibility, not on behalf
173
+ of any other Contributor, and only if You agree to indemnify,
174
+ defend, and hold each Contributor harmless for any liability
175
+ incurred by, or claims asserted against, such Contributor by reason
176
+ of your accepting any such warranty or additional liability.
177
+
178
+ END OF TERMS AND CONDITIONS