ffi 1.0.4-x86-mingw32 → 1.0.5-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.

Files changed (63) hide show
  1. data/Rakefile +2 -2
  2. data/ext/ffi_c/AbstractMemory.c +1 -1
  3. data/ext/ffi_c/ArrayType.c +11 -19
  4. data/ext/ffi_c/ArrayType.h +11 -19
  5. data/ext/ffi_c/Buffer.c +2 -0
  6. data/ext/ffi_c/Call.h +12 -19
  7. data/ext/ffi_c/ClosurePool.h +19 -0
  8. data/ext/ffi_c/DynamicLibrary.h +18 -0
  9. data/ext/ffi_c/Function.c +12 -13
  10. data/ext/ffi_c/Function.h +12 -19
  11. data/ext/ffi_c/LastError.c +12 -19
  12. data/ext/ffi_c/LastError.h +20 -0
  13. data/ext/ffi_c/MappedType.c +12 -19
  14. data/ext/ffi_c/MappedType.h +12 -19
  15. data/ext/ffi_c/MemoryPointer.c +1 -0
  16. data/ext/ffi_c/MemoryPointer.h +23 -3
  17. data/ext/ffi_c/MethodHandle.h +15 -22
  18. data/ext/ffi_c/Platform.c +36 -9
  19. data/ext/ffi_c/Platform.h +23 -3
  20. data/ext/ffi_c/Pointer.c +2 -0
  21. data/ext/ffi_c/Pointer.h +11 -19
  22. data/ext/ffi_c/Struct.c +12 -19
  23. data/ext/ffi_c/Struct.h +11 -19
  24. data/ext/ffi_c/StructByValue.c +13 -19
  25. data/ext/ffi_c/StructByValue.h +12 -19
  26. data/ext/ffi_c/StructLayout.c +12 -19
  27. data/ext/ffi_c/Thread.c +36 -10
  28. data/ext/ffi_c/Thread.h +14 -5
  29. data/ext/ffi_c/Type.c +1 -0
  30. data/ext/ffi_c/Types.c +12 -19
  31. data/ext/ffi_c/Types.h +11 -19
  32. data/ext/ffi_c/Variadic.c +1 -1
  33. data/ext/ffi_c/compat.h +13 -19
  34. data/ext/ffi_c/endian.h +1 -0
  35. data/ext/ffi_c/extconf.rb +3 -1
  36. data/ext/ffi_c/ffi.c +12 -19
  37. data/ext/ffi_c/rbffi.h +23 -3
  38. data/lib/1.8/ffi_c.so +0 -0
  39. data/lib/1.9/ffi_c.so +0 -0
  40. data/lib/ffi/tools/const_generator.rb +1 -1
  41. data/spec/ffi/async_callback_spec.rb +35 -12
  42. data/spec/ffi/bool_spec.rb +16 -0
  43. data/spec/ffi/buffer_spec.rb +34 -21
  44. data/spec/ffi/callback_spec.rb +16 -0
  45. data/spec/ffi/custom_param_type.rb +16 -0
  46. data/spec/ffi/custom_type_spec.rb +16 -0
  47. data/spec/ffi/enum_spec.rb +16 -0
  48. data/spec/ffi/errno_spec.rb +16 -0
  49. data/spec/ffi/ffi_spec.rb +16 -0
  50. data/spec/ffi/library_spec.rb +16 -0
  51. data/spec/ffi/managed_struct_spec.rb +16 -0
  52. data/spec/ffi/number_spec.rb +16 -0
  53. data/spec/ffi/strptr_spec.rb +16 -0
  54. data/spec/ffi/struct_callback_spec.rb +16 -0
  55. data/spec/ffi/struct_initialize_spec.rb +1 -0
  56. data/spec/ffi/struct_packed_spec.rb +16 -0
  57. data/spec/ffi/struct_spec.rb +16 -0
  58. data/spec/ffi/typedef_spec.rb +16 -0
  59. data/spec/ffi/union_spec.rb +16 -0
  60. data/spec/ffi/variadic_spec.rb +16 -0
  61. data/tasks/extension.rake +1 -1
  62. metadata +11 -24
  63. data/lib/ffi_c.so +0 -0
