zendesk_api 1.13.1 → 1.13.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zendesk_api/client.rb +1 -1
- data/lib/zendesk_api/middleware/response/parse_json.rb +0 -1
- data/lib/zendesk_api/version.rb +1 -1
- metadata +10 -205
- data/.gitignore +0 -15
- data/.rspec +0 -2
- data/.travis.yml +0 -10
- data/.yardopts +0 -10
- data/Gemfile +0 -14
- data/LICENSE +0 -176
- data/README.md +0 -425
- data/Rakefile +0 -52
- data/spec/core/association_spec.rb +0 -256
- data/spec/core/bulk_actions_spec.rb +0 -69
- data/spec/core/client_spec.rb +0 -280
- data/spec/core/collection_spec.rb +0 -901
- data/spec/core/configuration_spec.rb +0 -28
- data/spec/core/create_resource_spec.rb +0 -39
- data/spec/core/data_namespace_spec.rb +0 -15
- data/spec/core/data_resource_spec.rb +0 -239
- data/spec/core/inflection_spec.rb +0 -7
- data/spec/core/lru_cache_spec.rb +0 -26
- data/spec/core/middleware/request/encode_json_spec.rb +0 -73
- data/spec/core/middleware/request/etag_cache_spec.rb +0 -21
- data/spec/core/middleware/request/retry_spec.rb +0 -49
- data/spec/core/middleware/request/test.jpg +0 -0
- data/spec/core/middleware/request/upload_spec.rb +0 -164
- data/spec/core/middleware/response/callback_spec.rb +0 -17
- data/spec/core/middleware/response/deflate_spec.rb +0 -21
- data/spec/core/middleware/response/gzip_spec.rb +0 -25
- data/spec/core/middleware/response/parse_iso_dates_spec.rb +0 -44
- data/spec/core/middleware/response/parse_json_spec.rb +0 -53
- data/spec/core/middleware/response/raise_error_spec.rb +0 -128
- data/spec/core/middleware/response/sanitize_response_spec.rb +0 -19
- data/spec/core/read_resource_spec.rb +0 -97
- data/spec/core/resource_spec.rb +0 -541
- data/spec/core/resources/automation_spec.rb +0 -81
- data/spec/core/resources/macro_spec.rb +0 -27
- data/spec/core/resources/trigger_spec.rb +0 -67
- data/spec/core/resources/view_spec.rb +0 -97
- data/spec/core/search_spec.rb +0 -23
- data/spec/core/spec_helper.rb +0 -162
- data/spec/core/trackie_spec.rb +0 -129
- data/spec/fixtures/Argentina.gif +0 -0
- data/spec/fixtures/Argentina2.gif +0 -0
- data/spec/fixtures/credentials.yml.example +0 -3
- data/spec/fixtures/sample_app.zip +0 -0
- data/spec/fixtures/test_resources.rb +0 -22
- data/spec/fixtures/zendesk.rb +0 -109
- data/spec/live/Readme.md +0 -4
- data/spec/live/activity_spec.rb +0 -12
- data/spec/live/app_installation_spec.rb +0 -58
- data/spec/live/app_spec.rb +0 -58
- data/spec/live/audit_spec.rb +0 -15
- data/spec/live/automation_spec.rb +0 -23
- data/spec/live/bookmark_spec.rb +0 -11
- data/spec/live/brand_spec.rb +0 -14
- data/spec/live/category_spec.rb +0 -12
- data/spec/live/collection_spec.rb +0 -64
- data/spec/live/custom_role_spec.rb +0 -5
- data/spec/live/dynamic_content/item_spec.rb +0 -16
- data/spec/live/dynamic_content/variant_spec.rb +0 -19
- data/spec/live/forum_spec.rb +0 -14
- data/spec/live/forum_subscription_spec.rb +0 -12
- data/spec/live/group_membership_spec.rb +0 -18
- data/spec/live/group_spec.rb +0 -32
- data/spec/live/identity_spec.rb +0 -14
- data/spec/live/locale_spec.rb +0 -9
- data/spec/live/macro_spec.rb +0 -44
- data/spec/live/organization_field_spec.rb +0 -12
- data/spec/live/organization_membership_spec.rb +0 -11
- data/spec/live/organization_spec.rb +0 -12
- data/spec/live/push_notification_device_spec.rb +0 -21
- data/spec/live/request_spec.rb +0 -38
- data/spec/live/satisfaction_rating_spec.rb +0 -6
- data/spec/live/setting_spec.rb +0 -25
- data/spec/live/suspended_ticket_spec.rb +0 -8
- data/spec/live/tag_spec.rb +0 -58
- data/spec/live/target_spec.rb +0 -17
- data/spec/live/ticket_field_spec.rb +0 -12
- data/spec/live/ticket_form_spec.rb +0 -14
- data/spec/live/ticket_metrics_spec.rb +0 -6
- data/spec/live/ticket_spec.rb +0 -136
- data/spec/live/topic_comment_spec.rb +0 -52
- data/spec/live/topic_spec.rb +0 -46
- data/spec/live/topic_subscription_spec.rb +0 -12
- data/spec/live/topic_vote_spec.rb +0 -13
- data/spec/live/trigger_spec.rb +0 -23
- data/spec/live/upload_spec.rb +0 -10
- data/spec/live/user_field_spec.rb +0 -12
- data/spec/live/user_spec.rb +0 -71
- data/spec/live/user_view_spec.rb +0 -16
- data/spec/live/view_spec.rb +0 -22
- data/spec/live/voice/phone_number_spec.rb +0 -13
- data/spec/macros/resource_macros.rb +0 -169
- data/zendesk_api.gemspec +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6c5165f000d2a3ae0bfac90a17e7d9cbc66f1b4
|
4
|
+
data.tar.gz: 88f1bb1ae196f81a1a0a8e877deb74fb355de3b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4af48074aeef9311ff825d87b5212e43baa9b553548d2f259cb4c52a769a1405827fea7029f1b8ac2f58b7071ace91aaafbcd1a5fb3f3cb897016d621360e883
|
7
|
+
data.tar.gz: 9f258ee2ec56a63f9c075a46009f91192774fe5150cb4917f714fbdbe4a73aff802c8044a12d1304b170e41f793e240d70cd0fb3b6b5e8d5af42135a5cc7e5b4
|
data/lib/zendesk_api/client.rb
CHANGED
@@ -179,7 +179,7 @@ module ZendeskAPI
|
|
179
179
|
private
|
180
180
|
|
181
181
|
def method_as_class(method)
|
182
|
-
klass_as_string = ZendeskAPI::Helpers.modulize_string(Inflection.singular(method.to_s))
|
182
|
+
klass_as_string = ZendeskAPI::Helpers.modulize_string(Inflection.singular(method.to_s.gsub(/\W/, '')))
|
183
183
|
ZendeskAPI::Association.class_from_namespace(klass_as_string)
|
184
184
|
end
|
185
185
|
|
data/lib/zendesk_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zendesk_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.13.
|
4
|
+
version: 1.13.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Davidovitz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-12-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bump
|
@@ -167,16 +167,16 @@ dependencies:
|
|
167
167
|
name: mime-types
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
|
-
- - "
|
170
|
+
- - "~>"
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: '
|
172
|
+
version: '2.99'
|
173
173
|
type: :runtime
|
174
174
|
prerelease: false
|
175
175
|
version_requirements: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
|
-
- - "
|
177
|
+
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: '
|
179
|
+
version: '2.99'
|
180
180
|
- !ruby/object:Gem::Dependency
|
181
181
|
name: scrub_rb
|
182
182
|
requirement: !ruby/object:Gem::Requirement
|
@@ -191,22 +191,14 @@ dependencies:
|
|
191
191
|
- - "~>"
|
192
192
|
- !ruby/object:Gem::Version
|
193
193
|
version: 1.0.1
|
194
|
-
description: Ruby wrapper for the REST API at
|
195
|
-
at
|
194
|
+
description: Ruby wrapper for the REST API at https://www.zendesk.com. Documentation
|
195
|
+
at https://developer.zendesk.com.
|
196
196
|
email:
|
197
197
|
- support@zendesk.com
|
198
198
|
executables: []
|
199
199
|
extensions: []
|
200
200
|
extra_rdoc_files: []
|
201
201
|
files:
|
202
|
-
- ".gitignore"
|
203
|
-
- ".rspec"
|
204
|
-
- ".travis.yml"
|
205
|
-
- ".yardopts"
|
206
|
-
- Gemfile
|
207
|
-
- LICENSE
|
208
|
-
- README.md
|
209
|
-
- Rakefile
|
210
202
|
- lib/zendesk_api.rb
|
211
203
|
- lib/zendesk_api/actions.rb
|
212
204
|
- lib/zendesk_api/association.rb
|
@@ -239,103 +231,9 @@ files:
|
|
239
231
|
- lib/zendesk_api/trackie.rb
|
240
232
|
- lib/zendesk_api/verbs.rb
|
241
233
|
- lib/zendesk_api/version.rb
|
242
|
-
- spec/core/association_spec.rb
|
243
|
-
- spec/core/bulk_actions_spec.rb
|
244
|
-
- spec/core/client_spec.rb
|
245
|
-
- spec/core/collection_spec.rb
|
246
|
-
- spec/core/configuration_spec.rb
|
247
|
-
- spec/core/create_resource_spec.rb
|
248
|
-
- spec/core/data_namespace_spec.rb
|
249
|
-
- spec/core/data_resource_spec.rb
|
250
|
-
- spec/core/inflection_spec.rb
|
251
|
-
- spec/core/lru_cache_spec.rb
|
252
|
-
- spec/core/middleware/request/encode_json_spec.rb
|
253
|
-
- spec/core/middleware/request/etag_cache_spec.rb
|
254
|
-
- spec/core/middleware/request/retry_spec.rb
|
255
|
-
- spec/core/middleware/request/test.jpg
|
256
|
-
- spec/core/middleware/request/upload_spec.rb
|
257
|
-
- spec/core/middleware/response/callback_spec.rb
|
258
|
-
- spec/core/middleware/response/deflate_spec.rb
|
259
|
-
- spec/core/middleware/response/gzip_spec.rb
|
260
|
-
- spec/core/middleware/response/parse_iso_dates_spec.rb
|
261
|
-
- spec/core/middleware/response/parse_json_spec.rb
|
262
|
-
- spec/core/middleware/response/raise_error_spec.rb
|
263
|
-
- spec/core/middleware/response/sanitize_response_spec.rb
|
264
|
-
- spec/core/read_resource_spec.rb
|
265
|
-
- spec/core/resource_spec.rb
|
266
|
-
- spec/core/resources/automation_spec.rb
|
267
|
-
- spec/core/resources/macro_spec.rb
|
268
|
-
- spec/core/resources/trigger_spec.rb
|
269
|
-
- spec/core/resources/view_spec.rb
|
270
|
-
- spec/core/search_spec.rb
|
271
|
-
- spec/core/spec_helper.rb
|
272
|
-
- spec/core/trackie_spec.rb
|
273
|
-
- spec/fixtures/Argentina.gif
|
274
|
-
- spec/fixtures/Argentina2.gif
|
275
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber/creation/should_be_findable.json
|
276
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber/deletion/should_be_destroyable.json
|
277
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber/update/after_save/should_be_findable.json
|
278
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber/update/after_save/should_keep_attributes.json
|
279
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber/update/should_be_savable.json
|
280
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber_create.json
|
281
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber_create_delete.json
|
282
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber_delete_create.json
|
283
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber_update_create.json
|
284
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber_update_delete.json
|
285
|
-
- spec/fixtures/credentials.yml.example
|
286
|
-
- spec/fixtures/sample_app.zip
|
287
|
-
- spec/fixtures/test_resources.rb
|
288
|
-
- spec/fixtures/zendesk.rb
|
289
|
-
- spec/live/Readme.md
|
290
|
-
- spec/live/activity_spec.rb
|
291
|
-
- spec/live/app_installation_spec.rb
|
292
|
-
- spec/live/app_spec.rb
|
293
|
-
- spec/live/audit_spec.rb
|
294
|
-
- spec/live/automation_spec.rb
|
295
|
-
- spec/live/bookmark_spec.rb
|
296
|
-
- spec/live/brand_spec.rb
|
297
|
-
- spec/live/category_spec.rb
|
298
|
-
- spec/live/collection_spec.rb
|
299
|
-
- spec/live/custom_role_spec.rb
|
300
|
-
- spec/live/dynamic_content/item_spec.rb
|
301
|
-
- spec/live/dynamic_content/variant_spec.rb
|
302
|
-
- spec/live/forum_spec.rb
|
303
|
-
- spec/live/forum_subscription_spec.rb
|
304
|
-
- spec/live/group_membership_spec.rb
|
305
|
-
- spec/live/group_spec.rb
|
306
|
-
- spec/live/identity_spec.rb
|
307
|
-
- spec/live/locale_spec.rb
|
308
|
-
- spec/live/macro_spec.rb
|
309
|
-
- spec/live/organization_field_spec.rb
|
310
|
-
- spec/live/organization_membership_spec.rb
|
311
|
-
- spec/live/organization_spec.rb
|
312
|
-
- spec/live/push_notification_device_spec.rb
|
313
|
-
- spec/live/request_spec.rb
|
314
|
-
- spec/live/satisfaction_rating_spec.rb
|
315
|
-
- spec/live/setting_spec.rb
|
316
|
-
- spec/live/suspended_ticket_spec.rb
|
317
|
-
- spec/live/tag_spec.rb
|
318
|
-
- spec/live/target_spec.rb
|
319
|
-
- spec/live/ticket_field_spec.rb
|
320
|
-
- spec/live/ticket_form_spec.rb
|
321
|
-
- spec/live/ticket_metrics_spec.rb
|
322
|
-
- spec/live/ticket_spec.rb
|
323
|
-
- spec/live/topic_comment_spec.rb
|
324
|
-
- spec/live/topic_spec.rb
|
325
|
-
- spec/live/topic_subscription_spec.rb
|
326
|
-
- spec/live/topic_vote_spec.rb
|
327
|
-
- spec/live/trigger_spec.rb
|
328
|
-
- spec/live/upload_spec.rb
|
329
|
-
- spec/live/user_field_spec.rb
|
330
|
-
- spec/live/user_spec.rb
|
331
|
-
- spec/live/user_view_spec.rb
|
332
|
-
- spec/live/view_spec.rb
|
333
|
-
- spec/live/voice/phone_number_spec.rb
|
334
|
-
- spec/macros/resource_macros.rb
|
335
234
|
- util/resource_handler.rb
|
336
235
|
- util/verb_handler.rb
|
337
|
-
|
338
|
-
homepage: http://developer.zendesk.com
|
236
|
+
homepage: https://developer.zendesk.com
|
339
237
|
licenses:
|
340
238
|
- Apache License Version 2.0
|
341
239
|
metadata: {}
|
@@ -359,98 +257,5 @@ rubygems_version: 2.5.0
|
|
359
257
|
signing_key:
|
360
258
|
specification_version: 4
|
361
259
|
summary: Zendesk REST API Client
|
362
|
-
test_files:
|
363
|
-
- spec/core/association_spec.rb
|
364
|
-
- spec/core/bulk_actions_spec.rb
|
365
|
-
- spec/core/client_spec.rb
|
366
|
-
- spec/core/collection_spec.rb
|
367
|
-
- spec/core/configuration_spec.rb
|
368
|
-
- spec/core/create_resource_spec.rb
|
369
|
-
- spec/core/data_namespace_spec.rb
|
370
|
-
- spec/core/data_resource_spec.rb
|
371
|
-
- spec/core/inflection_spec.rb
|
372
|
-
- spec/core/lru_cache_spec.rb
|
373
|
-
- spec/core/middleware/request/encode_json_spec.rb
|
374
|
-
- spec/core/middleware/request/etag_cache_spec.rb
|
375
|
-
- spec/core/middleware/request/retry_spec.rb
|
376
|
-
- spec/core/middleware/request/test.jpg
|
377
|
-
- spec/core/middleware/request/upload_spec.rb
|
378
|
-
- spec/core/middleware/response/callback_spec.rb
|
379
|
-
- spec/core/middleware/response/deflate_spec.rb
|
380
|
-
- spec/core/middleware/response/gzip_spec.rb
|
381
|
-
- spec/core/middleware/response/parse_iso_dates_spec.rb
|
382
|
-
- spec/core/middleware/response/parse_json_spec.rb
|
383
|
-
- spec/core/middleware/response/raise_error_spec.rb
|
384
|
-
- spec/core/middleware/response/sanitize_response_spec.rb
|
385
|
-
- spec/core/read_resource_spec.rb
|
386
|
-
- spec/core/resource_spec.rb
|
387
|
-
- spec/core/resources/automation_spec.rb
|
388
|
-
- spec/core/resources/macro_spec.rb
|
389
|
-
- spec/core/resources/trigger_spec.rb
|
390
|
-
- spec/core/resources/view_spec.rb
|
391
|
-
- spec/core/search_spec.rb
|
392
|
-
- spec/core/spec_helper.rb
|
393
|
-
- spec/core/trackie_spec.rb
|
394
|
-
- spec/fixtures/Argentina.gif
|
395
|
-
- spec/fixtures/Argentina2.gif
|
396
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber/creation/should_be_findable.json
|
397
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber/deletion/should_be_destroyable.json
|
398
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber/update/after_save/should_be_findable.json
|
399
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber/update/after_save/should_keep_attributes.json
|
400
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber/update/should_be_savable.json
|
401
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber_create.json
|
402
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber_create_delete.json
|
403
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber_delete_create.json
|
404
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber_update_create.json
|
405
|
-
- spec/fixtures/cassettes/ZendeskAPI_Voice_PhoneNumber_update_delete.json
|
406
|
-
- spec/fixtures/credentials.yml.example
|
407
|
-
- spec/fixtures/sample_app.zip
|
408
|
-
- spec/fixtures/test_resources.rb
|
409
|
-
- spec/fixtures/zendesk.rb
|
410
|
-
- spec/live/Readme.md
|
411
|
-
- spec/live/activity_spec.rb
|
412
|
-
- spec/live/app_installation_spec.rb
|
413
|
-
- spec/live/app_spec.rb
|
414
|
-
- spec/live/audit_spec.rb
|
415
|
-
- spec/live/automation_spec.rb
|
416
|
-
- spec/live/bookmark_spec.rb
|
417
|
-
- spec/live/brand_spec.rb
|
418
|
-
- spec/live/category_spec.rb
|
419
|
-
- spec/live/collection_spec.rb
|
420
|
-
- spec/live/custom_role_spec.rb
|
421
|
-
- spec/live/dynamic_content/item_spec.rb
|
422
|
-
- spec/live/dynamic_content/variant_spec.rb
|
423
|
-
- spec/live/forum_spec.rb
|
424
|
-
- spec/live/forum_subscription_spec.rb
|
425
|
-
- spec/live/group_membership_spec.rb
|
426
|
-
- spec/live/group_spec.rb
|
427
|
-
- spec/live/identity_spec.rb
|
428
|
-
- spec/live/locale_spec.rb
|
429
|
-
- spec/live/macro_spec.rb
|
430
|
-
- spec/live/organization_field_spec.rb
|
431
|
-
- spec/live/organization_membership_spec.rb
|
432
|
-
- spec/live/organization_spec.rb
|
433
|
-
- spec/live/push_notification_device_spec.rb
|
434
|
-
- spec/live/request_spec.rb
|
435
|
-
- spec/live/satisfaction_rating_spec.rb
|
436
|
-
- spec/live/setting_spec.rb
|
437
|
-
- spec/live/suspended_ticket_spec.rb
|
438
|
-
- spec/live/tag_spec.rb
|
439
|
-
- spec/live/target_spec.rb
|
440
|
-
- spec/live/ticket_field_spec.rb
|
441
|
-
- spec/live/ticket_form_spec.rb
|
442
|
-
- spec/live/ticket_metrics_spec.rb
|
443
|
-
- spec/live/ticket_spec.rb
|
444
|
-
- spec/live/topic_comment_spec.rb
|
445
|
-
- spec/live/topic_spec.rb
|
446
|
-
- spec/live/topic_subscription_spec.rb
|
447
|
-
- spec/live/topic_vote_spec.rb
|
448
|
-
- spec/live/trigger_spec.rb
|
449
|
-
- spec/live/upload_spec.rb
|
450
|
-
- spec/live/user_field_spec.rb
|
451
|
-
- spec/live/user_spec.rb
|
452
|
-
- spec/live/user_view_spec.rb
|
453
|
-
- spec/live/view_spec.rb
|
454
|
-
- spec/live/voice/phone_number_spec.rb
|
455
|
-
- spec/macros/resource_macros.rb
|
260
|
+
test_files: []
|
456
261
|
has_rdoc:
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
data/.yardopts
DELETED
data/Gemfile
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gem "simplecov", :platforms => :ruby_19, :group => :test
|
4
|
-
gem "jruby-openssl", :platforms => :jruby
|
5
|
-
|
6
|
-
group :test do
|
7
|
-
gem "byebug", :platform => [:ruby_20, :ruby_21]
|
8
|
-
gem "json", :platform => :ruby_18
|
9
|
-
|
10
|
-
# only used for uploads testing
|
11
|
-
gem "actionpack", "~> 3.2"
|
12
|
-
end
|
13
|
-
|
14
|
-
gemspec
|
data/LICENSE
DELETED
@@ -1,176 +0,0 @@
|
|
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.
|
175
|
-
|
176
|
-
END OF TERMS AND CONDITIONS
|