naoki 1.0.20 → 1.0.21
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -1
- data/lib/naoki/data_secure.rb +5 -1
- data/naoki.gemspec +1 -1
- metadata +3 -5
data/.gitignore
CHANGED
data/lib/naoki/data_secure.rb
CHANGED
@@ -3,7 +3,11 @@
|
|
3
3
|
# NB: this class is not thread-safe. Create an instance for each thread.
|
4
4
|
module Naoki
|
5
5
|
class DataSecure
|
6
|
-
|
6
|
+
@enabled = if File.exist?("config/data_secure.yml")
|
7
|
+
YAML.load(File.read("config/data_secure.yml"))['data_secure_enabled']
|
8
|
+
end
|
9
|
+
|
10
|
+
if !(`uname -s`.strip =~ /Linux/ && @enabled)
|
7
11
|
|
8
12
|
def self.init(file); end
|
9
13
|
def close; end
|
data/naoki.gemspec
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: naoki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.21
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Chris Apolzon
|
@@ -11,8 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-06-
|
15
|
-
default_executable:
|
14
|
+
date: 2011-06-21 00:00:00 Z
|
16
15
|
dependencies:
|
17
16
|
- !ruby/object:Gem::Dependency
|
18
17
|
name: ffi
|
@@ -48,7 +47,6 @@ files:
|
|
48
47
|
- sample.rb
|
49
48
|
- test/helper.rb
|
50
49
|
- test/test_data_secure_wrapper.rb
|
51
|
-
has_rdoc: true
|
52
50
|
homepage: ""
|
53
51
|
licenses: []
|
54
52
|
|
@@ -72,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
70
|
requirements: []
|
73
71
|
|
74
72
|
rubyforge_project:
|
75
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.7.2
|
76
74
|
signing_key:
|
77
75
|
specification_version: 3
|
78
76
|
summary: C bindings for SafeNet DataSecure ICAPI
|