ffi 1.5.0-x86-mingw32 → 1.6.0-x86-mingw32

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.

@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ffi'
3
- s.version = '1.5.0'
3
+ s.version = '1.6.0'
4
4
  s.author = 'Wayne Meissner'
5
5
  s.email = 'wmeissner@gmail.com'
6
6
  s.homepage = 'http://wiki.github.com/ffi/ffi'
@@ -9,6 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.files = %w(ffi.gemspec History.txt LICENSE COPYING COPYING.LESSER README.md Rakefile) + Dir.glob("{ext,gen,lib,spec,libtest}/**/*").reject { |f| f =~ /lib\/1\.[89]/}
10
10
  s.extensions << 'ext/ffi_c/extconf.rb'
11
11
  s.has_rdoc = false
12
+ s.rdoc_options = %w[--exclude=ext/ffi_c/.*\.o$ --exclude=ffi_c\.(bundle|so)$]
12
13
  s.license = 'LGPL-3'
13
14
  s.require_paths << 'ext/ffi_c'
14
15
  s.required_ruby_version = '>= 1.8.7'
Binary file
Binary file
Binary file
@@ -90,7 +90,7 @@ module FFI
90
90
  # @return [Array]
91
91
  # Read an array of +type+ of length +length+.
92
92
  # @example
93
- # ptr.write_array_of_type(TYPE_UINT8, :get_uint8, 4) # -> [1, 2, 3, 4]
93
+ # ptr.read_array_of_type(TYPE_UINT8, :get_uint8, 4) # -> [1, 2, 3, 4]
94
94
  def read_array_of_type(type, reader, length)
95
95
  ary = []
96
96
  size = FFI.type_size(type)
@@ -288,7 +288,7 @@ module FFI
288
288
  def enclosing_module
289
289
  begin
290
290
  mod = self.name.split("::")[0..-2].inject(Object) { |obj, c| obj.const_get(c) }
291
- mod.respond_to?(:find_type) ? mod : nil
291
+ (mod < FFI::Library || mod < FFI::Struct || mod.respond_to?(:find_type)) ? mod : nil
292
292
  rescue Exception
293
293
  nil
294
294
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 5
8
+ - 6
9
9
  - 0
10
- version: 1.5.0
10
+ version: 1.6.0
11
11
  platform: x86-mingw32
12
12
  authors:
13
13
  - Wayne Meissner
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-03-20 00:00:00 Z
18
+ date: 2013-03-25 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  prerelease: false
@@ -512,8 +512,9 @@ homepage: http://wiki.github.com/ffi/ffi
512
512
  licenses:
513
513
  - LGPL-3
514
514
  post_install_message:
515
- rdoc_options: []
516
-
515
+ rdoc_options:
516
+ - --exclude=ext/ffi_c/.*\.o$
517
+ - --exclude=ffi_c\.(bundle|so)$
517
518
  require_paths:
518
519
  - lib
519
520
  - ext/ffi_c