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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17a0f1dd37fe912eefb6e14a537d723fdaecd6db
4
- data.tar.gz: 7a2c945187594eb16f4fb79ff134a52f027c562a
3
+ metadata.gz: 35111e863e7e11799e1e69f1c527a10ad2744e2c
4
+ data.tar.gz: 196dcff7f455b766e50e4d88363b128006575fef
5
5
  SHA512:
6
- metadata.gz: 355324495e54c0bfad4963d47153b0c293752fd04dd4ed28f26cfbfa7a6e0ef8fc17349e8d6c063c3b63c14720701b26e75f7a948f81bd26012b8af68ee86033
7
- data.tar.gz: 72cceee0b5952c81541a8d8b8ea6a7cc3e8c8bd2cca2b037a3364ffe63dfdef1346a2c1a470f968fa60331e89a2597f72361349d0656894e0c6af6a38a5fd8db
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
- RakeCompilerDock.sh "bundle && rake cross native gem MAKE='nice make -j`nproc`'"
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
 
@@ -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
- return LoadLibraryExA(name, NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
189
+ DWORD dwFlags = PathIsRelativeA(name) ? 0 : LOAD_WITH_ALTERED_SEARCH_PATH;
190
+ return LoadLibraryExA(name, NULL, dwFlags);
189
191
  }
190
192
  }
191
193
 
@@ -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')
@@ -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.9'
20
- s.add_development_dependency 'rake-compiler-dock', '~> 0.5.2'
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
Binary file
Binary file
Binary file
Binary file
Binary file
File without changes
File without changes
@@ -87,7 +87,7 @@ module FFI
87
87
  # @return [0,1]
88
88
  #
89
89
  def packed=(packed)
90
- if packed.is_a?(Fixnum)
90
+ if packed.is_a?(0.class)
91
91
  @alignment = packed
92
92
  @packed = packed
93
93
  else
@@ -1,4 +1,4 @@
1
1
  module FFI
2
- VERSION = '1.9.17'
2
+ VERSION = '1.9.18'
3
3
  end
4
4
 
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.17
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-01-13 00:00:00.000000000 Z
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.9'
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.9'
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.5.2
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.5.2
54
+ version: 0.6.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement