rutie 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/lib/rutie.rb +6 -6
- data/rutie.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6fa10034548299f63ef9b9b712473a3f310d03dfa94584dc0ed019e17e1f1eb2
|
|
4
|
+
data.tar.gz: c0669fe21c5199593c9f91722d3806f237b706cdf934fd15fb8d05040c2ea0b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0224ea3c295ad89c77e745bd930bd6c45b5bff6b7f1e5d06eb8605509afcb07b5ab9a2f4856f2dbb053996666c056abe52a6c75dc0097de5d81a34617626e8a3
|
|
7
|
+
data.tar.gz: 5735ae6207958315e76799c5edf535b7f25b7b939efbf625b268a5b81de861da6d2017c3c4195e19e9acc288ce05f568418b59bade7ee9c1256b2206ff34d9dd
|
data/lib/rutie.rb
CHANGED
|
@@ -9,23 +9,23 @@ class Rutie
|
|
|
9
9
|
@full_lib_path = opts.fetch(:lib_path) { nil }
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
-
def ffi_library
|
|
12
|
+
def ffi_library(dir)
|
|
13
13
|
file = [ @lib_prefix, @project_name, '.', @lib_suffix ]
|
|
14
14
|
|
|
15
|
-
File.join(lib_path, file.join())
|
|
15
|
+
File.join(lib_path(dir), file.join())
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
def init(c_init_method_name)
|
|
18
|
+
def init(c_init_method_name, dir)
|
|
19
19
|
require 'fiddle'
|
|
20
20
|
|
|
21
|
-
Fiddle::Function.new(Fiddle.dlopen(ffi_library)[c_init_method_name], [], Fiddle::TYPE_VOIDP).call
|
|
21
|
+
Fiddle::Function.new(Fiddle.dlopen(ffi_library dir)[c_init_method_name], [], Fiddle::TYPE_VOIDP).call
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
private
|
|
25
|
-
def lib_path
|
|
25
|
+
def lib_path(dir)
|
|
26
26
|
path = @full_lib_path || "../target/#{@release}"
|
|
27
27
|
|
|
28
|
-
File.expand_path(path,
|
|
28
|
+
File.expand_path(path, dir)
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def set_prefix
|
data/rutie.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = 'rutie'
|
|
7
|
-
spec.version = '0.0.
|
|
7
|
+
spec.version = '0.0.3'
|
|
8
8
|
spec.authors = ['Daniel P. Clark']
|
|
9
9
|
spec.email = ['6ftdan@gmail.com']
|
|
10
10
|
spec.summary = 'Rutie helper methods.'
|