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.
- data/lib/data_secure_wrapper.rb +4 -6
- data/naoki.gemspec +1 -1
- metadata +1 -1
data/lib/data_secure_wrapper.rb
CHANGED
@@ -1,8 +1,4 @@
|
|
1
|
-
|
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
|
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