virgil-crypto 2.0.6r1 → 2.0.6r2

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: 061bfd4a2b1cf1a2eb066d41304ba70f2ddab57a
4
- data.tar.gz: 11b8b78fb1270dfad90dd2fc450fe2916aa4362c
3
+ metadata.gz: 4cedb11750f1faf6b7df10ac5efae4fb7c303ba2
4
+ data.tar.gz: a913852e553eed719354f90b6dc1063e69f54864
5
5
  SHA512:
6
- metadata.gz: 1612f74573fe63d3b097a8181844beed801720e580f96c35a1fe1fcbf4f1bc1d60a3510eaa3b367cd44ce0883edb6a2fc3658d4a2ab8d5f4bf0e91b0f20f9f5c
7
- data.tar.gz: 66c023d4b2007ba70e820791365569bba4ce3af5bc0ccf1fc7ed35c58048d47753c98eaf5916ce03b38fa7bae3fdd06d22ec45c02f32575b0adb7d53cb9198b8
6
+ metadata.gz: d2d889e52c5de33047868ef400fb39e555dcd103870b44de5a9e5d8f46f2455fb7cb9ca2f39ad044d82be1f5564ad680df481a1eda078c9c68a816d0cf473b46
7
+ data.tar.gz: 126edafbc8cdb7513d9c1a3504c30fb674617068845d5cadca3c33cbd51cb4e71adf10fda7b1928ee0b2331e438278ed1c373bd47fd8be02ca07152bfb56b847
data/ext/rakefile.rb CHANGED
@@ -7,21 +7,19 @@ task :default do
7
7
  require 'mkmf'
8
8
 
9
9
  abort "Sorry, we don't support Ruby with version 2.0! Please Upgrade you Ruby version." if RUBY_VERSION =~ /^2\.0\./
10
+ ROOT_DIR = File.expand_path('../..', __FILE__)
11
+ LIB_DIR = File.join(ROOT_DIR, "lib")
12
+ INSTALL_DIR = File.join(LIB_DIR, 'virgil', 'crypto')
10
13
 
11
14
  begin
12
15
  NativeCrypto.load_library
13
-
16
+ ext = OS.linux? ? "so" : "bundle"
17
+ raise "Native library wasn't loaded" unless File.exists?(File.join(INSTALL_DIR, "virgil_crypto_ruby.#{ext}"))
14
18
  rescue
15
19
 
16
20
  SCRIPT_DIR = File.expand_path('../', __FILE__)
17
- ROOT_DIR = File.expand_path('../..', __FILE__)
18
21
  SRC_DIR = File.join(SCRIPT_DIR, 'native/src')
19
22
  CURRENT_DIR = Dir.pwd
20
- LIB_DIR = File.join(ROOT_DIR, "lib")
21
- INSTALL_DIR = File.join(LIB_DIR, 'virgil', 'crypto')
22
- ext = OS.linux? ? "so" : "bundle"
23
-
24
- # unless File.exists?(File.join(INSTALL_DIR, "virgil_crypto_ruby.#{ext}"))
25
23
  BUILD_DIR = File.join(ROOT_DIR, "build")
26
24
  mkdir_p BUILD_DIR
27
25
  cd BUILD_DIR
@@ -59,7 +57,7 @@ task :default do
59
57
  cd '../'
60
58
  rm_rf BUILD_DIR
61
59
  end
62
- # end
60
+
63
61
  end
64
62
 
65
63
 
@@ -1,5 +1,5 @@
1
1
  module Virgil
2
2
  module Crypto
3
- VERSION = "2.0.6r1"
3
+ VERSION = "2.0.6r2"
4
4
  end
5
5
  end
@@ -11,7 +11,7 @@ class NativeCrypto
11
11
 
12
12
  def self.load_library
13
13
  library_file_name = 'virgil_crypto_ruby.'
14
- library_file_name += required_library_os == 'linux' ? 'os' : 'bundle'
14
+ library_file_name += required_library_os == 'linux' ? 'so' : 'bundle'
15
15
  crypto_folder_path = "#{lib_path}/virgil/crypto"
16
16
  download_library(get_library_path, library_file_name, crypto_folder_path)
17
17
  end
@@ -21,7 +21,7 @@ class NativeCrypto
21
21
  body = get_https(LIBRARY_LIST_URL)
22
22
  raise "Can't download native library. Please try later." unless body
23
23
  ruby_version = RUBY_VERSION.sub(/\.[^\.]+$/, "")
24
- href_template = /virgil-crypto-#{required_library_version}\b-.+\b?-ruby-#{ruby_version}-#{required_library_os}(?!tgz).+tgz"/
24
+ href_template = /virgil-crypto-#{required_library_version}(?:\b-.+\b?)?-ruby-#{ruby_version}-#{required_library_os}(?!tgz).+tgz"/
25
25
  href_list = body.scan href_template
26
26
 
27
27
  if href_list.last.nil?
@@ -86,7 +86,6 @@ class NativeCrypto
86
86
 
87
87
  system("tar xvf #{archive_path} -C tmp/")
88
88
 
89
-
90
89
  system("cp tmp/#{library_folder_name}/lib/#{file_name} #{folder_path}/#{file_name}")
91
90
  system('rm -rf tmp')
92
91
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: virgil-crypto
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6r1
4
+ version: 2.0.6r2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Dudkin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-02-23 00:00:00.000000000 Z
12
+ date: 2017-02-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -978,7 +978,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
978
978
  version: 1.3.1
979
979
  requirements: []
980
980
  rubyforge_project:
981
- rubygems_version: 2.4.5.2
981
+ rubygems_version: 2.6.10
982
982
  signing_key:
983
983
  specification_version: 4
984
984
  summary: Virgil Crypto library wrapper