virgil-sdk 4.2.3 → 4.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62b33c8c8fa9703959fa5b2aa79b18de5e6a8fc7
4
- data.tar.gz: 9ae4342ed919b4664f1f54487b0ec0bb53d4038c
3
+ metadata.gz: f1112219ff0dfd5bad7af6f0d75c4fae2d77dd26
4
+ data.tar.gz: 966c78437fbe3bdbf543d9118ddabfd2ba27affb
5
5
  SHA512:
6
- metadata.gz: 5b98e2d0c08ec1277a74f09149cd76eaff5e42e2f25b4cbff526e512394deb4d528b99a87d2f0e847a0c4770a2f224f887ff2c19229df9b191985669a428409a
7
- data.tar.gz: 7909cd3752d9679ad569b751ff3aa0461165e15bc092d583724f2e6ec4e925d126487d48c5dac82a6687daea6c0dfc06c74c1f48a5574ad4f231c11862675f3d
6
+ metadata.gz: 734f7cf85b9319d9d0f3eb7234298bed7eff1ccf1a2535878cd92b0f5ac5efedf39bf45fb23008fc2b2e7d67ea3676da32643a9e01ff5cd2bed4a79d40a6e665
7
+ data.tar.gz: b065167b22e3ab30ae9ba5b54e7ec6a5c76ad7715745e17c81e05368bbe0b065f004d1fa32f72fd30ef4975bb555406f801e4067cbe334f711e9101c69f325d5
data/README.md CHANGED
@@ -23,14 +23,14 @@ gem install virgil-sdk
23
23
  or add the following line to your Gemfile:
24
24
 
25
25
  ```
26
- gem 'virgil-sdk', '~> 4.2.0'
26
+ gem 'virgil-sdk', '~> 4.2.4'
27
27
  ```
28
28
 
29
29
  __Next:__ [Get Started with the Ruby SDK][_getstarted].
30
30
 
31
31
  ## Encryption Example
32
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.
33
+ Virgil Security makes it super easy to add encryption to any application. With our SDK you create a public [__Virgil Card__][_guide_virgil_cards] for every one of your users and devices. With these in place you can easily encrypt any data in the client.
34
34
 
35
35
  ```ruby
36
36
  require "virgil/sdk"
@@ -61,7 +61,7 @@ alice_key = virgil.keys.load("alice_key_1", "mypassword")
61
61
  original_message = alice_key.decrypt(transfer_data).to_s
62
62
  ```
63
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.
64
+ __Next:__ To [get you properly started][_guide_encryption] you'll need to know how to create and store Virgil Cards. Our [Get Started guide][_guide_encryption] will get you there all the way.
65
65
 
66
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
67
 
@@ -76,7 +76,7 @@ To initialize the SDK on the client side you will only need the __access token__
76
76
  virgil = VirgilApi.new(access_token: "[YOUR_ACCESS_TOKEN_HERE]")
77
77
  ```
78
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.
79
+ > __Note:__ this client will have limited capabilities. For example, it will be able to generate new __Cards__ but it will need a server-side client to transmit these to Virgil.
80
80
 
81
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
82
 
@@ -87,16 +87,14 @@ context = VirgilContext.new(
87
87
  # Credentials are required only in case of publish and revoke local Virgil Cards.
88
88
  credentials: VirgilAppCredentials.new(app_id: "[YOUR_APP_ID_HERE]",
89
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
- )
90
+ app_key_password: "[YOUR_APP_KEY_PASSWORD_HERE]")
91
+ )
94
92
 
95
93
  virgil = VirgilApi.new(context: context)
96
94
 
97
95
  ```
98
96
 
99
- Next: [Learn more about our the different ways of initializing the Ruby SDK](#_guide_initialization) in our documentation.
97
+ Next: [Learn more about our the different ways of initializing the Ruby SDK][_guide_initialization] in our documentation.
100
98
 
101
99
  ## Documentation
102
100
 
@@ -128,7 +126,8 @@ Our developer support team is here to help you. You can find us on [Twitter](htt
128
126
  [_getstarted_data_integrity]: https://virgilsecurity.com/docs/use-cases/data-verification
129
127
  [_getstarted_passwordless_login]: https://virgilsecurity.com/docs/use-cases/passwordless-authentication
130
128
  [_guides]: https://stg.virgilsecurity.com/docs/sdk/ruby/features
131
- [_guide_initialization]: https://virgilsecurity.com/docs/sdk/ruby/get-started
129
+ [_guide_initialization]: https://virgilsecurity.com/docs/sdk/ruby/getting-started#initializing
132
130
  [_guide_virgil_cards]: https://virgilsecurity.com/docs/sdk/ruby/features#virgil-cards
133
131
  [_guide_virgil_keys]: https://virgilsecurity.com/docs/sdk/ruby/features#virgil-keys
132
+ [_guide_encryption]: https://virgilsecurity.com/docs/sdk/ruby/features#encryption
134
133
  [_initialize_root]: https://virgilsecurity.com/docs/sdk/ruby/programming-guide#initializing
@@ -31,6 +31,7 @@
31
31
  # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
32
32
  # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
33
  # POSSIBILITY OF SUCH DAMAGE.
34
+ require 'fileutils'
34
35
 
35
36
  module Virgil
36
37
  module SDK
@@ -11,6 +11,7 @@ module Virgil
11
11
 
12
12
  EMAIL = "email"
13
13
  USERNAME = "username"
14
+ APPLICATION = "application"
14
15
  end
15
16
  end
16
17
  end
@@ -1,5 +1,5 @@
1
1
  module Virgil
2
2
  module SDK
3
- VERSION = "4.2.3"
3
+ VERSION = "4.2.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: virgil-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.3
4
+ version: 4.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Dudkin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-01 00:00:00.000000000 Z
11
+ date: 2017-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virgil-crypto
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  version: '0'
197
197
  requirements: []
198
198
  rubyforge_project:
199
- rubygems_version: 2.6.10
199
+ rubygems_version: 2.6.8
200
200
  signing_key:
201
201
  specification_version: 4
202
202
  summary: Virgil keys service SDK