pursuit 0.4.3 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rubygem.yaml +46 -0
- data/.ruby-version +1 -1
- data/Gemfile +15 -0
- data/Gemfile.lock +127 -86
- data/LICENSE +174 -21
- data/README.md +210 -27
- data/bin/console +10 -0
- data/config.ru +2 -3
- data/lib/pursuit/aggregate_modifier_not_found.rb +20 -0
- data/lib/pursuit/aggregate_modifier_required.rb +20 -0
- data/lib/pursuit/aggregate_modifiers_not_available.rb +13 -0
- data/lib/pursuit/attribute_not_found.rb +20 -0
- data/lib/pursuit/constants.rb +1 -1
- data/lib/pursuit/error.rb +7 -0
- data/lib/pursuit/predicate_parser.rb +181 -0
- data/lib/pursuit/predicate_search.rb +83 -0
- data/lib/pursuit/predicate_transform.rb +231 -0
- data/lib/pursuit/query_error.rb +7 -0
- data/lib/pursuit/simple_search.rb +64 -0
- data/lib/pursuit/term_parser.rb +44 -0
- data/lib/pursuit/term_search.rb +69 -0
- data/lib/pursuit/term_transform.rb +35 -0
- data/lib/pursuit.rb +19 -5
- data/pursuit.gemspec +5 -18
- data/spec/internal/app/models/application_record.rb +5 -0
- data/spec/internal/app/models/product.rb +25 -9
- data/spec/internal/app/models/product_category.rb +23 -1
- data/spec/internal/app/models/product_variation.rb +26 -1
- data/spec/lib/pursuit/predicate_parser_spec.rb +1604 -0
- data/spec/lib/pursuit/predicate_search_spec.rb +80 -0
- data/spec/lib/pursuit/predicate_transform_spec.rb +624 -0
- data/spec/lib/pursuit/simple_search_spec.rb +59 -0
- data/spec/lib/pursuit/term_parser_spec.rb +271 -0
- data/spec/lib/pursuit/term_search_spec.rb +71 -0
- data/spec/lib/pursuit/term_transform_spec.rb +105 -0
- data/spec/spec_helper.rb +2 -3
- data/travis/gemfiles/{5.2.gemfile → 7.1.gemfile} +2 -2
- metadata +38 -197
- data/.travis.yml +0 -25
- data/lib/pursuit/dsl.rb +0 -28
- data/lib/pursuit/railtie.rb +0 -13
- data/lib/pursuit/search.rb +0 -172
- data/lib/pursuit/search_options.rb +0 -86
- data/lib/pursuit/search_term_parser.rb +0 -46
- data/spec/lib/pursuit/dsl_spec.rb +0 -22
- data/spec/lib/pursuit/search_options_spec.rb +0 -146
- data/spec/lib/pursuit/search_spec.rb +0 -516
- data/spec/lib/pursuit/search_term_parser_spec.rb +0 -34
- data/travis/gemfiles/6.0.gemfile +0 -8
- data/travis/gemfiles/6.1.gemfile +0 -8
- data/travis/gemfiles/7.0.gemfile +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48b4becb7e8e0e0d39335cd5172fd4870989a9e26033a882e082480431330285
|
4
|
+
data.tar.gz: 33265eafe36113d7e4f263a6f9a2dc9fd7d12cfda95073c29ea0866f627e4566
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01fba1c0d143f914d3a040620f618538f8e77396e7e9fa17f503a06ef6b419c2b9eb0a55950e60b16608d944535eb9a3bf70888615709d08f525938d25850bf6
|
7
|
+
data.tar.gz: b2d0106bc8ceea194d87f62dd8831c3cb4477c831c951f638038d6d94384ee91c64039891203783ee50a3bedf76672245641ba5206191b5350f72d46e1e462f3
|
@@ -0,0 +1,46 @@
|
|
1
|
+
name: RubyGem
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_dispatch:
|
5
|
+
push:
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
rubocop:
|
9
|
+
name: RuboCop
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- name: Checkout Source Code
|
13
|
+
uses: actions/checkout@v3
|
14
|
+
- name: Setup Ruby
|
15
|
+
uses: ruby/setup-ruby@v1
|
16
|
+
- name: Setup RubyGems
|
17
|
+
run: |
|
18
|
+
bundle install
|
19
|
+
- name: RuboCop
|
20
|
+
run: |
|
21
|
+
bundle exec rubocop --parallel --format progress --format html --out rubocop-report.html
|
22
|
+
- name: Upload Report
|
23
|
+
uses: actions/upload-artifact@v3
|
24
|
+
with:
|
25
|
+
name: RuboCop Report
|
26
|
+
path: rubocop-report.html
|
27
|
+
|
28
|
+
rspec:
|
29
|
+
name: RSpec
|
30
|
+
runs-on: ubuntu-latest
|
31
|
+
steps:
|
32
|
+
- name: Checkout Source Code
|
33
|
+
uses: actions/checkout@v3
|
34
|
+
- name: Setup Ruby
|
35
|
+
uses: ruby/setup-ruby@v1
|
36
|
+
- name: Setup RubyGems
|
37
|
+
run: |
|
38
|
+
bundle install
|
39
|
+
- name: RSpec
|
40
|
+
run: |
|
41
|
+
bundle exec rspec --format progress --format html --out rspec-report.html
|
42
|
+
- name: Upload Report
|
43
|
+
uses: actions/upload-artifact@v3
|
44
|
+
with:
|
45
|
+
name: RSpec Report
|
46
|
+
path: rspec-report.html
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.2.
|
1
|
+
3.2.2
|
data/Gemfile
CHANGED
@@ -3,3 +3,18 @@
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
gemspec
|
6
|
+
|
7
|
+
group :development do
|
8
|
+
gem 'combustion', '~> 1.3'
|
9
|
+
gem 'guard', '~> 2.18'
|
10
|
+
gem 'guard-rspec', '~> 4.7'
|
11
|
+
gem 'pry', '~> 0.14'
|
12
|
+
gem 'rake', '~> 13.0'
|
13
|
+
gem 'rspec', '~> 3.12'
|
14
|
+
gem 'rspec-rails', '~> 6.0'
|
15
|
+
gem 'rubocop', '~> 1.57'
|
16
|
+
gem 'rubocop-rake', '~> 0.6'
|
17
|
+
gem 'rubocop-rspec', '~> 2.25'
|
18
|
+
gem 'sqlite3', '~> 1.6'
|
19
|
+
gem 'yard', '~> 0.9'
|
20
|
+
end
|
data/Gemfile.lock
CHANGED
@@ -1,50 +1,64 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pursuit (0.
|
5
|
-
activerecord (>= 5.2.0,
|
6
|
-
activesupport (>= 5.2.0,
|
4
|
+
pursuit (1.0.1)
|
5
|
+
activerecord (>= 5.2.0, <= 8.0.0)
|
6
|
+
activesupport (>= 5.2.0, <= 8.0.0)
|
7
|
+
parslet (~> 2.0)
|
7
8
|
|
8
9
|
GEM
|
9
10
|
remote: https://rubygems.org/
|
10
11
|
specs:
|
11
|
-
actionpack (7.
|
12
|
-
actionview (= 7.
|
13
|
-
activesupport (= 7.
|
14
|
-
|
12
|
+
actionpack (7.1.1)
|
13
|
+
actionview (= 7.1.1)
|
14
|
+
activesupport (= 7.1.1)
|
15
|
+
nokogiri (>= 1.8.5)
|
16
|
+
rack (>= 2.2.4)
|
17
|
+
rack-session (>= 1.0.1)
|
15
18
|
rack-test (>= 0.6.3)
|
16
|
-
rails-dom-testing (~> 2.
|
17
|
-
rails-html-sanitizer (~> 1.
|
18
|
-
actionview (7.
|
19
|
-
activesupport (= 7.
|
19
|
+
rails-dom-testing (~> 2.2)
|
20
|
+
rails-html-sanitizer (~> 1.6)
|
21
|
+
actionview (7.1.1)
|
22
|
+
activesupport (= 7.1.1)
|
20
23
|
builder (~> 3.1)
|
21
|
-
erubi (~> 1.
|
22
|
-
rails-dom-testing (~> 2.
|
23
|
-
rails-html-sanitizer (~> 1.
|
24
|
-
activemodel (7.
|
25
|
-
activesupport (= 7.
|
26
|
-
activerecord (7.
|
27
|
-
activemodel (= 7.
|
28
|
-
activesupport (= 7.
|
29
|
-
|
24
|
+
erubi (~> 1.11)
|
25
|
+
rails-dom-testing (~> 2.2)
|
26
|
+
rails-html-sanitizer (~> 1.6)
|
27
|
+
activemodel (7.1.1)
|
28
|
+
activesupport (= 7.1.1)
|
29
|
+
activerecord (7.1.1)
|
30
|
+
activemodel (= 7.1.1)
|
31
|
+
activesupport (= 7.1.1)
|
32
|
+
timeout (>= 0.4.0)
|
33
|
+
activesupport (7.1.1)
|
34
|
+
base64
|
35
|
+
bigdecimal
|
30
36
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
37
|
+
connection_pool (>= 2.2.5)
|
38
|
+
drb
|
31
39
|
i18n (>= 1.6, < 2)
|
32
40
|
minitest (>= 5.1)
|
41
|
+
mutex_m
|
33
42
|
tzinfo (~> 2.0)
|
34
43
|
ast (2.4.2)
|
44
|
+
base64 (0.1.1)
|
45
|
+
bigdecimal (3.1.4)
|
35
46
|
builder (3.2.4)
|
36
47
|
coderay (1.1.3)
|
37
48
|
combustion (1.3.7)
|
38
49
|
activesupport (>= 3.0.0)
|
39
50
|
railties (>= 3.0.0)
|
40
51
|
thor (>= 0.14.6)
|
41
|
-
concurrent-ruby (1.
|
52
|
+
concurrent-ruby (1.2.2)
|
53
|
+
connection_pool (2.4.1)
|
42
54
|
crass (1.0.6)
|
43
55
|
diff-lcs (1.5.0)
|
56
|
+
drb (2.1.1)
|
57
|
+
ruby2_keywords
|
44
58
|
erubi (1.12.0)
|
45
|
-
ffi (1.
|
59
|
+
ffi (1.16.3)
|
46
60
|
formatador (1.1.0)
|
47
|
-
guard (2.18.
|
61
|
+
guard (2.18.1)
|
48
62
|
formatador (>= 0.2.4)
|
49
63
|
listen (>= 2.7, < 4.0)
|
50
64
|
lumberjack (>= 1.0.12, < 2.0)
|
@@ -58,122 +72,149 @@ GEM
|
|
58
72
|
guard (~> 2.1)
|
59
73
|
guard-compat (~> 1.1)
|
60
74
|
rspec (>= 2.99.0, < 4.0)
|
61
|
-
i18n (1.
|
75
|
+
i18n (1.14.1)
|
62
76
|
concurrent-ruby (~> 1.0)
|
77
|
+
io-console (0.6.0)
|
78
|
+
irb (1.8.3)
|
79
|
+
rdoc
|
80
|
+
reline (>= 0.3.8)
|
63
81
|
json (2.6.3)
|
82
|
+
language_server-protocol (3.17.0.3)
|
64
83
|
listen (3.8.0)
|
65
84
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
66
85
|
rb-inotify (~> 0.9, >= 0.9.10)
|
67
|
-
loofah (2.
|
86
|
+
loofah (2.21.4)
|
68
87
|
crass (~> 1.0.2)
|
69
|
-
nokogiri (>= 1.
|
70
|
-
lumberjack (1.2.
|
88
|
+
nokogiri (>= 1.12.0)
|
89
|
+
lumberjack (1.2.9)
|
71
90
|
method_source (1.0.0)
|
72
|
-
minitest (5.
|
91
|
+
minitest (5.20.0)
|
92
|
+
mutex_m (0.1.2)
|
73
93
|
nenv (0.3.0)
|
74
|
-
nokogiri (1.
|
94
|
+
nokogiri (1.15.4-arm-linux)
|
75
95
|
racc (~> 1.4)
|
76
|
-
nokogiri (1.
|
96
|
+
nokogiri (1.15.4-arm64-darwin)
|
77
97
|
racc (~> 1.4)
|
78
|
-
nokogiri (1.
|
98
|
+
nokogiri (1.15.4-x86_64-darwin)
|
79
99
|
racc (~> 1.4)
|
80
|
-
nokogiri (1.
|
100
|
+
nokogiri (1.15.4-x86_64-linux)
|
81
101
|
racc (~> 1.4)
|
82
102
|
notiffany (0.1.3)
|
83
103
|
nenv (~> 0.1)
|
84
104
|
shellany (~> 0.0)
|
85
|
-
parallel (1.
|
86
|
-
parser (3.2.
|
105
|
+
parallel (1.23.0)
|
106
|
+
parser (3.2.2.4)
|
87
107
|
ast (~> 2.4.1)
|
108
|
+
racc
|
109
|
+
parslet (2.0.0)
|
88
110
|
pry (0.14.2)
|
89
111
|
coderay (~> 1.1)
|
90
112
|
method_source (~> 1.0)
|
91
|
-
|
92
|
-
|
93
|
-
|
113
|
+
psych (5.1.1.1)
|
114
|
+
stringio
|
115
|
+
racc (1.7.2)
|
116
|
+
rack (3.0.8)
|
117
|
+
rack-session (2.0.0)
|
118
|
+
rack (>= 3.0.0)
|
119
|
+
rack-test (2.1.0)
|
94
120
|
rack (>= 1.3)
|
95
|
-
|
96
|
-
|
121
|
+
rackup (2.1.0)
|
122
|
+
rack (>= 3)
|
123
|
+
webrick (~> 1.8)
|
124
|
+
rails-dom-testing (2.2.0)
|
125
|
+
activesupport (>= 5.0.0)
|
126
|
+
minitest
|
97
127
|
nokogiri (>= 1.6)
|
98
|
-
rails-html-sanitizer (1.
|
99
|
-
loofah (~> 2.
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
128
|
+
rails-html-sanitizer (1.6.0)
|
129
|
+
loofah (~> 2.21)
|
130
|
+
nokogiri (~> 1.14)
|
131
|
+
railties (7.1.1)
|
132
|
+
actionpack (= 7.1.1)
|
133
|
+
activesupport (= 7.1.1)
|
134
|
+
irb
|
135
|
+
rackup (>= 1.0.0)
|
104
136
|
rake (>= 12.2)
|
105
|
-
thor (~> 1.0)
|
106
|
-
zeitwerk (~> 2.
|
137
|
+
thor (~> 1.0, >= 1.2.2)
|
138
|
+
zeitwerk (~> 2.6)
|
107
139
|
rainbow (3.1.1)
|
108
|
-
rake (13.0
|
140
|
+
rake (13.1.0)
|
109
141
|
rb-fsevent (0.11.2)
|
110
142
|
rb-inotify (0.10.1)
|
111
143
|
ffi (~> 1.0)
|
112
|
-
|
113
|
-
|
144
|
+
rdoc (6.5.0)
|
145
|
+
psych (>= 4.0.0)
|
146
|
+
regexp_parser (2.8.2)
|
147
|
+
reline (0.3.9)
|
148
|
+
io-console (~> 0.5)
|
149
|
+
rexml (3.2.6)
|
114
150
|
rspec (3.12.0)
|
115
151
|
rspec-core (~> 3.12.0)
|
116
152
|
rspec-expectations (~> 3.12.0)
|
117
153
|
rspec-mocks (~> 3.12.0)
|
118
|
-
rspec-core (3.12.
|
154
|
+
rspec-core (3.12.2)
|
119
155
|
rspec-support (~> 3.12.0)
|
120
|
-
rspec-expectations (3.12.
|
156
|
+
rspec-expectations (3.12.3)
|
121
157
|
diff-lcs (>= 1.2.0, < 2.0)
|
122
158
|
rspec-support (~> 3.12.0)
|
123
|
-
rspec-mocks (3.12.
|
159
|
+
rspec-mocks (3.12.6)
|
124
160
|
diff-lcs (>= 1.2.0, < 2.0)
|
125
161
|
rspec-support (~> 3.12.0)
|
126
|
-
rspec-rails (6.0.
|
162
|
+
rspec-rails (6.0.3)
|
127
163
|
actionpack (>= 6.1)
|
128
164
|
activesupport (>= 6.1)
|
129
165
|
railties (>= 6.1)
|
130
|
-
rspec-core (~> 3.
|
131
|
-
rspec-expectations (~> 3.
|
132
|
-
rspec-mocks (~> 3.
|
133
|
-
rspec-support (~> 3.
|
134
|
-
rspec-support (3.12.
|
135
|
-
rubocop (1.
|
166
|
+
rspec-core (~> 3.12)
|
167
|
+
rspec-expectations (~> 3.12)
|
168
|
+
rspec-mocks (~> 3.12)
|
169
|
+
rspec-support (~> 3.12)
|
170
|
+
rspec-support (3.12.1)
|
171
|
+
rubocop (1.57.2)
|
136
172
|
json (~> 2.3)
|
173
|
+
language_server-protocol (>= 3.17.0)
|
137
174
|
parallel (~> 1.10)
|
138
|
-
parser (>= 3.2.
|
175
|
+
parser (>= 3.2.2.4)
|
139
176
|
rainbow (>= 2.2.2, < 4.0)
|
140
177
|
regexp_parser (>= 1.8, < 3.0)
|
141
178
|
rexml (>= 3.2.5, < 4.0)
|
142
|
-
rubocop-ast (>= 1.
|
179
|
+
rubocop-ast (>= 1.28.1, < 2.0)
|
143
180
|
ruby-progressbar (~> 1.7)
|
144
181
|
unicode-display_width (>= 2.4.0, < 3.0)
|
145
|
-
rubocop-ast (1.
|
146
|
-
parser (>= 3.
|
147
|
-
rubocop-capybara (2.
|
182
|
+
rubocop-ast (1.30.0)
|
183
|
+
parser (>= 3.2.1.0)
|
184
|
+
rubocop-capybara (2.19.0)
|
148
185
|
rubocop (~> 1.41)
|
186
|
+
rubocop-factory_bot (2.24.0)
|
187
|
+
rubocop (~> 1.33)
|
149
188
|
rubocop-rake (0.6.0)
|
150
189
|
rubocop (~> 1.0)
|
151
|
-
rubocop-rspec (2.
|
152
|
-
rubocop (~> 1.
|
153
|
-
rubocop-capybara
|
154
|
-
|
190
|
+
rubocop-rspec (2.25.0)
|
191
|
+
rubocop (~> 1.40)
|
192
|
+
rubocop-capybara (~> 2.17)
|
193
|
+
rubocop-factory_bot (~> 2.22)
|
194
|
+
ruby-progressbar (1.13.0)
|
195
|
+
ruby2_keywords (0.0.5)
|
155
196
|
shellany (0.0.1)
|
156
|
-
sqlite3 (1.6.
|
157
|
-
sqlite3 (1.6.
|
158
|
-
sqlite3 (1.6.
|
159
|
-
sqlite3 (1.6.
|
160
|
-
|
161
|
-
|
197
|
+
sqlite3 (1.6.8-arm-linux)
|
198
|
+
sqlite3 (1.6.8-arm64-darwin)
|
199
|
+
sqlite3 (1.6.8-x86_64-darwin)
|
200
|
+
sqlite3 (1.6.8-x86_64-linux)
|
201
|
+
stringio (3.0.8)
|
202
|
+
thor (1.3.0)
|
203
|
+
timeout (0.4.0)
|
204
|
+
tzinfo (2.0.6)
|
162
205
|
concurrent-ruby (~> 1.0)
|
163
|
-
unicode-display_width (2.
|
164
|
-
webrick (1.
|
165
|
-
yard (0.9.
|
166
|
-
|
167
|
-
zeitwerk (2.6.6)
|
206
|
+
unicode-display_width (2.5.0)
|
207
|
+
webrick (1.8.1)
|
208
|
+
yard (0.9.34)
|
209
|
+
zeitwerk (2.6.12)
|
168
210
|
|
169
211
|
PLATFORMS
|
170
|
-
aarch64-linux
|
171
212
|
arm64-darwin-22
|
172
|
-
|
213
|
+
arm64-linux
|
214
|
+
x86_64-darwin-22
|
173
215
|
x86_64-linux
|
174
216
|
|
175
217
|
DEPENDENCIES
|
176
|
-
bundler (~> 2.0)
|
177
218
|
combustion (~> 1.3)
|
178
219
|
guard (~> 2.18)
|
179
220
|
guard-rspec (~> 4.7)
|
@@ -182,11 +223,11 @@ DEPENDENCIES
|
|
182
223
|
rake (~> 13.0)
|
183
224
|
rspec (~> 3.12)
|
184
225
|
rspec-rails (~> 6.0)
|
185
|
-
rubocop (~> 1.
|
226
|
+
rubocop (~> 1.57)
|
186
227
|
rubocop-rake (~> 0.6)
|
187
|
-
rubocop-rspec (~> 2.
|
228
|
+
rubocop-rspec (~> 2.25)
|
188
229
|
sqlite3 (~> 1.6)
|
189
230
|
yard (~> 0.9)
|
190
231
|
|
191
232
|
BUNDLED WITH
|
192
|
-
2.4.
|
233
|
+
2.4.12
|
data/LICENSE
CHANGED
@@ -1,21 +1,174 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|