virgil-sdk 4.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +7 -0
  2. data/.DS_Store +0 -0
  3. data/.gitignore +15 -0
  4. data/Gemfile +4 -0
  5. data/README.md +134 -0
  6. data/Rakefile +9 -0
  7. data/bin/console +16 -0
  8. data/bin/setup +8 -0
  9. data/dockefiles/Dockerfile-200 +25 -0
  10. data/dockefiles/Dockerfile-2110 +36 -0
  11. data/dockefiles/Dockerfile-220 +26 -0
  12. data/dockefiles/Dockerfile-226 +25 -0
  13. data/dockefiles/Dockerfile-233 +25 -0
  14. data/dockefiles/Dockerfile-240 +26 -0
  15. data/docker-compose.yml +107 -0
  16. data/lib/virgil/sdk.rb +10 -0
  17. data/lib/virgil/sdk/client.rb +47 -0
  18. data/lib/virgil/sdk/client/card.rb +142 -0
  19. data/lib/virgil/sdk/client/card_validator.rb +104 -0
  20. data/lib/virgil/sdk/client/http.rb +45 -0
  21. data/lib/virgil/sdk/client/http/base_connection.rb +112 -0
  22. data/lib/virgil/sdk/client/http/cards_service_connection.rb +113 -0
  23. data/lib/virgil/sdk/client/http/request.rb +63 -0
  24. data/lib/virgil/sdk/client/request_signer.rb +90 -0
  25. data/lib/virgil/sdk/client/requests.rb +50 -0
  26. data/lib/virgil/sdk/client/requests/confirm_identity_request.rb +67 -0
  27. data/lib/virgil/sdk/client/requests/create_card_request.rb +105 -0
  28. data/lib/virgil/sdk/client/requests/revoke_card_request.rb +85 -0
  29. data/lib/virgil/sdk/client/requests/signable_request.rb +142 -0
  30. data/lib/virgil/sdk/client/requests/verify_identity_request.rb +60 -0
  31. data/lib/virgil/sdk/client/search_criteria.rb +79 -0
  32. data/lib/virgil/sdk/client/signatures_base64.rb +25 -0
  33. data/lib/virgil/sdk/client/virgil_client.rb +425 -0
  34. data/lib/virgil/sdk/cryptography.rb +42 -0
  35. data/lib/virgil/sdk/cryptography/hashes.rb +44 -0
  36. data/lib/virgil/sdk/cryptography/hashes/fingerprint.rb +79 -0
  37. data/lib/virgil/sdk/cryptography/hashes/hash_algorithm.rb +91 -0
  38. data/lib/virgil/sdk/cryptography/keys.rb +48 -0
  39. data/lib/virgil/sdk/cryptography/keys/key_pair.rb +46 -0
  40. data/lib/virgil/sdk/cryptography/keys/key_pair_type.rb +108 -0
  41. data/lib/virgil/sdk/cryptography/keys/key_storage.rb +177 -0
  42. data/lib/virgil/sdk/cryptography/keys/private_key.rb +44 -0
  43. data/lib/virgil/sdk/cryptography/keys/public_key.rb +44 -0
  44. data/lib/virgil/sdk/cryptography/keys/storage_item.rb +63 -0
  45. data/lib/virgil/sdk/cryptography/virgil_crypto.rb +411 -0
  46. data/lib/virgil/sdk/high_level.rb +21 -0
  47. data/lib/virgil/sdk/high_level/virgil_api.rb +71 -0
  48. data/lib/virgil/sdk/high_level/virgil_app_credentials.rb +54 -0
  49. data/lib/virgil/sdk/high_level/virgil_buffer.rb +161 -0
  50. data/lib/virgil/sdk/high_level/virgil_card.rb +204 -0
  51. data/lib/virgil/sdk/high_level/virgil_card_manager.rb +294 -0
  52. data/lib/virgil/sdk/high_level/virgil_card_verifier_info.rb +49 -0
  53. data/lib/virgil/sdk/high_level/virgil_context.rb +69 -0
  54. data/lib/virgil/sdk/high_level/virgil_identity.rb +17 -0
  55. data/lib/virgil/sdk/high_level/virgil_identity/email_confirmation.rb +60 -0
  56. data/lib/virgil/sdk/high_level/virgil_identity/validation_token.rb +49 -0
  57. data/lib/virgil/sdk/high_level/virgil_identity/verification_attempt.rb +69 -0
  58. data/lib/virgil/sdk/high_level/virgil_identity/verification_options.rb +56 -0
  59. data/lib/virgil/sdk/high_level/virgil_key.rb +168 -0
  60. data/lib/virgil/sdk/high_level/virgil_key_manager.rb +97 -0
  61. data/lib/virgil/sdk/version.rb +5 -0
  62. data/virgil-sdk.gemspec +31 -0
  63. metadata +203 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 62b33c8c8fa9703959fa5b2aa79b18de5e6a8fc7
