ffi 0.3.1-java → 0.3.2-java
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.
Potentially problematic release.
This version of ffi might be problematic. Click here for more details.
- data/Rakefile +1 -1
- data/lib/ffi.rb +24 -1
- metadata +47 -47
data/Rakefile
CHANGED
@@ -11,7 +11,7 @@ PROJ.name = 'ffi'
|
|
11
11
|
PROJ.authors = "JRuby Project"
|
12
12
|
PROJ.email = "dev@ruby-ffi.kenai.com"
|
13
13
|
PROJ.url = "http://kenai.com/projects/ruby-ffi"
|
14
|
-
PROJ.version = "0.3.
|
14
|
+
PROJ.version = "0.3.2"
|
15
15
|
PROJ.rubyforge.name = 'ffi'
|
16
16
|
PROJ.svn.path = 'ffi'
|
17
17
|
PROJ.summary = "A Ruby foreign function interface"
|
data/lib/ffi.rb
CHANGED
@@ -18,4 +18,27 @@ module FFI
|
|
18
18
|
end unless method_defined?(:write_array_of_pointer)
|
19
19
|
|
20
20
|
end
|
21
|
-
|
21
|
+
|
22
|
+
# Fix for RUBY-3527
|
23
|
+
if JRUBY_VERSION >= "1.2.0" && JRUBY_VERSION < "1.3.0"
|
24
|
+
module Library
|
25
|
+
def ffi_lib(*names)
|
26
|
+
ffi_libs = []
|
27
|
+
names.each do |name|
|
28
|
+
[ name, FFI.map_library_name(name) ].each do |libname|
|
29
|
+
begin
|
30
|
+
lib = FFI::DynamicLibrary.open(libname, FFI::DynamicLibrary::RTLD_LAZY | FFI::DynamicLibrary::RTLD_GLOBAL)
|
31
|
+
if lib
|
32
|
+
ffi_libs << lib
|
33
|
+
break
|
34
|
+
end
|
35
|
+
rescue LoadError => ex
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
raise LoadError, "Could not open any of [#{names.join(", ")}]" if ffi_libs.empty?
|
40
|
+
@ffi_libs = ffi_libs
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
metadata
CHANGED
@@ -1,36 +1,31 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
autorequire:
|
9
|
-
bindir: bin
|
10
|
-
cert_chain: []
|
11
|
-
|
12
|
-
date: 2009-03-24 00:00:00 +10:00
|
13
|
-
default_executable:
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
16
|
-
name: bones
|
17
|
-
type: :development
|
18
|
-
version_requirement:
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 2.4.2
|
24
|
-
version:
|
25
|
-
description: ""
|
2
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
3
|
+
requirements:
|
4
|
+
- - '>='
|
5
|
+
- !ruby/object:Gem::Version
|
6
|
+
version: "0"
|
7
|
+
version:
|
26
8
|
email: dev@ruby-ffi.kenai.com
|
27
|
-
|
28
|
-
|
29
|
-
extensions: []
|
9
|
+
cert_chain: []
|
30
10
|
|
11
|
+
summary: A Ruby foreign function interface
|
12
|
+
post_install_message:
|
31
13
|
extra_rdoc_files:
|
32
14
|
- README.txt
|
33
15
|
- History.txt
|
16
|
+
homepage: http://kenai.com/projects/ruby-ffi
|
17
|
+
signing_key:
|
18
|
+
name: ffi
|
19
|
+
rdoc_options:
|
20
|
+
- --main
|
21
|
+
- README.txt
|
22
|
+
autorequire:
|
23
|
+
rubyforge_project: ffi
|
24
|
+
executables: []
|
25
|
+
|
26
|
+
description: ""
|
27
|
+
specification_version: 2
|
28
|
+
default_executable:
|
34
29
|
files:
|
35
30
|
- History.txt
|
36
31
|
- LICENSE
|
@@ -49,32 +44,37 @@ files:
|
|
49
44
|
- tasks/spec.rake
|
50
45
|
- tasks/svn.rake
|
51
46
|
- tasks/test.rake
|
52
|
-
has_rdoc: false
|
53
|
-
homepage: http://kenai.com/projects/ruby-ffi
|
54
|
-
post_install_message:
|
55
|
-
rdoc_options:
|
56
|
-
- --main
|
57
|
-
- README.txt
|
58
|
-
require_paths:
|
59
|
-
- lib
|
60
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
-
requirements:
|
62
|
-
- - ">="
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: "0"
|
65
|
-
version:
|
66
47
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
48
|
requirements:
|
68
|
-
- -
|
49
|
+
- - '>='
|
69
50
|
- !ruby/object:Gem::Version
|
70
51
|
version: "0"
|
71
52
|
version:
|
72
|
-
|
53
|
+
extensions: []
|
73
54
|
|
74
|
-
rubyforge_project: ffi
|
75
55
|
rubygems_version: 1.3.1
|
76
|
-
|
77
|
-
|
78
|
-
|
56
|
+
requirements: []
|
57
|
+
|
58
|
+
authors:
|
59
|
+
- JRuby Project
|
60
|
+
date: 2009-03-24 14:00:00 +00:00
|
61
|
+
platform: java
|
79
62
|
test_files: []
|
80
63
|
|
64
|
+
version: !ruby/object:Gem::Version
|
65
|
+
version: 0.3.2
|
66
|
+
require_paths:
|
67
|
+
- lib
|
68
|
+
dependencies:
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - '>='
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 2.4.2
|
75
|
+
version:
|
76
|
+
type: :development
|
77
|
+
version_requirement:
|
78
|
+
name: bones
|
79
|
+
bindir: bin
|
80
|
+
has_rdoc: false
|