ffi 1.9.17-x86-mingw32 → 1.9.18-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ffi might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Rakefile +2 -1
- data/ext/ffi_c/DynamicLibrary.c +3 -1
- data/ext/ffi_c/extconf.rb +2 -1
- data/ffi.gemspec +2 -2
- data/lib/2.0/ffi_c.so +0 -0
- data/lib/2.1/ffi_c.so +0 -0
- data/lib/2.2/ffi_c.so +0 -0
- data/lib/2.3/ffi_c.so +0 -0
- data/lib/2.4/ffi_c.so +0 -0
- data/lib/ffi/platform/i386-cygwin/types.conf +0 -0
- data/lib/ffi/platform/x86_64-cygwin/types.conf +0 -0
- data/lib/ffi/struct_layout_builder.rb +1 -1
- data/lib/ffi/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35111e863e7e11799e1e69f1c527a10ad2744e2c
|
4
|
+
data.tar.gz: 196dcff7f455b766e50e4d88363b128006575fef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f43d432042f3789eeb4ecf4267c4bf0e9acacd5507e40ff28f9d46479eb8dab2242c10d5a6f849582150fcf6433efc736b20b1d02c231cd33879352165231c6
|
7
|
+
data.tar.gz: f0c70440d4efd1f3b56f8aaaac829db3758b1653fffad71d62efda1dff8fa78a9a35ca6711d51c80bd564e53c15d43024c229964b002257042a089d98645c4bc
|
data/Rakefile
CHANGED
@@ -191,7 +191,8 @@ if USE_RAKE_COMPILER
|
|
191
191
|
desc "build a windows gem without all the ceremony."
|
192
192
|
task "gem:windows" do
|
193
193
|
require "rake_compiler_dock"
|
194
|
-
|
194
|
+
sh "bundle package"
|
195
|
+
RakeCompilerDock.sh "bundle --local && rake cross native gem MAKE='nice make -j`nproc`'"
|
195
196
|
end
|
196
197
|
end
|
197
198
|
|
data/ext/ffi_c/DynamicLibrary.c
CHANGED
@@ -36,6 +36,7 @@
|
|
36
36
|
# include <winsock2.h>
|
37
37
|
# define _WINSOCKAPI_
|
38
38
|
# include <windows.h>
|
39
|
+
# include <shlwapi.h>
|
39
40
|
#else
|
40
41
|
# include <dlfcn.h>
|
41
42
|
#endif
|
@@ -185,7 +186,8 @@ dl_open(const char* name, int flags)
|
|
185
186
|
if (name == NULL) {
|
186
187
|
return GetModuleHandle(NULL);
|
187
188
|
} else {
|
188
|
-
|
189
|
+
DWORD dwFlags = PathIsRelativeA(name) ? 0 : LOAD_WITH_ALTERED_SEARCH_PATH;
|
190
|
+
return LoadLibraryExA(name, NULL, dwFlags);
|
189
191
|
}
|
190
192
|
}
|
191
193
|
|
data/ext/ffi_c/extconf.rb
CHANGED
@@ -24,7 +24,8 @@ if !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'rbx'
|
|
24
24
|
# Check if the raw api is available.
|
25
25
|
$defs << "-DHAVE_RAW_API" if have_func("ffi_raw_call") && have_func("ffi_prep_raw_closure")
|
26
26
|
end
|
27
|
-
|
27
|
+
|
28
|
+
have_header('shlwapi.h')
|
28
29
|
have_func('rb_thread_blocking_region')
|
29
30
|
have_func('rb_thread_call_with_gvl')
|
30
31
|
have_func('rb_thread_call_without_gvl')
|
data/ffi.gemspec
CHANGED
@@ -16,8 +16,8 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.require_paths << 'ext/ffi_c'
|
17
17
|
s.required_ruby_version = '>= 1.8.7'
|
18
18
|
s.add_development_dependency 'rake', '~> 10.1'
|
19
|
-
s.add_development_dependency 'rake-compiler', '~> 0
|
20
|
-
s.add_development_dependency 'rake-compiler-dock', '~> 0.
|
19
|
+
s.add_development_dependency 'rake-compiler', '~> 1.0'
|
20
|
+
s.add_development_dependency 'rake-compiler-dock', '~> 0.6.0'
|
21
21
|
s.add_development_dependency 'rspec', '~> 2.14.1'
|
22
22
|
s.add_development_dependency 'rubygems-tasks', "~> 0.2.4"
|
23
23
|
end
|
data/lib/2.0/ffi_c.so
CHANGED
Binary file
|
data/lib/2.1/ffi_c.so
CHANGED
Binary file
|
data/lib/2.2/ffi_c.so
CHANGED
Binary file
|
data/lib/2.3/ffi_c.so
CHANGED
Binary file
|
data/lib/2.4/ffi_c.so
CHANGED
Binary file
|
File without changes
|
File without changes
|
data/lib/ffi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.18
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Wayne Meissner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0
|
33
|
+
version: '1.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0
|
40
|
+
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake-compiler-dock
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.6.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.6.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|