ffi 1.9.17 → 1.9.18
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/ext/ffi_c/DynamicLibrary.c +3 -1
- data/ext/ffi_c/extconf.rb +2 -1
- data/ffi.gemspec +2 -2
- 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: 310481484c2ef881dc83069461236a238e31614b
|
4
|
+
data.tar.gz: 951d6446172624561da969bd47db63a88eacb01d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d839e3af476ba00b2c80063aa47455b47b734b79b6435a8bfb3ca8aa875fad89e7cbdc7d1874f1d136f6dbc8b0b5d7dc53286d1e546197c841ff5bcbdbbb7f77
|
7
|
+
data.tar.gz: 292b7cf397c8eadd3d7d300168deffedae37c95bc6a72a5f9da2a0202b92934f1e62165e5c721849768e44cc1086390e92044422f9ed6a0406cac0d488e9b865
|
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
|
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: ruby
|
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-03 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
|