ffi 1.5.0 → 1.6.0

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.

@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f4b02011f725689588699c1e191e3d52a77542ac
4
+ data.tar.gz: 63402428405516ddb0fcbcab3ddc7ce45cffd70e
5
+ SHA512:
6
+ metadata.gz: d275d0125d4e43a7c8ffd2c1951d271be177b4f691a8c32905739fc3b8ed5954002da1c0a9cb5a2842ff23fd381be6867bd3c30ab6948eac4c23aefa1d3145c7
7
+ data.tar.gz: e34b9102cd76c2818cfbeffee41e2d972a69d142634fbe2dc9cd497788463e6454464d2cbff61e53d9909d262b2589b043768b2d1d519c3f02ee128dac8d3c51
@@ -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'
@@ -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,69 +1,64 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ffi
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 5
8
- - 0
9
- version: 1.5.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.6.0
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Wayne Meissner
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2013-03-21 00:00:00 +10:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2013-03-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: rake
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- version: "0"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
30
20
  type: :development
31
- version_requirements: *id001
32
- - !ruby/object:Gem::Dependency
33
- name: rake-compiler
34
21
  prerelease: false
35
- requirement: &id002 !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- segments:
40
- - 0
41
- - 6
42
- - 0
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake-compiler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
43
33
  version: 0.6.0
44
34
  type: :development
45
- version_requirements: *id002
46
- - !ruby/object:Gem::Dependency
47
- name: rspec
48
35
  prerelease: false
49
- requirement: &id003 !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- segments:
54
- - 0
55
- version: "0"
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.6.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
56
48
  type: :development
57
- version_requirements: *id003
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
58
55
  description: Ruby FFI library
59
56
  email: wmeissner@gmail.com
60
57
  executables: []
61
-
62
- extensions:
58
+ extensions:
63
59
  - ext/ffi_c/extconf.rb
64
60
  extra_rdoc_files: []
65
-
66
- files:
61
+ files:
67
62
  - ffi.gemspec
68
63
  - History.txt
69
64
  - LICENSE
@@ -499,38 +494,31 @@ files:
499
494
  - libtest/StructTest.c
500
495
  - libtest/UnionTest.c
501
496
  - libtest/VariadicTest.c
502
- has_rdoc: true
503
497
  homepage: http://wiki.github.com/ffi/ffi
504
- licenses:
498
+ licenses:
505
499
  - LGPL-3
500
+ metadata: {}
506
501
  post_install_message:
507
- rdoc_options: []
508
-
509
- require_paths:
502
+ rdoc_options:
503
+ - --exclude=ext/ffi_c/.*\.o$
504
+ - --exclude=ffi_c\.(bundle|so)$
505
+ require_paths:
510
506
  - lib
511
507
  - ext/ffi_c
512
- required_ruby_version: !ruby/object:Gem::Requirement
513
- requirements:
514
- - - ">="
515
- - !ruby/object:Gem::Version
516
- segments:
517
- - 1
518
- - 8
519
- - 7
508
+ required_ruby_version: !ruby/object:Gem::Requirement
509
+ requirements:
510
+ - - '>='
511
+ - !ruby/object:Gem::Version
520
512
  version: 1.8.7
521
- required_rubygems_version: !ruby/object:Gem::Requirement
522
- requirements:
523
- - - ">="
524
- - !ruby/object:Gem::Version
525
- segments:
526
- - 0
527
- version: "0"
513
+ required_rubygems_version: !ruby/object:Gem::Requirement
514
+ requirements:
515
+ - - '>='
516
+ - !ruby/object:Gem::Version
517
+ version: '0'
528
518
  requirements: []
529
-
530
519
  rubyforge_project:
531
- rubygems_version: 1.3.6
520
+ rubygems_version: 2.0.0
532
521
  signing_key:
533
- specification_version: 3
522
+ specification_version: 4
534
523
  summary: Ruby FFI
535
524
  test_files: []
536
-