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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed1207244921926e51fc737c9cb4917f9e2b3237
4
- data.tar.gz: c3f48272ff388c193225577296ed40dcd1957109
3
+ metadata.gz: 310481484c2ef881dc83069461236a238e31614b
4
+ data.tar.gz: 951d6446172624561da969bd47db63a88eacb01d
5
5
  SHA512:
6
- metadata.gz: 639751e5174df993d57da98b1ead754adc157af2db05a96e00bb19a6e14f041608d2634d741528ae6f96f8bcb31569206c3094d37c635fde4b02e3646402db8d
7
- data.tar.gz: a113057d2cc71eddb29b30ee3ef1e2fb0e5537dad17940b22160817ce0c019189dff4f4e8689e672bf83dbf4b2e9d36942d8193a724fc990bc4b0183bbc01d5b
6
+ metadata.gz: d839e3af476ba00b2c80063aa47455b47b734b79b6435a8bfb3ca8aa875fad89e7cbdc7d1874f1d136f6dbc8b0b5d7dc53286d1e546197c841ff5bcbdbbb7f77
7
+ data.tar.gz: 292b7cf397c8eadd3d7d300168deffedae37c95bc6a72a5f9da2a0202b92934f1e62165e5c721849768e44cc1086390e92044422f9ed6a0406cac0d488e9b865
@@ -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
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: ruby
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-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.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