ruby_nacl 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/ruby_nacl/extconf.rb +7 -4
- metadata +3 -3
data/ext/ruby_nacl/extconf.rb
CHANGED
@@ -5,14 +5,17 @@ arch = `uname -m`.strip == 'x86_64' ? 'amd64' : 'x86'
|
|
5
5
|
|
6
6
|
HEADER_DIRS = ["NaCl/build/#{hostname}/include/#{arch}"]
|
7
7
|
LIB_DIRS = ["NaCl/build/#{hostname}/lib/#{arch}"]
|
8
|
-
|
9
8
|
$objs = ["NaCl/build/#{hostname}/lib/#{arch}/randombytes.o", "ruby_nacl.o"]
|
10
9
|
|
10
|
+
if !File.exists?(HEADER_DIRS[0]) || !File.exists?(LIB_DIRS[0]) || !File.exists?($objs[0])
|
11
|
+
puts "Building NaCl library before creating Makefile..."
|
12
|
+
`cd NaCl; ./do`
|
13
|
+
end
|
14
|
+
|
11
15
|
dir_config('ruby_nacl', HEADER_DIRS, LIB_DIRS)
|
12
16
|
|
13
|
-
while !find_library('nacl', nil, *LIB_DIRS) || !find_header('crypto_box.h', *HEADER_DIRS)
|
14
|
-
|
15
|
-
`cd nacl; rm -rf build; ./do`
|
17
|
+
while !find_library('nacl', nil, *LIB_DIRS) || !find_header('crypto_box.h', *HEADER_DIRS)
|
18
|
+
`cd NaCl; ./do`
|
16
19
|
end
|
17
20
|
|
18
21
|
create_makefile('ruby_nacl')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_nacl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-09-30 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rice
|
16
|
-
requirement: &
|
16
|
+
requirement: &70275275348940 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 1.4.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70275275348940
|
25
25
|
description: Provides a ruby interface to DJB's NaCl library.
|
26
26
|
email: zac@caffeinatedmind.com
|
27
27
|
executables: []
|