@@ -1,3 +1,19 @@
1
+ #
2
+ # This file is part of ruby-ffi.
3
+ #
4
+ # This code is free software: you can redistribute it and/or modify it under
5
+ # the terms of the GNU Lesser General Public License version 3 only, as
6
+ # published by the Free Software Foundation.
7
+ #
8
+ # This code is distributed in the hope that it will be useful, but WITHOUT
9
+ # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
+ # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
11
+ # version 3 for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public License
14
+ # version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
15
+ #
16
+
1
17
  require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))
2
18
  describe "Function with variadic arguments" do
3
19
  module LibTest
@@ -29,5 +29,5 @@ Rake::ExtensionTask.new('ffi_c', spec) do |ext|
29
29
  # ext.lib_dir = BUILD_DIR # put binaries into this folder.
30
30
  ext.tmp_dir = BUILD_DIR # temporary folder used during compilation.
31
31
  ext.cross_compile = true # enable cross compilation (requires cross compile toolchain)
32
- ext.cross_platform = ['i386-mingw32', 'i386-mswin32'] # forces the Windows platform instead of the default one
32
+ ext.cross_platform = ['i386-mingw32'] # forces the Windows platform instead of the default one
33
33
  end if USE_RAKE_COMPILER
metadata CHANGED
@@ -1,12 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 4
9
- version: 1.0.4
4
+ version: 1.0.5
10
5
  platform: x86-mingw32
11
6
  authors:
12
7
  - Wayne Meissner
@@ -14,24 +9,19 @@ autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
11
 
17
- date: 2010-12-28 00:00:00 +10:00
12
+ date: 2011-01-13 00:00:00 +10:00
18
13
  default_executable:
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: rake
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
25
20
  requirements:
26
21
  - - ">="
27
22
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 8
31
- - 7
32
23
  version: 0.8.7
33
- type: :runtime
34
- version_requirements: *id001
24
+ version:
35
25
  description: |-
36
26
  Ruby-FFI is a ruby extension for programmatically loading dynamic
37
27
  libraries, binding functions within them, and calling those functions
@@ -417,7 +407,8 @@ files:
417
407
  - tasks/spec.rake
418
408
  - tasks/svn.rake
419
409
  - tasks/test.rake
420
- - lib/ffi_c.so
410
+ - lib/1.8/ffi_c.so
411
+ - lib/1.9/ffi_c.so
421
412
  has_rdoc: true
422
413
  homepage: http://wiki.github.com/ffi/ffi
423
414
  licenses: []
@@ -428,25 +419,21 @@ rdoc_options: []
428
419
  require_paths:
429
420
  - lib
430
421
  required_ruby_version: !ruby/object:Gem::Requirement
431
- none: false
432
422
  requirements:
433
423
  - - ">="
434
424
  - !ruby/object:Gem::Version
435
- segments:
436
- - 0
437
425
  version: "0"
426
+ version:
438
427
  required_rubygems_version: !ruby/object:Gem::Requirement
439
- none: false
440
428
  requirements:
441
429
  - - ">="
442
430
  - !ruby/object:Gem::Version
443
- segments:
444
- - 0
445
431
  version: "0"
432
+ version:
446
433
  requirements: []
447
434
 
448
435
  rubyforge_project: ffi
449
- rubygems_version: 1.3.7
436
+ rubygems_version: 1.3.5
450
437
  signing_key:
451
438
  specification_version: 3
452
439
  summary: Ruby-FFI is a ruby extension for programmatically loading dynamic libraries, binding functions within them, and calling those functions from Ruby code
Binary file