naoki 1.0.1-x86-linux → 1.0.4-x86-linux

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +19 -16
  2. data/ext/binding.c +1 -1
  3. metadata +4 -4
data/Rakefile CHANGED
@@ -29,28 +29,31 @@ file MODULE => SRC do |t|
29
29
  end
30
30
 
31
31
  desc "Build the native library"
32
- task :build => MODULE
33
-
32
+ if RUBY_PLATFORM.match /linux/
33
+ task :build => MODULE
34
+ else
35
+ task :build
36
+ end
34
37
 
35
38
  PKG_FILES = FileList[
36
- "Rakefile", "ext/*.[ch]", "ext/extconf.rb", "ext/*.so"
39
+ "Rakefile", "ext/*.[ch]", "ext/extconf.rb", "ext/*.so"
37
40
  ]
38
41
 
39
42
  SPEC = Gem::Specification.new do |s|
40
- s.name = "naoki"
41
- s.version = "1.0.1"
42
- s.platform = Gem::Platform::CURRENT
43
- s.homepage = ""
44
- s.summary = "C bindings for SafeNet DataSecure ICAPI"
45
- s.files = PKG_FILES
46
- s.required_ruby_version = '>= 1.9.2'
47
- s.extensions = "ext/extconf.rb"
48
- s.authors = ["Chris Apolzon", "Liron Yahdav"]
49
- s.email = ["apolzon@gmail.com"]
50
- s.description = "C Bindings for SafeNet DataSecure ICAPI"
43
+ s.name = "naoki"
44
+ s.version = "1.0.4"
45
+ s.platform = Gem::Platform::CURRENT
46
+ s.homepage = ""
47
+ s.summary = "C bindings for SafeNet DataSecure ICAPI"
48
+ s.files = PKG_FILES
49
+ s.required_ruby_version = '>= 1.9.2'
50
+ s.extensions = "ext/extconf.rb" if RUBY_PLATFORM.match /linux/
51
+ s.authors = ["Chris Apolzon", "Liron Yahdav"]
52
+ s.email = ["apolzon@gmail.com"]
53
+ s.description = "C bindings for SafeNet DataSecure ICAPI"
51
54
  end
52
55
 
53
56
  Rake::GemPackageTask.new(SPEC) do |pkg|
54
- pkg.need_tar = true
55
- pkg.need_zip = true
57
+ pkg.need_tar = true
58
+ pkg.need_zip = true
56
59
  end
data/ext/binding.c CHANGED
@@ -97,7 +97,7 @@ static VALUE decrypt(VALUE self, VALUE rb_algorithm, VALUE rb_key_name, VALUE rb
97
97
  I_T_BYTE *decrypted_data;
98
98
  int return_code;
99
99
 
100
- return_code = I_C_CreateCipherSpec("AES/CBC/PKCS5Padding", "stg-encrypt-test1", &cipherspec);
100
+ return_code = I_C_CreateCipherSpec("AES/CBC/PKCS5Padding", key_name, &cipherspec);
101
101
 
102
102
  if(return_code != I_E_OK) {
103
103
  close_session();
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: naoki
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.1
5
+ version: 1.0.4
6
6
  platform: x86-linux
7
7
  authors:
8
8
  - Chris Apolzon
@@ -11,11 +11,11 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-03-09 00:00:00 -08:00
14
+ date: 2011-03-15 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies: []
17
17
 
18
- description: C Bindings for SafeNet DataSecure ICAPI
18
+ description: C bindings for SafeNet DataSecure ICAPI
19
19
  email:
20
20
  - apolzon@gmail.com
21
21
  executables: []
@@ -26,8 +26,8 @@ extra_rdoc_files: []
26
26
 
27
27
  files:
28
28
  - Rakefile
29
- - ext/binding.c
30
29
  - ext/icapierr.h
30
+ - ext/binding.c
31
31
  - ext/icapi.h
32
32
  - ext/extconf.rb
33
33
  - ext/libICAPI.so