4
+ data.tar.gz: 9ae4342ed919b4664f1f54487b0ec0bb53d4038c
5
+ SHA512:
6
+ metadata.gz: 5b98e2d0c08ec1277a74f09149cd76eaff5e42e2f25b4cbff526e512394deb4d528b99a87d2f0e847a0c4770a2f224f887ff2c19229df9b191985669a428409a
7
+ data.tar.gz: 7909cd3752d9679ad569b751ff3aa0461165e15bc092d583724f2e6ec4e925d126487d48c5dac82a6687daea6c0dfc06c74c1f48a5574ad4f231c11862675f3d
data/.DS_Store ADDED
Binary file
data/.gitignore ADDED
@@ -0,0 +1,15 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ lib/virgil/sdk/virgil_crypto_ruby.so
11
+ *.gem
12
+ .idea
13
+ sample.rb
14
+ key_storage
15
+ *.virgilkey
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in virgil-sdk.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,134 @@
1
+ # Virgil Security Ruby SDK
2
+
3
+ [Installation](#installation) | [Encryption Example](#encryption-example) | [Initialization](#initialization) | [Documentation](#documentation) | [Support](#support)
4
+
5
+ [Virgil Security](https://virgilsecurity.com) provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely store data, provide passwordless login, and ensure data integrity.
6
+
7
+ For a full overview head over to our Ruby [Get Started][_getstarted] guides.
8
+
9
+ ## Installation
10
+
11
+ The Virgil SDK is provided as a gem named *virgil-sdk*. The package is distributed via *bundler* package manager.
12
+
13
+ The gem is available for Ruby 2.1 and newer.
14
+
15
+ Installing the gem
16
+
17
+ To install package use the command below:
18
+
19
+ ```
20
+ gem install virgil-sdk
21
+ ```
22
+
23
+ or add the following line to your Gemfile:
24
+
25
+ ```
26
+ gem 'virgil-sdk', '~> 4.2.0'
27
+ ```
28
+
29
+ __Next:__ [Get Started with the Ruby SDK][_getstarted].
30
+
31
+ ## Encryption Example
32
+
33
+ Virgil Security makes it super easy to add encryption to any application. With our SDK you create a public [__Virgil Card__](#link_to_virgil_cards_guide) for every one of your users and devices. With these in place you can easily encrypt any data in the client.
34
+
35
+ ```ruby
36
+ require "virgil/sdk"
37
+ include Virgil::SDK::HighLevel
38
+
39
+ # initialize Virgil SDK
40
+ virgil = VirgilApi.new(access_token: "[YOUR_ACCESS_TOKEN_HERE]")
41
+
42
+ # find Alice's card(s)
43
+ alice_cards = virgil.cards.find("alice")
44
+
45
+ # encrypt the message using Alice's cards
46
+ message = "Hello Alice!"
47
+ encrypted_message = alice_cards.encrypt(message)
48
+
49
+ # transmit the message with your preferred technology
50
+ transmit_message(encrypted_message.to_base64)
51
+ ```
52
+
53
+ The receiving user then uses their stored __private key__ to decrypt the message.
54
+
55
+
56
+ ```ruby
57
+ # load Alice's Key from storage.
58
+ alice_key = virgil.keys.load("alice_key_1", "mypassword")
59
+
60
+ # decrypt the message using the key
61
+ original_message = alice_key.decrypt(transfer_data).to_s
62
+ ```
63
+
64
+ __Next:__ To [get you properly started][_encryption_get_started_guide] you'll need to know how to create and store Virgil Cards. Our [Get Started guide][_encryption_get_started_guide] will get you there all the way.
65
+
66
+ __Also:__ [Encrypted communication][_getstarted_encryption] is just one of the few things our SDK can do. Have a look at our guides on [Encrypted Storage][_getstarted_storage], [Data Integrity][_getstarted_data_integrity] and [Passwordless Login][_getstarted_passwordless_login] for more information.
67
+
68
+
69
+ ## Initialization
70
+
71
+ To use this SDK you need to [sign up for an account](https://developer.virgilsecurity.com/account/signup) and create your first __application__. Make sure to save the __app id__, __private key__ and it's __password__. After this, create an __application token__ for your application to make authenticated requests from your clients.
72
+
73
+ To initialize the SDK on the client side you will only need the __access token__ you created.
74
+
75
+ ```ruby
76
+ virgil = VirgilApi.new(access_token: "[YOUR_ACCESS_TOKEN_HERE]")
77
+ ```
78
+
79
+ > __Note:__ this client will have [limited capabilities](#guide_on_client_access_permissions). For example, it will be able to generate new __Cards__ but it will need a server-side client to transmit these to Virgil.
80
+
81
+ To initialize the SDK on the server side we will need the __access token__, __app id__ and the __App Key__ you created on the [Developer Dashboard](https://developer.virgilsecurity.com/).
82
+
83
+ ```ruby
84
+ # initialize Virgil SDK high-level instance.
85
+ context = VirgilContext.new(
86
+ access_token: "[YOUR_ACCESS_TOKEN_HERE]",
87
+ # Credentials are required only in case of publish and revoke local Virgil Cards.
88
+ credentials: VirgilAppCredentials.new(app_id: "[YOUR_APP_ID_HERE]",
89
+ app_key_data: VirgilBuffer.from_file("[YOUR_APP_KEY_PATH_HERE]"),
90
+ app_key_password: "[YOUR_APP_KEY_PASSWORD_HERE]"),
91
+ card_verifiers: [ VirgilCardVerifierInfo.new("[YOUR_CARD_ID_HERE]",
92
+ VirgilBuffer.from_base64("[YOUR_PUBLIC_KEY_HERE]"))]
93
+ )
94
+
95
+ virgil = VirgilApi.new(context: context)
96
+
97
+ ```
98
+
99
+ Next: [Learn more about our the different ways of initializing the Ruby SDK](#_guide_initialization) in our documentation.
100
+
101
+ ## Documentation
102
+
103
+ Virgil Security has a powerful set of APIs, and the documentation is there to get you started today.
104
+
105
+ * [Get Started][_getstarted_root] documentation
106
+ * [Initialize the SDK][_initialize_root]
107
+ * [Encrypted storage][_getstarted_storage]
108
+ * [Encrypted communication][_getstarted_encryption]
109
+ * [Data integrity][_getstarted_data_integrity]
110
+ * [Passwordless login][_getstarted_passwordless_login]
111
+ * [Guides][_guides]
112
+ * [Virgil Cards][_guide_virgil_cards]
113
+ * [Virgil Keys][_guide_virgil_keys]
114
+
115
+ ## License
116
+
117
+ This library is released under the [3-clause BSD License](LICENSE).
118
+
119
+ ## Support
120
+
121
+ Our developer support team is here to help you. You can find us on [Twitter](https://twitter.com/virgilsecurity) and [email](support).
122
+
123
+ [support]: mailto:support@virgilsecurity.com
124
+ [_getstarted_root]: https://virgilsecurity.com/docs/sdk/ruby/
125
+ [_getstarted]: https://virgilsecurity.com/docs/sdk/ruby/
126
+ [_getstarted_encryption]: https://virgilsecurity.com/docs/use-cases/encrypted-communication
127
+ [_getstarted_storage]: https://virgilsecurity.com/docs/use-cases/secure-data-at-rest
128
+ [_getstarted_data_integrity]: https://virgilsecurity.com/docs/use-cases/data-verification
129
+ [_getstarted_passwordless_login]: https://virgilsecurity.com/docs/use-cases/passwordless-authentication
130
+ [_guides]: https://stg.virgilsecurity.com/docs/sdk/ruby/features
131
+ [_guide_initialization]: https://virgilsecurity.com/docs/sdk/ruby/get-started
132
+ [_guide_virgil_cards]: https://virgilsecurity.com/docs/sdk/ruby/features#virgil-cards
133
+ [_guide_virgil_keys]: https://virgilsecurity.com/docs/sdk/ruby/features#virgil-keys
134
+ [_initialize_root]: https://virgilsecurity.com/docs/sdk/ruby/programming-guide#initializing
data/Rakefile ADDED
@@ -0,0 +1,9 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new do |t|
5
+ t.libs << 'test'
6
+ t.test_files = FileList['test/**/*_test.rb']
7
+ end
8
+
9
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "virgil/sdk"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
15
+
16
+
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,25 @@
1
+ FROM ruby:2.0.0
2
+ MAINTAINER marfachaiko@gmail.com
3
+
4
+ # Install apt based dependencies required to run Rails as
5
+ # well as RubyGems. As the Ruby image itself is based on a
6
+ # Debian image, we use apt-get to install those.
7
+ RUN apt-get update && apt-get install -y \
8
+ build-essential
9
+
10
+ # Configure the main working directory. This is the base
11
+ # directory used in any further RUN, COPY, and ENTRYPOINT
12
+ # commands.
13
+ RUN mkdir /virgil-sdk-2.0.0
14
+ WORKDIR /virgil-sdk-2.0.0
15
+
16
+ # Copy the Gemfile as well as the Gemfile.lock and install
17
+ # the RubyGems. This is a separate step so the dependencies
18
+ # will be cached unless changes to one of those two files
19
+ # are made.
20
+ ADD lib /virgil-sdk-2.0.0/lib
21
+ ADD virgil-sdk.gemspec /virgil-sdk-2.0.0
22
+ ADD Gemfile /virgil-sdk-2.0.0
23
+ RUN gem install bundler && bundle install --jobs 20 --retry 5
24
+
25
+ ADD . /virgil-sdk-2.0.0
@@ -0,0 +1,36 @@
1
+ FROM ruby:2.1.10
2
+ MAINTAINER marfachaiko@gmail.com
3
+
4
+ # Install apt based dependencies required to run Rails as
5
+ # well as RubyGems. As the Ruby image itself is based on a
6
+ # Debian image, we use apt-get to install those.
7
+
8
+ RUN apt-get update && apt-get install -y \
9
+ build-essential \
10
+ swig
11
+
12
+ RUN mkdir /temp
13
+ WORKDIR temp
14
+ RUN wget https://cmake.org/files/v3.7/cmake-3.7.2.tar.gz
15
+ RUN tar xzvf cmake-3.7.2.tar.gz
16
+ RUN cd cmake-3.7.2/; ./configure; make; make install
17
+ RUN export PATH=/usr/local/bin:$PATH
18
+ RUN export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
19
+
20
+
21
+ # Configure the main working directory. This is the base
22
+ # directory used in any further RUN, COPY, and ENTRYPOINT
23
+ # commands.
24
+ RUN mkdir /virgil-sdk-2.1.10
25
+ WORKDIR /virgil-sdk-2.1.10
26
+
27
+ # Copy the Gemfile as well as the Gemfile.lock and install
28
+ # the RubyGems. This is a separate step so the dependencies
29
+ # will be cached unless changes to one of those two files
30
+ # are made.
31
+ ADD lib /virgil-sdk-2.1.10/lib
32
+ ADD virgil-sdk.gemspec /virgil-sdk-2.1.10
33
+ ADD Gemfile /virgil-sdk-2.1.10
34
+ RUN gem install bundler && bundle install
35
+
36
+ ADD . /virgil-sdk-2.1.10
@@ -0,0 +1,26 @@
1
+ FROM ruby:2.2.0
2
+ MAINTAINER marfachaiko@gmail.com
3
+
4
+ # Install apt based dependencies required to run Rails as
5
+ # well as RubyGems. As the Ruby image itself is based on a
6
+ # Debian image, we use apt-get to install those.
7
+ RUN apt-get update && apt-get install -y \
8
+ build-essential
9
+
10
+ # Configure the main working directory. This is the base
11
+ # directory used in any further RUN, COPY, and ENTRYPOINT
12
+ # commands.
13
+ RUN mkdir /virgil-sdk-2.2.0
14
+ WORKDIR /virgil-sdk-2.2.0
15
+
16
+ # Copy the Gemfile as well as the Gemfile.lock and install
17
+ # the RubyGems. This is a separate step so the dependencies
18
+ # will be cached unless changes to one of those two files
19
+ # are made.
20
+ ADD lib /virgil-sdk-2.2.0/lib
21
+ ADD virgil-sdk.gemspec /virgil-sdk-2.2.0
22
+ ADD Gemfile /virgil-sdk-2.2.0
23
+ RUN gem install bundler && bundle install --jobs 20 --retry 5
24
+
25
+ ADD . /virgil-sdk-2.2.0
26
+
@@ -0,0 +1,25 @@
1
+ FROM ruby:2.2.6
2
+ MAINTAINER marfachaiko@gmail.com
3
+
4
+ # Install apt based dependencies required to run Rails as
5
+ # well as RubyGems. As the Ruby image itself is based on a
6
+ # Debian image, we use apt-get to install those.
7
+ RUN apt-get update && apt-get install -y \
8
+ build-essential
9
+
10
+ # Configure the main working directory. This is the base
11
+ # directory used in any further RUN, COPY, and ENTRYPOINT
12
+ # commands.
13
+ RUN mkdir /virgil-sdk-2.2.6
14
+ WORKDIR /virgil-sdk-2.2.6
15
+
16
+ # Copy the Gemfile as well as the Gemfile.lock and install
17
+ # the RubyGems. This is a separate step so the dependencies
18
+ # will be cached unless changes to one of those two files
19
+ # are made.
20
+ ADD lib /virgil-sdk-2.2.6/lib
21
+ ADD virgil-sdk.gemspec /virgil-sdk-2.2.6
22
+ ADD Gemfile /virgil-sdk-2.2.6
23
+ RUN gem install bundler && bundle install --jobs 20 --retry 5
24
+
25
+ ADD . /virgil-sdk-2.2.6
@@ -0,0 +1,25 @@
1
+ FROM ruby:2.3.3
2
+ MAINTAINER marfachaiko@gmail.com
3
+
4
+ # Install apt based dependencies required to run Rails as
5
+ # well as RubyGems. As the Ruby image itself is based on a
6
+ # Debian image, we use apt-get to install those.
7
+ RUN apt-get update && apt-get install -y \
8
+ build-essential
9
+
10
+ # Configure the main working directory. This is the base
11
+ # directory used in any further RUN, COPY, and ENTRYPOINT
12
+ # commands.
13
+ RUN mkdir /virgil-sdk-2.3.3
14
+ WORKDIR /virgil-sdk-2.3.3
15
+
16
+ # Copy the Gemfile as well as the Gemfile.lock and install
17
+ # the RubyGems. This is a separate step so the dependencies
18
+ # will be cached unless changes to one of those two files
19
+ # are made.
20
+ ADD lib /virgil-sdk-2.3.3/lib
21
+ ADD virgil-sdk.gemspec /virgil-sdk-2.3.3
22
+ ADD Gemfile /virgil-sdk-2.3.3
23
+ RUN gem install bundler && bundle install --jobs 20 --retry 5
24
+
25
+ ADD . /virgil-sdk-2.3.3
@@ -0,0 +1,26 @@
1
+ FROM ruby:2.4.0
2
+ MAINTAINER marfachaiko@gmail.com
3
+
4
+ # Install apt based dependencies required to run Rails as
5
+ # well as RubyGems. As the Ruby image itself is based on a
6
+ # Debian image, we use apt-get to install those.
7
+ RUN apt-get update && apt-get install -y \
8
+ build-essential
9
+
10
+ # Configure the main working directory. This is the base
11
+ # directory used in any further RUN, COPY, and ENTRYPOINT
12
+ # commands.
13
+ RUN mkdir /virgil-sdk-2.4.0
14
+ WORKDIR /virgil-sdk-2.4.0
15
+
16
+ # Copy the Gemfile as well as the Gemfile.lock and install
17
+ # the RubyGems. This is a separate step so the dependencies
18
+ # will be cached unless changes to one of those two files
19
+ # are made.
20
+ ADD lib /virgil-sdk-2.4.0/lib
21
+ ADD virgil-sdk.gemspec /virgil-sdk-2.4.0
22
+ ADD Gemfile /virgil-sdk-2.4.0
23
+ RUN gem install bundler && bundle install --jobs 20 --retry 5
24
+
25
+ ADD . /virgil-sdk-2.4.0
26
+
@@ -0,0 +1,107 @@
1
+ version: '2'
2
+ services:
3
+ # Unsupported versions should return ERRORS:
4
+ # 2.0.0- virgil-crypto can't be installed.
5
+ # 2.1.10 - virgil-sdk can't be installed
6
+ #
7
+ # sdk-2.0.0:
8
+ # build:
9
+ # context: .
10
+ # dockerfile: dockefiles/Dockerfile-200
11
+ # command: bundle exec rake
12
+ # volumes:
13
+ # - .:/virgil-sdk-ruby-2.0.0
14
+ # environment:
15
+ # VIRGIL_ACCESS_TOKEN: ${VIRGIL_ACCESS_TOKEN}
16
+ # VIRGIL_APP_ID: ${VIRGIL_APP_ID}
17
+ # VIRGIL_SERVICE_URL: ${VIRGIL_SERVICE_URL}
18
+ # VIRGIL_READ_ONLY_SERVICE_URL: ${VIRGIL_READ_ONLY_SERVICE_URL}
19
+ # VIRGIL_IDENTITY_SERVICE_URL: ${VIRGIL_IDENTITY_SERVICE_URL}
20
+ # VIRGIL_APP_BUNDLE: ${VIRGIL_APP_BUNDLE}
21
+ # VIRGIL_APP_KEY_PATH: ${VIRGIL_APP_KEY_NAME}
22
+ # VIRGIL_APP_KEY_PASSWORD: ${VIRGIL_APP_KEY_PASSWORD}
23
+
24
+ # sdk-2.1.10:
25
+ # build:
26
+ # context: .
27
+ # dockerfile: dockefiles/Dockerfile-2110
28
+ # command: bundle exec rake
29
+ # volumes:
30
+ # - .:/virgil-sdk-ruby-2.1.10
31
+ # environment:
32
+ # VIRGIL_ACCESS_TOKEN: ${VIRGIL_ACCESS_TOKEN}
33
+ # VIRGIL_APP_ID: ${VIRGIL_APP_ID}
34
+ # VIRGIL_SERVICE_URL: ${VIRGIL_SERVICE_URL}
35
+ # VIRGIL_READ_ONLY_SERVICE_URL: ${VIRGIL_READ_ONLY_SERVICE_URL}
36
+ # VIRGIL_IDENTITY_SERVICE_URL: ${VIRGIL_IDENTITY_SERVICE_URL}
37
+ # VIRGIL_APP_BUNDLE: ${VIRGIL_APP_BUNDLE}
38
+ # VIRGIL_APP_KEY_PATH: ${VIRGIL_APP_KEY_NAME}
39
+ # VIRGIL_APP_KEY_PASSWORD: ${VIRGIL_APP_KEY_PASSWORD}
40
+
41
+ sdk-2.2.0:
42
+ build:
43
+ context: .
44
+ dockerfile: dockefiles/Dockerfile-220
45
+ command: bundle exec rake
46
+ volumes:
47
+ - .:/virgil-sdk-ruby-2.2.0
48
+ environment:
49
+ VIRGIL_ACCESS_TOKEN: ${VIRGIL_ACCESS_TOKEN}
50
+ VIRGIL_APP_ID: ${VIRGIL_APP_ID}
51
+ VIRGIL_SERVICE_URL: ${VIRGIL_SERVICE_URL}
52
+ VIRGIL_READ_ONLY_SERVICE_URL: ${VIRGIL_READ_ONLY_SERVICE_URL}
53
+ VIRGIL_IDENTITY_SERVICE_URL: ${VIRGIL_IDENTITY_SERVICE_URL}
54
+ VIRGIL_APP_BUNDLE: ${VIRGIL_APP_BUNDLE}
55
+ VIRGIL_APP_KEY_PATH: ${VIRGIL_APP_KEY_NAME}
56
+ VIRGIL_APP_KEY_PASSWORD: ${VIRGIL_APP_KEY_PASSWORD}
57
+
58
+ sdk-2.2.6:
59
+ build:
60
+ context: .
61
+ dockerfile: dockefiles/Dockerfile-226
62
+ command: bundle exec rake
63
+ volumes:
64
+ - .:/virgil-sdk-ruby-2.2.6
65
+ environment:
66
+ VIRGIL_ACCESS_TOKEN: ${VIRGIL_ACCESS_TOKEN}
67
+ VIRGIL_APP_ID: ${VIRGIL_APP_ID}
68
+ VIRGIL_SERVICE_URL: ${VIRGIL_SERVICE_URL}
69
+ VIRGIL_READ_ONLY_SERVICE_URL: ${VIRGIL_READ_ONLY_SERVICE_URL}
70
+ VIRGIL_IDENTITY_SERVICE_URL: ${VIRGIL_IDENTITY_SERVICE_URL}
71
+ VIRGIL_APP_BUNDLE: ${VIRGIL_APP_BUNDLE}
72
+ VIRGIL_APP_KEY_PATH: ${VIRGIL_APP_KEY_NAME}
73
+ VIRGIL_APP_KEY_PASSWORD: ${VIRGIL_APP_KEY_PASSWORD}
74
+
75
+ sdk-2.3.3:
76
+ build:
77
+ context: .
78
+ dockerfile: dockefiles/Dockerfile-233
79
+ command: bundle exec rake
80
+ volumes:
81
+ - .:/virgil-sdk-ruby-2.3.3
82
+ environment:
83
+ VIRGIL_ACCESS_TOKEN: ${VIRGIL_ACCESS_TOKEN}
84
+ VIRGIL_APP_ID: ${VIRGIL_APP_ID}
85
+ VIRGIL_SERVICE_URL: ${VIRGIL_SERVICE_URL}
86
+ VIRGIL_READ_ONLY_SERVICE_URL: ${VIRGIL_READ_ONLY_SERVICE_URL}
87
+ VIRGIL_IDENTITY_SERVICE_URL: ${VIRGIL_IDENTITY_SERVICE_URL}
88
+ VIRGIL_APP_BUNDLE: ${VIRGIL_APP_BUNDLE}
89
+ VIRGIL_APP_KEY_PATH: ${VIRGIL_APP_KEY_NAME}
90
+ VIRGIL_APP_KEY_PASSWORD: ${VIRGIL_APP_KEY_PASSWORD}
91
+
92
+ sdk-2.4.0:
93
+ build:
94
+ context: .
95
+ dockerfile: dockefiles/Dockerfile-240
96
+ command: bundle exec rake
97
+ volumes:
98
+ - .:/virgil-sdk-ruby-2.4.0
99
+ environment:
100
+ VIRGIL_ACCESS_TOKEN: ${VIRGIL_ACCESS_TOKEN}
101
+ VIRGIL_APP_ID: ${VIRGIL_APP_ID}
102
+ VIRGIL_SERVICE_URL: ${VIRGIL_SERVICE_URL}
103
+ VIRGIL_READ_ONLY_SERVICE_URL: ${VIRGIL_READ_ONLY_SERVICE_URL}
104
+ VIRGIL_IDENTITY_SERVICE_URL: ${VIRGIL_IDENTITY_SERVICE_URL}
105
+ VIRGIL_APP_BUNDLE: ${VIRGIL_APP_BUNDLE}
106
+ VIRGIL_APP_KEY_PATH: ${VIRGIL_APP_KEY_NAME}
107
+ VIRGIL_APP_KEY_PASSWORD: ${VIRGIL_APP_KEY_PASSWORD}