naoki 1.0.10 → 1.0.11

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.
@@ -1,8 +1,4 @@
1
- require 'ffi'
2
-
3
- ICAPI_LIB_FILE = File.expand_path(File.join(File.dirname(__FILE__), 'libICAPI.so'))
4
-
5
- unless RUBY_PLATFORM.match /linux/
1
+ unless `uname -s`.match /linux/i
6
2
 
7
3
  module DataSecureWrapper
8
4
  def self.configure(*args)
@@ -21,9 +17,11 @@ unless RUBY_PLATFORM.match /linux/
21
17
 
22
18
  else
23
19
 
20
+ require 'ffi'
21
+
24
22
  module DataSecureWrapper
25
23
  extend FFI::Library
26
- ffi_lib ICAPI_LIB_FILE
24
+ ffi_lib File.expand_path(File.join(File.dirname(__FILE__), 'libICAPI.so'))
27
25
 
28
26
  I_T_Init_File = 0
29
27
  I_E_OK = 0
data/naoki.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  SPEC = Gem::Specification.new do |s|
2
2
  s.name = "naoki"
3
- s.version = "1.0.10"
3
+ s.version = "1.0.11"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.homepage = ""
6
6
  s.summary = "C bindings for SafeNet DataSecure ICAPI"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: naoki
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.10
5
+ version: 1.0.11
6
6
  platform: ruby
7
7
  authors:
8
8
  - Chris Apolzon