virgil-crypto 2.1.2.1 → 2.1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/virgil/crypto/version.rb +1 -1
- data/lib/virgil/native_crypto.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9aec1373359cc52088208ce85933839888fb323
|
4
|
+
data.tar.gz: d65b3b2aa0f131b8311ded44d11e11db91febf25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cec0112183b93478deb1d3040c8861490141556f4d9a9f695f956a4894b90dc3034c73f2b049e7a62a5041f60ee0a7f1c8ad418fad37ef4cb51227feb2fd6e00
|
7
|
+
data.tar.gz: 4b59c4529a977432a8509979005e77473d9408e6c54b31034d0688c533974d9c3a410e6bfce88c7cbdb4c78727016b3ceefd49ae0909f4d4e151f3dc0f40614a
|
data/.gitignore
CHANGED
data/lib/virgil/native_crypto.rb
CHANGED
@@ -10,10 +10,10 @@ class NativeCrypto
|
|
10
10
|
LIBRARY_LIST_URL = "https://cdn.virgilsecurity.com/virgil-crypto/ruby/"
|
11
11
|
|
12
12
|
def self.load_library
|
13
|
-
|
14
|
-
|
13
|
+
file_name = 'virgil_crypto_ruby.'
|
14
|
+
file_name += required_library_os == 'linux' ? 'so' : 'bundle'
|
15
15
|
crypto_folder_path = "#{lib_path}/virgil/crypto"
|
16
|
-
download_library(get_library_path,
|
16
|
+
download_library(get_library_path, file_name, crypto_folder_path)
|
17
17
|
end
|
18
18
|
|
19
19
|
|
@@ -53,8 +53,8 @@ class NativeCrypto
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def self.required_library_version
|
56
|
-
Virgil::Crypto::VERSION.scan(
|
57
|
-
return
|
56
|
+
Virgil::Crypto::VERSION.scan(/(\d+\.\d+\.\d+)\D*\d*$/) do |postfix|
|
57
|
+
return postfix * ''
|
58
58
|
end
|
59
59
|
return ''
|
60
60
|
end
|