kinetic_sdk 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/GettingStarted.md +64 -0
- data/README.md +383 -0
- data/bin/console +12 -0
- data/bin/setup +8 -0
- data/gems/kontena-websocket-client-0.1.1/Gemfile +4 -0
- data/gems/kontena-websocket-client-0.1.1/LICENSE +190 -0
- data/gems/kontena-websocket-client-0.1.1/README.md +138 -0
- data/gems/kontena-websocket-client-0.1.1/Rakefile +6 -0
- data/gems/kontena-websocket-client-0.1.1/benchmark/benchmark-client.rb +45 -0
- data/gems/kontena-websocket-client-0.1.1/benchmark/benchmark-em.rb +66 -0
- data/gems/kontena-websocket-client-0.1.1/benchmark/benchmark.rb +161 -0
- data/gems/kontena-websocket-client-0.1.1/benchmark/benchmark.sh +17 -0
- data/gems/kontena-websocket-client-0.1.1/benchmark/websocket-echo-server.go +207 -0
- data/gems/kontena-websocket-client-0.1.1/examples/websocket-echo-client.rb +80 -0
- data/gems/kontena-websocket-client-0.1.1/kontena-websocket-client.gemspec +24 -0
- data/gems/kontena-websocket-client-0.1.1/lib/kontena/websocket/client/connection.rb +119 -0
- data/gems/kontena-websocket-client-0.1.1/lib/kontena/websocket/client/version.rb +13 -0
- data/gems/kontena-websocket-client-0.1.1/lib/kontena/websocket/client.rb +848 -0
- data/gems/kontena-websocket-client-0.1.1/lib/kontena/websocket/error.rb +81 -0
- data/gems/kontena-websocket-client-0.1.1/lib/kontena/websocket/logging.rb +55 -0
- data/gems/kontena-websocket-client-0.1.1/lib/kontena/websocket/openssl_patch.rb +10 -0
- data/gems/kontena-websocket-client-0.1.1/lib/kontena-websocket-client.rb +15 -0
- data/gems/mime-types-3.1/Code-of-Conduct.rdoc +74 -0
- data/gems/mime-types-3.1/Contributing.rdoc +130 -0
- data/gems/mime-types-3.1/History.rdoc +658 -0
- data/gems/mime-types-3.1/Licence.rdoc +25 -0
- data/gems/mime-types-3.1/Manifest.txt +31 -0
- data/gems/mime-types-3.1/README.rdoc +202 -0
- data/gems/mime-types-3.1/Rakefile +254 -0
- data/gems/mime-types-3.1/lib/mime/type/columnar.rb +55 -0
- data/gems/mime-types-3.1/lib/mime/type.rb +573 -0
- data/gems/mime-types-3.1/lib/mime/types/_columnar.rb +135 -0
- data/gems/mime-types-3.1/lib/mime/types/cache.rb +56 -0
- data/gems/mime-types-3.1/lib/mime/types/columnar.rb +1 -0
- data/gems/mime-types-3.1/lib/mime/types/container.rb +30 -0
- data/gems/mime-types-3.1/lib/mime/types/deprecations.rb +32 -0
- data/gems/mime-types-3.1/lib/mime/types/full.rb +17 -0
- data/gems/mime-types-3.1/lib/mime/types/loader.rb +148 -0
- data/gems/mime-types-3.1/lib/mime/types/logger.rb +37 -0
- data/gems/mime-types-3.1/lib/mime/types/registry.rb +81 -0
- data/gems/mime-types-3.1/lib/mime/types.rb +228 -0
- data/gems/mime-types-3.1/lib/mime-types.rb +1 -0
- data/gems/mime-types-3.1/test/bad-fixtures/malformed +9 -0
- data/gems/mime-types-3.1/test/fixture/json.json +1 -0
- data/gems/mime-types-3.1/test/fixture/old-data +9 -0
- data/gems/mime-types-3.1/test/fixture/yaml.yaml +55 -0
- data/gems/mime-types-3.1/test/minitest_helper.rb +13 -0
- data/gems/mime-types-3.1/test/test_mime_type.rb +603 -0
- data/gems/mime-types-3.1/test/test_mime_types.rb +161 -0
- data/gems/mime-types-3.1/test/test_mime_types_cache.rb +109 -0
- data/gems/mime-types-3.1/test/test_mime_types_class.rb +155 -0
- data/gems/mime-types-3.1/test/test_mime_types_lazy.rb +43 -0
- data/gems/mime-types-3.1/test/test_mime_types_loader.rb +32 -0
- data/gems/mime-types-data-3.2016.0521/Code-of-Conduct.md +75 -0
- data/gems/mime-types-data-3.2016.0521/Contributing.md +157 -0
- data/gems/mime-types-data-3.2016.0521/History.md +351 -0
- data/gems/mime-types-data-3.2016.0521/Licence.md +25 -0
- data/gems/mime-types-data-3.2016.0521/Manifest.txt +18 -0
- data/gems/mime-types-data-3.2016.0521/README.md +61 -0
- data/gems/mime-types-data-3.2016.0521/Rakefile +80 -0
- data/gems/mime-types-data-3.2016.0521/data/mime-types.json +1 -0
- data/gems/mime-types-data-3.2016.0521/data/mime.content_type.column +1964 -0
- data/gems/mime-types-data-3.2016.0521/data/mime.docs.column +1964 -0
- data/gems/mime-types-data-3.2016.0521/data/mime.encoding.column +1964 -0
- data/gems/mime-types-data-3.2016.0521/data/mime.flags.column +1964 -0
- data/gems/mime-types-data-3.2016.0521/data/mime.friendly.column +1964 -0
- data/gems/mime-types-data-3.2016.0521/data/mime.pext.column +1964 -0
- data/gems/mime-types-data-3.2016.0521/data/mime.use_instead.column +1964 -0
- data/gems/mime-types-data-3.2016.0521/data/mime.xrefs.column +1964 -0
- data/gems/mime-types-data-3.2016.0521/lib/mime/types/data.rb +21 -0
- data/gems/mime-types-data-3.2016.0521/lib/mime-types-data.rb +3 -0
- data/gems/multipart-post-2.0.0/Gemfile +14 -0
- data/gems/multipart-post-2.0.0/History.txt +60 -0
- data/gems/multipart-post-2.0.0/Manifest.txt +9 -0
- data/gems/multipart-post-2.0.0/README.md +77 -0
- data/gems/multipart-post-2.0.0/Rakefile +9 -0
- data/gems/multipart-post-2.0.0/lib/composite_io.rb +108 -0
- data/gems/multipart-post-2.0.0/lib/multipart_post.rb +9 -0
- data/gems/multipart-post-2.0.0/lib/multipartable.rb +29 -0
- data/gems/multipart-post-2.0.0/lib/net/http/post/multipart.rb +27 -0
- data/gems/multipart-post-2.0.0/lib/parts.rb +96 -0
- data/gems/multipart-post-2.0.0/multipart-post.gemspec +22 -0
- data/gems/multipart-post-2.0.0/test/multibyte.txt +1 -0
- data/gems/multipart-post-2.0.0/test/net/http/post/test_multipart.rb +110 -0
- data/gems/multipart-post-2.0.0/test/test_composite_io.rb +115 -0
- data/gems/multipart-post-2.0.0/test/test_parts.rb +86 -0
- data/gems/parallel-1.12.1/MIT-LICENSE.txt +20 -0
- data/gems/parallel-1.12.1/lib/parallel/processor_count.rb +93 -0
- data/gems/parallel-1.12.1/lib/parallel/version.rb +3 -0
- data/gems/parallel-1.12.1/lib/parallel.rb +500 -0
- data/gems/ruby-progressbar-1.9.0/LICENSE.txt +19 -0
- data/gems/ruby-progressbar-1.9.0/README.md +38 -0
- data/gems/ruby-progressbar-1.9.0/Rakefile +2 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/base.rb +183 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/calculators/length.rb +99 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/calculators/running_average.rb +9 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components/bar.rb +96 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components/percentage.rb +29 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components/rate.rb +43 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components/time.rb +107 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components/title.rb +13 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components.rb +5 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/errors/invalid_progress_error.rb +4 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/format/formatter.rb +27 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/format/molecule.rb +59 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/format/string.rb +36 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/format.rb +3 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/output.rb +68 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/outputs/non_tty.rb +47 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/outputs/null.rb +33 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/outputs/tty.rb +32 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/progress.rb +118 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/refinements/enumerator.rb +25 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/refinements.rb +1 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/throttle.rb +25 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/time.rb +30 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/timer.rb +72 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/version.rb +3 -0
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar.rb +18 -0
- data/gems/slugify-1.0.7/README +18 -0
- data/gems/slugify-1.0.7/lib/slugify.rb +1012 -0
- data/gems/slugify-1.0.7/lib/slugify_string.rb +11 -0
- data/gems/slugify-1.0.7/tests/slugify_test.rb +116 -0
- data/gems/slugify-1.0.7/tests/string_slugify_test.rb +23 -0
- data/gems/websocket-driver-0.6.5/CHANGELOG.md +123 -0
- data/gems/websocket-driver-0.6.5/LICENSE.md +22 -0
- data/gems/websocket-driver-0.6.5/README.md +369 -0
- data/gems/websocket-driver-0.6.5/examples/tcp_server.rb +28 -0
- data/gems/websocket-driver-0.6.5/ext/websocket-driver/Makefile +264 -0
- data/gems/websocket-driver-0.6.5/ext/websocket-driver/WebsocketMaskService.java +55 -0
- data/gems/websocket-driver-0.6.5/ext/websocket-driver/extconf.rb +4 -0
- data/gems/websocket-driver-0.6.5/ext/websocket-driver/websocket_mask.bundle +0 -0
- data/gems/websocket-driver-0.6.5/ext/websocket-driver/websocket_mask.c +41 -0
- data/gems/websocket-driver-0.6.5/ext/websocket-driver/websocket_mask.o +0 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/client.rb +140 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/draft75.rb +102 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/draft76.rb +96 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/event_emitter.rb +54 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/headers.rb +45 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/hybi/frame.rb +20 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/hybi/message.rb +31 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/hybi.rb +406 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/proxy.rb +68 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/server.rb +80 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/stream_reader.rb +55 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/driver.rb +199 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/http/headers.rb +112 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/http/request.rb +45 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/http/response.rb +29 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/http.rb +15 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/mask.rb +14 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/websocket_mask.rb +2 -0
- data/gems/websocket-driver-0.6.5/lib/websocket_mask.bundle +0 -0
- data/gems/websocket-driver-0.6.5-java/CHANGELOG.md +123 -0
- data/gems/websocket-driver-0.6.5-java/LICENSE.md +22 -0
- data/gems/websocket-driver-0.6.5-java/README.md +369 -0
- data/gems/websocket-driver-0.6.5-java/examples/tcp_server.rb +28 -0
- data/gems/websocket-driver-0.6.5-java/ext/websocket-driver/WebsocketMaskService.java +55 -0
- data/gems/websocket-driver-0.6.5-java/ext/websocket-driver/extconf.rb +4 -0
- data/gems/websocket-driver-0.6.5-java/ext/websocket-driver/websocket_mask.c +41 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/client.rb +140 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/draft75.rb +102 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/draft76.rb +96 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/event_emitter.rb +54 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/headers.rb +45 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/hybi/frame.rb +20 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/hybi/message.rb +31 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/hybi.rb +406 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/proxy.rb +68 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/server.rb +80 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/stream_reader.rb +55 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver.rb +199 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/http/headers.rb +112 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/http/request.rb +45 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/http/response.rb +29 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/http.rb +15 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/mask.rb +14 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket/websocket_mask.rb +2 -0
- data/gems/websocket-driver-0.6.5-java/lib/websocket_mask.jar +0 -0
- data/gems/websocket-extensions-0.1.3/CHANGELOG.md +15 -0
- data/gems/websocket-extensions-0.1.3/LICENSE.md +20 -0
- data/gems/websocket-extensions-0.1.3/README.md +313 -0
- data/gems/websocket-extensions-0.1.3/lib/websocket/extensions/parser.rb +111 -0
- data/gems/websocket-extensions-0.1.3/lib/websocket/extensions.rb +181 -0
- data/lib/kinetic-sdk.rb +1 -0
- data/lib/kinetic_sdk/bridgehub/bridgehub-sdk.rb +80 -0
- data/lib/kinetic_sdk/bridgehub/lib/access_keys.rb +67 -0
- data/lib/kinetic_sdk/bridgehub/lib/bridge.rb +69 -0
- data/lib/kinetic_sdk/discussions/discussions-sdk.rb +165 -0
- data/lib/kinetic_sdk/discussions/lib/discussions.rb +107 -0
- data/lib/kinetic_sdk/discussions/lib/invitations.rb +120 -0
- data/lib/kinetic_sdk/discussions/lib/messages.rb +190 -0
- data/lib/kinetic_sdk/discussions/lib/meta.rb +14 -0
- data/lib/kinetic_sdk/discussions/lib/participants.rb +64 -0
- data/lib/kinetic_sdk/discussions/lib/related_items.rb +54 -0
- data/lib/kinetic_sdk/discussions/lib/websockets.rb +96 -0
- data/lib/kinetic_sdk/filehub/filehub-sdk.rb +80 -0
- data/lib/kinetic_sdk/filehub/lib/access_keys.rb +67 -0
- data/lib/kinetic_sdk/filehub/lib/filestores.rb +67 -0
- data/lib/kinetic_sdk/request_ce/lib/attribute_definitions.rb +153 -0
- data/lib/kinetic_sdk/request_ce/lib/bridges.rb +66 -0
- data/lib/kinetic_sdk/request_ce/lib/categories.rb +34 -0
- data/lib/kinetic_sdk/request_ce/lib/datastore_form.rb +110 -0
- data/lib/kinetic_sdk/request_ce/lib/datastore_submissions.rb +157 -0
- data/lib/kinetic_sdk/request_ce/lib/form.rb +99 -0
- data/lib/kinetic_sdk/request_ce/lib/form_types.rb +51 -0
- data/lib/kinetic_sdk/request_ce/lib/jwt.rb +55 -0
- data/lib/kinetic_sdk/request_ce/lib/kapp.rb +93 -0
- data/lib/kinetic_sdk/request_ce/lib/meta.rb +14 -0
- data/lib/kinetic_sdk/request_ce/lib/oauth.rb +37 -0
- data/lib/kinetic_sdk/request_ce/lib/security_policy_definitions.rb +157 -0
- data/lib/kinetic_sdk/request_ce/lib/space.rb +89 -0
- data/lib/kinetic_sdk/request_ce/lib/submissions.rb +215 -0
- data/lib/kinetic_sdk/request_ce/lib/system_api.rb +69 -0
- data/lib/kinetic_sdk/request_ce/lib/teams.rb +113 -0
- data/lib/kinetic_sdk/request_ce/lib/users.rb +245 -0
- data/lib/kinetic_sdk/request_ce/lib/webhook_jobs.rb +142 -0
- data/lib/kinetic_sdk/request_ce/lib/webhooks.rb +192 -0
- data/lib/kinetic_sdk/request_ce/request-ce-sdk.rb +153 -0
- data/lib/kinetic_sdk/task/lib/access_keys.rb +94 -0
- data/lib/kinetic_sdk/task/lib/categories.rb +190 -0
- data/lib/kinetic_sdk/task/lib/config.rb +202 -0
- data/lib/kinetic_sdk/task/lib/engine.rb +42 -0
- data/lib/kinetic_sdk/task/lib/environment.rb +14 -0
- data/lib/kinetic_sdk/task/lib/errors.rb +165 -0
- data/lib/kinetic_sdk/task/lib/groups.rb +112 -0
- data/lib/kinetic_sdk/task/lib/handlers.rb +105 -0
- data/lib/kinetic_sdk/task/lib/health.rb +28 -0
- data/lib/kinetic_sdk/task/lib/license.rb +52 -0
- data/lib/kinetic_sdk/task/lib/policy_rules.rb +166 -0
- data/lib/kinetic_sdk/task/lib/setup.rb +56 -0
- data/lib/kinetic_sdk/task/lib/sources.rb +134 -0
- data/lib/kinetic_sdk/task/lib/tasks.rb +17 -0
- data/lib/kinetic_sdk/task/lib/trees.rb +274 -0
- data/lib/kinetic_sdk/task/lib/users.rb +75 -0
- data/lib/kinetic_sdk/task/task-sdk.rb +92 -0
- data/lib/kinetic_sdk/utils/kinetic-http-headers.rb +150 -0
- data/lib/kinetic_sdk/utils/kinetic-http-response.rb +75 -0
- data/lib/kinetic_sdk/utils/kinetic-http.rb +552 -0
- data/lib/kinetic_sdk/utils/logger.rb +70 -0
- data/lib/kinetic_sdk/utils/random.rb +30 -0
- data/lib/kinetic_sdk/version.rb +7 -0
- data/lib/kinetic_sdk.rb +57 -0
- metadata +414 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 1e8eb050d18a73811319295d6d60794a3683ae95
|
|
4
|
+
data.tar.gz: 51ce513d4a3e2d38fe12d356e3d70f528db8dac4
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: febab2779f3d476d60b287770512635813bf7b8f9a45ffbf1f9c2d24ece8c2526ebf79218f4341c20d4e966579f9003d9097774751e2ab35d9b0eafaadeb7336
|
|
7
|
+
data.tar.gz: 9b368596ac22f72c2a175ce7fe36033cc46918ab371f76c49a230c7d4fd582e3aa72516e5f6be7c313cc5823bbcf340b40e604ca7dbd1215fb3468bad7b049f2
|
data/GettingStarted.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Getting Started with Kinetic SDK
|
|
2
|
+
|
|
3
|
+
This is a guide for getting up and running quickly with the Kinetic SDK.
|
|
4
|
+
|
|
5
|
+
## About
|
|
6
|
+
|
|
7
|
+
The Kinetic SDK is a library that provides easy to use methods for interacting with the REST API built into Kinetic Data applications. The intention is for the end user to create a Ruby program/script, and include the Kinetic SDK into the program. This guide shows how to do that.
|
|
8
|
+
|
|
9
|
+
## How To
|
|
10
|
+
|
|
11
|
+
This document assumes you have the necessary requirements installed on your client computer before proceeding.
|
|
12
|
+
|
|
13
|
+
This guide also assumes you have the `git` program installed on your client machine in order to obtain the latest kinetic-sdk-rb code from Github.
|
|
14
|
+
|
|
15
|
+
If you do not have git and don't want to install it, you can download a zip file of the [latest Kinetic SDK code](https://github.com/kineticdata/kinetic-sdk-rb/archive/master.zip). You would then unzip this file, and copy the extracted `kinetic-sdk-rb-master` directory to the `my_project/vendor/kinetic-sdk-rb` directory.
|
|
16
|
+
|
|
17
|
+
### Prepare a Ruby program
|
|
18
|
+
|
|
19
|
+
Prepare your Ruby program/script to use the Kinetic SDK.
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# create the project directory
|
|
23
|
+
|
|
24
|
+
mkdir my_project
|
|
25
|
+
|
|
26
|
+
# clone the kinetic-sdk-rb repository from GitHub
|
|
27
|
+
# see above to download the zip file if you don't have the git client
|
|
28
|
+
|
|
29
|
+
git clone https://github.com/kineticdata/kinetic-sdk-rb.git my_project/vendor/kinetic-sdk-rb
|
|
30
|
+
|
|
31
|
+
# copy the sample driver to your project's root directory
|
|
32
|
+
|
|
33
|
+
cp my_project/vendor/kinetic-sdk-rb/samples/driver/driver.rb my_project/driver.rb
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Try the driver
|
|
37
|
+
|
|
38
|
+
Modify the sample driver program with your Kinetic Request CE (or other Kinetic Application) information, and try it out.
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
# make sure to change back to the project root directory
|
|
42
|
+
|
|
43
|
+
cd my_project
|
|
44
|
+
|
|
45
|
+
# run the driver file
|
|
46
|
+
|
|
47
|
+
ruby driver.rb
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Inline documentation
|
|
51
|
+
|
|
52
|
+
If you would like to generate the inline documentation for this SDK, perform the following steps.
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# install the bundler gem, and then then necessary documentation gems
|
|
56
|
+
cd my_project/vendor/kinetic-sdk-rb
|
|
57
|
+
gem install bundler
|
|
58
|
+
bundle install
|
|
59
|
+
|
|
60
|
+
# generate and open the inline Ruby documentation for the SDK
|
|
61
|
+
|
|
62
|
+
bundle exec rake doc
|
|
63
|
+
open rdoc/index.html
|
|
64
|
+
```
|
data/README.md
ADDED
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
# Ruby SDK for Kinetic Data application APIs
|
|
2
|
+
|
|
3
|
+
This library allows access to Kinetic Data application APIs from Ruby without having to write explicit HTTP requests.
|
|
4
|
+
|
|
5
|
+
## About
|
|
6
|
+
|
|
7
|
+
The Kinetic Ruby SDK is a library that consists of and SDK for each supported Kinetic Data application, and a helper HTTP library to make the HTTP requests.
|
|
8
|
+
|
|
9
|
+
### Supported Applications
|
|
10
|
+
|
|
11
|
+
The following Kinetic Data applications are supported in this SDK library:
|
|
12
|
+
|
|
13
|
+
* Kinetic Request CE 1.0.4+
|
|
14
|
+
* Kinetic Task 4.0+
|
|
15
|
+
* Kinetic Bridgehub 1.0+
|
|
16
|
+
* Kinetic Filehub 1.0+
|
|
17
|
+
* Kinetic Discussions 1.0+
|
|
18
|
+
|
|
19
|
+
## Getting Started
|
|
20
|
+
|
|
21
|
+
See the [Getting Started Guide](GettingStarted.md) for getting started quickly.
|
|
22
|
+
|
|
23
|
+
## Requirements
|
|
24
|
+
|
|
25
|
+
The following are a list of requirements to use this SDK:
|
|
26
|
+
|
|
27
|
+
### Ruby
|
|
28
|
+
|
|
29
|
+
The Kinetic Ruby SDK requires Ruby 2.2+, which includes JRuby 9.0+. You can determine the version of Ruby you are using with the following command:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
ruby -v
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Usage
|
|
36
|
+
|
|
37
|
+
Each Kinetic Data application SDK is meant to be used independent of other application SDKs. With this in mind, each application SDK must be initialized individually.
|
|
38
|
+
|
|
39
|
+
All of the HTTP methods return a {KineticSdk::Utils::KineticHttpResponse} object that contains additional methods to obtain information about the request status, the reponse body content, the response headers, and access to the raw response object.
|
|
40
|
+
|
|
41
|
+
### Installing and requiring the SDK
|
|
42
|
+
|
|
43
|
+
## Installation
|
|
44
|
+
|
|
45
|
+
If you are using Bundler, add this line to your application's Gemfile:
|
|
46
|
+
|
|
47
|
+
```ruby
|
|
48
|
+
gem 'kinetic_sdk'
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
And then execute:
|
|
52
|
+
|
|
53
|
+
$ bundle
|
|
54
|
+
|
|
55
|
+
Or install it yourself as:
|
|
56
|
+
|
|
57
|
+
$ gem install kinetic_sdk
|
|
58
|
+
|
|
59
|
+
Then in your application, include the SDK with the following code:
|
|
60
|
+
|
|
61
|
+
```ruby
|
|
62
|
+
require 'kinetic_sdk'
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
If you cloned or downloaded the Kinetic SDK source repository, then you can include
|
|
66
|
+
the SDK with the following code.
|
|
67
|
+
|
|
68
|
+
```ruby
|
|
69
|
+
# Assumes the SDK is installed to vendor/kinetic-sdk-rb
|
|
70
|
+
require File.join(File.expand_path(File.dirname(__FILE__)), 'vendor', 'kinetic-sdk-rb', 'kinetic-sdk')
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Kinetic BridgeHub SDK example
|
|
74
|
+
|
|
75
|
+
```ruby
|
|
76
|
+
bridgehub_sdk = KineticSdk::Bridgehub.new({
|
|
77
|
+
app_server_url: "http://localhost:8080/kinetic-bridgehub",
|
|
78
|
+
username: "configuration-user",
|
|
79
|
+
password: "password",
|
|
80
|
+
options: {
|
|
81
|
+
log_level: "info",
|
|
82
|
+
max_redirects: 3
|
|
83
|
+
}
|
|
84
|
+
})
|
|
85
|
+
response = bridgehub_sdk.find_bridges()
|
|
86
|
+
bridges = response.content['bridges']
|
|
87
|
+
|
|
88
|
+
puts response.code # String value of HTTP response code ("200", "400", "500", etc...)
|
|
89
|
+
puts response.status # Ruby Fixnum value of response.code (200, 400, 500, etc...)
|
|
90
|
+
puts response.content # Ruby Hash
|
|
91
|
+
puts response.content_string # JSON formatted response body
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Kinetic FileHub SDK example
|
|
95
|
+
|
|
96
|
+
```ruby
|
|
97
|
+
filehub_sdk = KineticSdk::Filehub.new({
|
|
98
|
+
app_server_url: "http://localhost:8080/kinetic-filehub",
|
|
99
|
+
username: "configuration-user",
|
|
100
|
+
password: "password",
|
|
101
|
+
options: {
|
|
102
|
+
log_level: "info",
|
|
103
|
+
max_redirects: 3
|
|
104
|
+
}
|
|
105
|
+
})
|
|
106
|
+
response = filehub_sdk.find_filestores()
|
|
107
|
+
filestores = response.content['filestores']
|
|
108
|
+
|
|
109
|
+
puts response.code # String value of HTTP response code ("200", "400", "500", etc...)
|
|
110
|
+
puts response.status # Ruby Fixnum value of response.code (200, 400, 500, etc...)
|
|
111
|
+
puts response.content # Ruby Hash
|
|
112
|
+
puts response.content_string # JSON formatted response body
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Kinetic Request CE SDK example of a Space User
|
|
116
|
+
|
|
117
|
+
```ruby
|
|
118
|
+
space_sdk = KineticSdk::RequestCe.new({
|
|
119
|
+
app_server_url: "http://localhost:8080/kinetic",
|
|
120
|
+
space_slug: "foo",
|
|
121
|
+
username: "space-user-1",
|
|
122
|
+
password: "password",
|
|
123
|
+
options: {
|
|
124
|
+
log_level: "info",
|
|
125
|
+
max_redirects: 3
|
|
126
|
+
}
|
|
127
|
+
})
|
|
128
|
+
response = space_sdk.find_kapps()
|
|
129
|
+
kapps = response.content['kapps']
|
|
130
|
+
|
|
131
|
+
puts response.code # String value of HTTP response code ("200", "400", "500", etc...)
|
|
132
|
+
puts response.status # Ruby Fixnum value of response.code (200, 400, 500, etc...)
|
|
133
|
+
puts response.content # Ruby Hash
|
|
134
|
+
puts response.content_string # JSON formatted response body
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Kinetic Request CE SDK example of a System User
|
|
138
|
+
|
|
139
|
+
```ruby
|
|
140
|
+
system_sdk = KineticSdk::RequestCe.new({
|
|
141
|
+
app_server_url: "http://localhost:8080/kinetic",
|
|
142
|
+
username: "configuration-user",
|
|
143
|
+
password: "password",
|
|
144
|
+
options: {
|
|
145
|
+
log_level: "info",
|
|
146
|
+
max_redirects: 3
|
|
147
|
+
}
|
|
148
|
+
})
|
|
149
|
+
response = system_sdk.add_space('My Company Space', 'my-company')
|
|
150
|
+
|
|
151
|
+
puts response.code # String value of HTTP response code ("200", "400", "500", etc...)
|
|
152
|
+
puts response.status # Ruby Fixnum value of response.code (200, 400, 500, etc...)
|
|
153
|
+
puts response.content # Ruby Hash
|
|
154
|
+
puts response.content_string # JSON formatted response body
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Kinetic Request CE SDK example of a Subdomain
|
|
158
|
+
|
|
159
|
+
This example requires a proxy server configured to rewrite the space slug subdomain to the expected Request CE API route.
|
|
160
|
+
|
|
161
|
+
```ruby
|
|
162
|
+
space_sdk = KineticSdk::RequestCe.new({
|
|
163
|
+
space_server_url: "https://foo.myapp.io",
|
|
164
|
+
space_slug: "foo",
|
|
165
|
+
username: "space-user-1",
|
|
166
|
+
password: "password",
|
|
167
|
+
options: {
|
|
168
|
+
log_level: "info",
|
|
169
|
+
max_redirects: 3
|
|
170
|
+
}
|
|
171
|
+
})
|
|
172
|
+
response = space_sdk.find_kapps()
|
|
173
|
+
kapps = response.content['kapps']
|
|
174
|
+
|
|
175
|
+
puts response.code # String value of HTTP response code ("200", "400", "500", etc...)
|
|
176
|
+
puts response.status # Ruby Fixnum value of response.code (200, 400, 500, etc...)
|
|
177
|
+
puts response.content # Ruby Hash
|
|
178
|
+
puts response.content_string # JSON formatted response body
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### Kinetic Task SDK example
|
|
182
|
+
|
|
183
|
+
```ruby
|
|
184
|
+
task_sdk = KineticSdk::Task.new({
|
|
185
|
+
app_server_url: "http://localhost:8080/kinetic-task",
|
|
186
|
+
username: "user-1",
|
|
187
|
+
password: "password",
|
|
188
|
+
options: {
|
|
189
|
+
export_directory: "/opt/exports/task-server-a",
|
|
190
|
+
log_level: "info",
|
|
191
|
+
max_redirects: 3
|
|
192
|
+
}
|
|
193
|
+
})
|
|
194
|
+
response = task_sdk.environment()
|
|
195
|
+
|
|
196
|
+
puts response.code # String value of HTTP response code ("200", "400", "500", etc...)
|
|
197
|
+
puts response.status # Ruby Fixnum value of response.code (200, 400, 500, etc...)
|
|
198
|
+
puts response.content # Ruby Hash
|
|
199
|
+
puts response.content_string # JSON formatted response body
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Kinetic Discussions SDK example of a Space User
|
|
203
|
+
|
|
204
|
+
```ruby
|
|
205
|
+
discussions_sdk = KineticSdk::Discussions.new({
|
|
206
|
+
app_server_url: "http://localhost:8080",
|
|
207
|
+
space_slug: "foo",
|
|
208
|
+
username: "space-user-1",
|
|
209
|
+
password: "password",
|
|
210
|
+
options: {
|
|
211
|
+
log_level: "info",
|
|
212
|
+
export_directory: "/Users/jboespflug/tmp/discussions",
|
|
213
|
+
oauth_client_id: "kinops",
|
|
214
|
+
oauth_client_secret: "kinops",
|
|
215
|
+
max_redirects: 3
|
|
216
|
+
}
|
|
217
|
+
})
|
|
218
|
+
response = discussions_sdk.find_discussions()
|
|
219
|
+
discussions = response.content['discussions']
|
|
220
|
+
|
|
221
|
+
puts response.code # String value of HTTP response code ("200", "400", "500", etc...)
|
|
222
|
+
puts response.status # Ruby Fixnum value of response.code (200, 400, 500, etc...)
|
|
223
|
+
puts response.content # Ruby Hash
|
|
224
|
+
puts response.content_string # JSON formatted response body
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### Kinetic Discussions SDK example of a Subdomain
|
|
228
|
+
|
|
229
|
+
This example requires a proxy server configured to rewrite the space slug subdomain to the expected Discussions API route.
|
|
230
|
+
|
|
231
|
+
```ruby
|
|
232
|
+
discussions_sdk = KineticSdk::Discussions.new({
|
|
233
|
+
space_server_url: "https://foo.myapp.io",
|
|
234
|
+
space_slug: "foo",
|
|
235
|
+
username: "space-user-1",
|
|
236
|
+
password: "password",
|
|
237
|
+
options: {
|
|
238
|
+
log_level: "info",
|
|
239
|
+
export_directory: "/Users/jboespflug/tmp/discussions",
|
|
240
|
+
oauth_client_id: "kinops",
|
|
241
|
+
oauth_client_secret: "kinops",
|
|
242
|
+
max_redirects: 3
|
|
243
|
+
}
|
|
244
|
+
})
|
|
245
|
+
response = discussions_sdk.find_discussions()
|
|
246
|
+
discussions = response.content['discussions']
|
|
247
|
+
|
|
248
|
+
puts response.code # String value of HTTP response code ("200", "400", "500", etc...)
|
|
249
|
+
puts response.status # Ruby Fixnum value of response.code (200, 400, 500, etc...)
|
|
250
|
+
puts response.content # Ruby Hash
|
|
251
|
+
puts response.content_string # JSON formatted response body
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
## SSL Options
|
|
255
|
+
|
|
256
|
+
Starting in Kinetic SDK version 0.0.2, server certificate validation is turned off by default. In version 0.0.1 it was enabled, but this caused problems with self-signed certificates and there was no way to disable it.
|
|
257
|
+
|
|
258
|
+
Beginning with version 0.0.2, there are now two additional options that can be passed when constructing the SDK object.
|
|
259
|
+
|
|
260
|
+
* `ssl_verify_mode`: allows server certificate validation when the value `peer` is used. (default `none`).
|
|
261
|
+
* `ssl_ca_file`: allows specifying the server certificate key file (PEM format). Used when server certificate validation is enabled (`ssl_verify_mode: "peer"`).
|
|
262
|
+
|
|
263
|
+
May be used with all application SDKs.
|
|
264
|
+
|
|
265
|
+
**Example 1 using Kinetic Request CE without server certificate validation:**
|
|
266
|
+
|
|
267
|
+
```ruby
|
|
268
|
+
space_sdk = KineticSdk::RequestCe.new({
|
|
269
|
+
...
|
|
270
|
+
options: {}
|
|
271
|
+
})
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
**Example 2 using Kinetic Request CE without server certificate validation:**
|
|
275
|
+
|
|
276
|
+
```ruby
|
|
277
|
+
space_sdk = KineticSdk::RequestCe.new({
|
|
278
|
+
...
|
|
279
|
+
options: {
|
|
280
|
+
ssl_verify_mode: "none"
|
|
281
|
+
}
|
|
282
|
+
})
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
**Example using Kinetic Request CE with server certificate validation and known CAs:**
|
|
286
|
+
|
|
287
|
+
```ruby
|
|
288
|
+
space_sdk = KineticSdk::RequestCe.new({
|
|
289
|
+
...
|
|
290
|
+
options: {
|
|
291
|
+
ssl_verify_mode: "peer"
|
|
292
|
+
}
|
|
293
|
+
})
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
**Example using Kinetic Request CE with server certificate validation and a self-signing CA:**
|
|
297
|
+
|
|
298
|
+
```ruby
|
|
299
|
+
space_sdk = KineticSdk::RequestCe.new({
|
|
300
|
+
...
|
|
301
|
+
options: {
|
|
302
|
+
ssl_verify_mode: "peer",
|
|
303
|
+
ssl_ca_file: "/path/to/self-signing-ca.pem"
|
|
304
|
+
}
|
|
305
|
+
})
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
## Advanced Usage
|
|
309
|
+
|
|
310
|
+
If you need to make a custom HTTP call for some reason, there is a class that allows you to do that. Simply make sure the KineticSdk is required in your program. See the [Getting Started Guide](GettingStarted.md) for details.
|
|
311
|
+
|
|
312
|
+
Then you need to instantiate a new instance of the {KineticSdk::Utils::KineticHttp} class, and call the desired HTTP method with the appropriate information. Each response will be returned as a {KineticSdk::Utils::KineticHttpResponse} object.
|
|
313
|
+
|
|
314
|
+
```ruby
|
|
315
|
+
# instantiate the KineticHttp class without authentication
|
|
316
|
+
http = KineticSdk::Utils::KineticHttp.new
|
|
317
|
+
|
|
318
|
+
# instantiate the KineticHttp class with Basic authentication
|
|
319
|
+
http = KineticSdk::Utils::KineticHttp.new("john.doe@company.com", "s3cretP@ssw0rd")
|
|
320
|
+
|
|
321
|
+
# call the appropriate method
|
|
322
|
+
|
|
323
|
+
# custom HTTP delete
|
|
324
|
+
response = http.delete("https://my-server.com", default_headers)
|
|
325
|
+
|
|
326
|
+
# custom HTTP get
|
|
327
|
+
response = http.get(
|
|
328
|
+
"https://my-server.com",
|
|
329
|
+
{ foo: 'foo', bar: 'bar' },
|
|
330
|
+
default_headers)
|
|
331
|
+
|
|
332
|
+
# custom HTTP patch
|
|
333
|
+
response = http.patch(
|
|
334
|
+
"https://my-server.com",
|
|
335
|
+
{ foo: 'foo', bar: 'bar' },
|
|
336
|
+
default_headers)
|
|
337
|
+
|
|
338
|
+
# custom HTTP post
|
|
339
|
+
response = http.post(
|
|
340
|
+
"https://my-server.com",
|
|
341
|
+
{ foo: 'foo', bar: 'bar' },
|
|
342
|
+
{ "Custom Header" => "a custom value" }.merge(default_headers))
|
|
343
|
+
|
|
344
|
+
# custom HTTP post multipart/form-data (for file uploads)
|
|
345
|
+
response = http.post_multipart(
|
|
346
|
+
"https://my-server.com",
|
|
347
|
+
{ file: File.new('/path/file.txt', 'rb') },
|
|
348
|
+
{ "Custom Header" => "a custom value" }.merge(default_headers))
|
|
349
|
+
|
|
350
|
+
# custom HTTP put
|
|
351
|
+
response = http.put(
|
|
352
|
+
"https://my-server.com",
|
|
353
|
+
{ foo: 'foo', bar: 'bar' },
|
|
354
|
+
default_headers)
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
## Additional Documentation
|
|
358
|
+
|
|
359
|
+
The RDoc documentation for the SDK can be generated by running a rake command. This will provide detailed information for each module, class, and method. The output can be found in the generated `rdoc` directory.
|
|
360
|
+
|
|
361
|
+
In order to do this however, the `yard` gem is required and must first be installed.
|
|
362
|
+
|
|
363
|
+
This SDK includes a [Gemfile](./Gemfile) that can be used with the `bundler` gem to ensure the proper version is installed.
|
|
364
|
+
|
|
365
|
+
Install the Bundler gem:
|
|
366
|
+
|
|
367
|
+
gem install bundler
|
|
368
|
+
|
|
369
|
+
_IMPORTANT NOTE_: If using [rbenv](https://github.com/rbenv/rbenv) to manage Ruby versions, run the following command.
|
|
370
|
+
|
|
371
|
+
rbenv rehash
|
|
372
|
+
|
|
373
|
+
Finally, install the dependency gems:
|
|
374
|
+
|
|
375
|
+
bundle install
|
|
376
|
+
|
|
377
|
+
Now that the required documentation generation gem is installed, a simple Rake command can be run to generate the inline documentation. For this SDK, the following commands are all equivalent:
|
|
378
|
+
|
|
379
|
+
```ruby
|
|
380
|
+
bundle exec rake
|
|
381
|
+
bundle exec rake doc
|
|
382
|
+
bundle exec rake yard
|
|
383
|
+
```
|
data/bin/console
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
if !Gem::Specification.find_all_by_name('kinetic_sdk').empty?
|
|
4
|
+
require "bundler/setup"
|
|
5
|
+
else
|
|
6
|
+
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
7
|
+
end
|
|
8
|
+
require "kinetic_sdk"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
require "irb"
|
|
12
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Copyright 2017 Kontena, Inc.
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
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.
|
|
14
|
+
|
|
15
|
+
Apache License
|
|
16
|
+
Version 2.0, January 2004
|
|
17
|
+
http://www.apache.org/licenses/
|
|
18
|
+
|
|
19
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
20
|
+
|
|
21
|
+
1. Definitions.
|
|
22
|
+
|
|
23
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
24
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
25
|
+
|
|
26
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
27
|
+
the copyright owner that is granting the License.
|
|
28
|
+
|
|
29
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
30
|
+
other entities that control, are controlled by, or are under common
|
|
31
|
+
control with that entity. For the purposes of this definition,
|
|
32
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
33
|
+
direction or management of such entity, whether by contract or
|
|
34
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
35
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
36
|
+
|
|
37
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
38
|
+
exercising permissions granted by this License.
|
|
39
|
+
|
|
40
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
41
|
+
including but not limited to software source code, documentation
|
|
42
|
+
source, and configuration files.
|
|
43
|
+
|
|
44
|
+
"Object" form shall mean any form resulting from mechanical
|
|
45
|
+
transformation or translation of a Source form, including but
|
|
46
|
+
not limited to compiled object code, generated documentation,
|
|
47
|
+
and conversions to other media types.
|
|
48
|
+
|
|
49
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
50
|
+
Object form, made available under the License, as indicated by a
|
|
51
|
+
copyright notice that is included in or attached to the work
|
|
52
|
+
(an example is provided in the Appendix below).
|
|
53
|
+
|
|
54
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
55
|
+
form, that is based on (or derived from) the Work and for which the
|
|
56
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
57
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
58
|
+
of this License, Derivative Works shall not include works that remain
|
|
59
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
60
|
+
the Work and Derivative Works thereof.
|
|
61
|
+
|
|
62
|
+
"Contribution" shall mean any work of authorship, including
|
|
63
|
+
the original version of the Work and any modifications or additions
|
|
64
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
65
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
66
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
67
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
68
|
+
means any form of electronic, verbal, or written communication sent
|
|
69
|
+
to the Licensor or its representatives, including but not limited to
|
|
70
|
+
communication on electronic mailing lists, source code control systems,
|
|
71
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
72
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
73
|
+
excluding communication that is conspicuously marked or otherwise
|
|
74
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
75
|
+
|
|
76
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
77
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
78
|
+
subsequently incorporated within the Work.
|
|
79
|
+
|
|
80
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
81
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
82
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
83
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
84
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
85
|
+
Work and such Derivative Works in Source or Object form.
|
|
86
|
+
|
|
87
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
88
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
89
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
90
|
+
(except as stated in this section) patent license to make, have made,
|
|
91
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
92
|
+
where such license applies only to those patent claims licensable
|
|
93
|
+
by such Contributor that are necessarily infringed by their
|
|
94
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
95
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
96
|
+
institute patent litigation against any entity (including a
|
|
97
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
98
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
99
|
+
or contributory patent infringement, then any patent licenses
|
|
100
|
+
granted to You under this License for that Work shall terminate
|
|
101
|
+
as of the date such litigation is filed.
|
|
102
|
+
|
|
103
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
104
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
105
|
+
modifications, and in Source or Object form, provided that You
|
|
106
|
+
meet the following conditions:
|
|
107
|
+
|
|
108
|
+
(a) You must give any other recipients of the Work or
|
|
109
|
+
Derivative Works a copy of this License; and
|
|
110
|
+
|
|
111
|
+
(b) You must cause any modified files to carry prominent notices
|
|
112
|
+
stating that You changed the files; and
|
|
113
|
+
|
|
114
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
115
|
+
that You distribute, all copyright, patent, trademark, and
|
|
116
|
+
attribution notices from the Source form of the Work,
|
|
117
|
+
excluding those notices that do not pertain to any part of
|
|
118
|
+
the Derivative Works; and
|
|
119
|
+
|
|
120
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
121
|
+
distribution, then any Derivative Works that You distribute must
|
|
122
|
+
include a readable copy of the attribution notices contained
|
|
123
|
+
within such NOTICE file, excluding those notices that do not
|
|
124
|
+
pertain to any part of the Derivative Works, in at least one
|
|
125
|
+
of the following places: within a NOTICE text file distributed
|
|
126
|
+
as part of the Derivative Works; within the Source form or
|
|
127
|
+
documentation, if provided along with the Derivative Works; or,
|
|
128
|
+
within a display generated by the Derivative Works, if and
|
|
129
|
+
wherever such third-party notices normally appear. The contents
|
|
130
|
+
of the NOTICE file are for informational purposes only and
|
|
131
|
+
do not modify the License. You may add Your own attribution
|
|
132
|
+
notices within Derivative Works that You distribute, alongside
|
|
133
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
134
|
+
that such additional attribution notices cannot be construed
|
|
135
|
+
as modifying the License.
|
|
136
|
+
|
|
137
|
+
You may add Your own copyright statement to Your modifications and
|
|
138
|
+
may provide additional or different license terms and conditions
|
|
139
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
140
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
141
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
142
|
+
the conditions stated in this License.
|
|
143
|
+
|
|
144
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
145
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
146
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
147
|
+
this License, without any additional terms or conditions.
|
|
148
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
149
|
+
the terms of any separate license agreement you may have executed
|
|
150
|
+
with Licensor regarding such Contributions.
|
|
151
|
+
|
|
152
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
153
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
154
|
+
except as required for reasonable and customary use in describing the
|
|
155
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
156
|
+
|
|
157
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
158
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
159
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
160
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
161
|
+
implied, including, without limitation, any warranties or conditions
|
|
162
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
163
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
164
|
+
appropriateness of using or redistributing the Work and assume any
|
|
165
|
+
risks associated with Your exercise of permissions under this License.
|
|
166
|
+
|
|
167
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
168
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
169
|
+
unless required by applicable law (such as deliberate and grossly
|
|
170
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
171
|
+
liable to You for damages, including any direct, indirect, special,
|
|
172
|
+
incidental, or consequential damages of any character arising as a
|
|
173
|
+
result of this License or out of the use or inability to use the
|
|
174
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
175
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
176
|
+
other commercial damages or losses), even if such Contributor
|
|
177
|
+
has been advised of the possibility of such damages.
|
|
178
|
+
|
|
179
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
180
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
181
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
182
|
+
or other liability obligations and/or rights consistent with this
|
|
183
|
+
License. However, in accepting such obligations, You may act only
|
|
184
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
185
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
186
|
+
defend, and hold each Contributor harmless for any liability
|
|
187
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
188
|
+
of your accepting any such warranty or additional liability.
|
|
189
|
+
|
|
190
|
+
END OF TERMS AND CONDITIONS
|