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 CHANGED
@@ -5,4 +5,3 @@ Logfile*
5
5
  IngrianNAE.properties
6
6
  *.gem
7
7
  Gemfile.lock
8
- ManillaLocalCA.crt
@@ -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
- if `uname -s`.strip !~ /Linux/
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "naoki"
3
- s.version = "1.0.20"
3
+ s.version = "1.0.21"
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.20
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-20 00:00:00 -07:00
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.5.2
73
+ rubygems_version: 1.7.2
76
74
  signing_key:
77
75
  specification_version: 3
78
76
  summary: C bindings for SafeNet DataSecure ICAPI