ffi 1.4.1.dev → 1.5.0.pre1
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.
- data/Rakefile +10 -3
 - data/ext/ffi_c/extconf.rb +2 -2
 - data/ffi.gemspec +1 -1
 - data/lib/ffi.rb +2 -0
 - data/lib/ffi/platform/x86_64-freebsd/types.conf +2 -0
 - metadata +21 -11
 
    
        data/Rakefile
    CHANGED
    
    | 
         @@ -122,8 +122,7 @@ desc "Clean all built files" 
     | 
|
| 
       122 
122 
     | 
    
         
             
            task :distclean => :clobber do
         
     | 
| 
       123 
123 
     | 
    
         
             
              FileUtils.rm_rf('build')
         
     | 
| 
       124 
124 
     | 
    
         
             
              FileUtils.rm_rf(Dir["lib/**/ffi_c.#{RbConfig::CONFIG['DLEXT']}"])
         
     | 
| 
       125 
     | 
    
         
            -
              FileUtils.rm_rf( 
     | 
| 
       126 
     | 
    
         
            -
              FileUtils.rm_rf('lib/1.9')
         
     | 
| 
      
 125 
     | 
    
         
            +
              FileUtils.rm_rf(Dir["lib/**/ffi_c.so"])
         
     | 
| 
       127 
126 
     | 
    
         
             
              FileUtils.rm_rf('lib/ffi/types.conf')
         
     | 
| 
       128 
127 
     | 
    
         
             
              FileUtils.rm_rf('conftest.dSYM')
         
     | 
| 
       129 
128 
     | 
    
         
             
              FileUtils.rm_rf('pkg')
         
     | 
| 
         @@ -165,7 +164,7 @@ task 'spec:specdoc' => TEST_DEPS 
     | 
|
| 
       165 
164 
     | 
    
         
             
            task :default => :specs
         
     | 
| 
       166 
165 
     | 
    
         | 
| 
       167 
166 
     | 
    
         
             
            task 'gem:win32' do
         
     | 
| 
       168 
     | 
    
         
            -
              sh("rake cross native gem RUBY_CC_VERSION='1.8.7:1.9.3'") || raise("win32 build failed!")
         
     | 
| 
      
 167 
     | 
    
         
            +
              sh("rake cross native gem RUBY_CC_VERSION='1.8.7:1.9.3:2.0.0'") || raise("win32 build failed!")
         
     | 
| 
       169 
168 
     | 
    
         
             
            end
         
     | 
| 
       170 
169 
     | 
    
         | 
| 
       171 
170 
     | 
    
         | 
| 
         @@ -203,6 +202,14 @@ if USE_RAKE_COMPILER 
     | 
|
| 
       203 
202 
     | 
    
         
             
                ext.cross_compile = true                                  # enable cross compilation (requires cross compile toolchain)
         
     | 
| 
       204 
203 
     | 
    
         
             
                ext.cross_platform = 'i386-mingw32'                       # forces the Windows platform instead of the default one
         
     | 
| 
       205 
204 
     | 
    
         
             
              end
         
     | 
| 
      
 205 
     | 
    
         
            +
             
     | 
| 
      
 206 
     | 
    
         
            +
              task 'copy:ffi_c:i386-mingw32:1.9.3' do |t|
         
     | 
| 
      
 207 
     | 
    
         
            +
                sh "i686-w64-mingw32-strip -S lib/1.9/ffi_c.so"
         
     | 
| 
      
 208 
     | 
    
         
            +
              end
         
     | 
| 
      
 209 
     | 
    
         
            +
              
         
     | 
| 
      
 210 
     | 
    
         
            +
              task 'copy:ffi_c:i386-mingw32:2.0.0' do |t|
         
     | 
| 
      
 211 
     | 
    
         
            +
                sh "i686-w64-mingw32-strip -S lib/2.0/ffi_c.so"
         
     | 
| 
      
 212 
     | 
    
         
            +
              end
         
     | 
| 
       206 
213 
     | 
    
         
             
            end
         
     | 
| 
       207 
214 
     | 
    
         | 
| 
       208 
215 
     | 
    
         
             
            begin
         
     | 
    
        data/ext/ffi_c/extconf.rb
    CHANGED
    
    | 
         @@ -7,8 +7,8 @@ if !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'rbx' 
     | 
|
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
              # recent versions of ruby add restrictive ansi and warning flags on a whim - kill them all
         
     | 
| 
       9 
9 
     | 
    
         
             
              $warnflags = ''
         
     | 
| 
       10 
     | 
    
         
            -
              $CFLAGS.gsub!( 
     | 
| 
       11 
     | 
    
         
            -
              $CFLAGS.gsub!( 
     | 
| 
      
 10 
     | 
    
         
            +
              $CFLAGS.gsub!(/[\s+]-ansi/, '')
         
     | 
| 
      
 11 
     | 
    
         
            +
              $CFLAGS.gsub!(/[\s+]-std=[^\s]+/, '')
         
     | 
| 
       12 
12 
     | 
    
         
             
              # solaris needs -c99 for <stdbool.h>
         
     | 
| 
       13 
13 
     | 
    
         
             
              $CFLAGS << " -std=c99" if RbConfig::CONFIG['host_os'] =~ /solaris/
         
     | 
| 
       14 
14 
     | 
    
         | 
    
        data/ffi.gemspec
    CHANGED
    
    
    
        data/lib/ffi.rb
    CHANGED
    
    
| 
         @@ -82,6 +82,8 @@ rbx.platform.typedef.int32_t = int 
     | 
|
| 
       82 
82 
     | 
    
         
             
            rbx.platform.typedef.uint32_t = uint
         
     | 
| 
       83 
83 
     | 
    
         
             
            rbx.platform.typedef.int64_t = long_long
         
     | 
| 
       84 
84 
     | 
    
         
             
            rbx.platform.typedef.uint64_t = ulong_long
         
     | 
| 
      
 85 
     | 
    
         
            +
            rbx.platform.typedef.intptr_t = long
         
     | 
| 
      
 86 
     | 
    
         
            +
            rbx.platform.typedef.uintptr_t = ulong
         
     | 
| 
       85 
87 
     | 
    
         
             
            rbx.platform.typedef.u_int8_t = uchar
         
     | 
| 
       86 
88 
     | 
    
         
             
            rbx.platform.typedef.u_int16_t = ushort
         
     | 
| 
       87 
89 
     | 
    
         
             
            rbx.platform.typedef.u_int32_t = uint
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,13 +1,15 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: ffi
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
               
     | 
| 
      
 4 
     | 
    
         
            +
              hash: -1853901420
         
     | 
| 
      
 5 
     | 
    
         
            +
              prerelease: 6
         
     | 
| 
       5 
6 
     | 
    
         
             
              segments: 
         
     | 
| 
       6 
7 
     | 
    
         
             
              - 1
         
     | 
| 
       7 
     | 
    
         
            -
              -  
     | 
| 
      
 8 
     | 
    
         
            +
              - 5
         
     | 
| 
      
 9 
     | 
    
         
            +
              - 0
         
     | 
| 
      
 10 
     | 
    
         
            +
              - pre
         
     | 
| 
       8 
11 
     | 
    
         
             
              - 1
         
     | 
| 
       9 
     | 
    
         
            -
               
     | 
| 
       10 
     | 
    
         
            -
              version: 1.4.1.dev
         
     | 
| 
      
 12 
     | 
    
         
            +
              version: 1.5.0.pre1
         
     | 
| 
       11 
13 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       12 
14 
     | 
    
         
             
            authors: 
         
     | 
| 
       13 
15 
     | 
    
         
             
            - Wayne Meissner
         
     | 
| 
         @@ -15,46 +17,51 @@ autorequire: 
     | 
|
| 
       15 
17 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       16 
18 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       17 
19 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
            date: 2013-03- 
     | 
| 
       19 
     | 
    
         
            -
            default_executable: 
         
     | 
| 
      
 20 
     | 
    
         
            +
            date: 2013-03-11 00:00:00 Z
         
     | 
| 
       20 
21 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       21 
22 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       22 
     | 
    
         
            -
              name: rake
         
     | 
| 
       23 
23 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       24 
24 
     | 
    
         
             
              requirement: &id001 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 25 
     | 
    
         
            +
                none: false
         
     | 
| 
       25 
26 
     | 
    
         
             
                requirements: 
         
     | 
| 
       26 
27 
     | 
    
         
             
                - - ">="
         
     | 
| 
       27 
28 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 29 
     | 
    
         
            +
                    hash: 3
         
     | 
| 
       28 
30 
     | 
    
         
             
                    segments: 
         
     | 
| 
       29 
31 
     | 
    
         
             
                    - 0
         
     | 
| 
       30 
32 
     | 
    
         
             
                    version: "0"
         
     | 
| 
       31 
33 
     | 
    
         
             
              type: :development
         
     | 
| 
      
 34 
     | 
    
         
            +
              name: rake
         
     | 
| 
       32 
35 
     | 
    
         
             
              version_requirements: *id001
         
     | 
| 
       33 
36 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       34 
     | 
    
         
            -
              name: rake-compiler
         
     | 
| 
       35 
37 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       36 
38 
     | 
    
         
             
              requirement: &id002 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 39 
     | 
    
         
            +
                none: false
         
     | 
| 
       37 
40 
     | 
    
         
             
                requirements: 
         
     | 
| 
       38 
41 
     | 
    
         
             
                - - ">="
         
     | 
| 
       39 
42 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 43 
     | 
    
         
            +
                    hash: 7
         
     | 
| 
       40 
44 
     | 
    
         
             
                    segments: 
         
     | 
| 
       41 
45 
     | 
    
         
             
                    - 0
         
     | 
| 
       42 
46 
     | 
    
         
             
                    - 6
         
     | 
| 
       43 
47 
     | 
    
         
             
                    - 0
         
     | 
| 
       44 
48 
     | 
    
         
             
                    version: 0.6.0
         
     | 
| 
       45 
49 
     | 
    
         
             
              type: :development
         
     | 
| 
      
 50 
     | 
    
         
            +
              name: rake-compiler
         
     | 
| 
       46 
51 
     | 
    
         
             
              version_requirements: *id002
         
     | 
| 
       47 
52 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       48 
     | 
    
         
            -
              name: rspec
         
     | 
| 
       49 
53 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       50 
54 
     | 
    
         
             
              requirement: &id003 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 55 
     | 
    
         
            +
                none: false
         
     | 
| 
       51 
56 
     | 
    
         
             
                requirements: 
         
     | 
| 
       52 
57 
     | 
    
         
             
                - - ">="
         
     | 
| 
       53 
58 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 59 
     | 
    
         
            +
                    hash: 3
         
     | 
| 
       54 
60 
     | 
    
         
             
                    segments: 
         
     | 
| 
       55 
61 
     | 
    
         
             
                    - 0
         
     | 
| 
       56 
62 
     | 
    
         
             
                    version: "0"
         
     | 
| 
       57 
63 
     | 
    
         
             
              type: :development
         
     | 
| 
      
 64 
     | 
    
         
            +
              name: rspec
         
     | 
| 
       58 
65 
     | 
    
         
             
              version_requirements: *id003
         
     | 
| 
       59 
66 
     | 
    
         
             
            description: Ruby FFI library
         
     | 
| 
       60 
67 
     | 
    
         
             
            email: wmeissner@gmail.com
         
     | 
| 
         @@ -499,7 +506,6 @@ files: 
     | 
|
| 
       499 
506 
     | 
    
         
             
            - libtest/StructTest.c
         
     | 
| 
       500 
507 
     | 
    
         
             
            - libtest/UnionTest.c
         
     | 
| 
       501 
508 
     | 
    
         
             
            - libtest/VariadicTest.c
         
     | 
| 
       502 
     | 
    
         
            -
            has_rdoc: true
         
     | 
| 
       503 
509 
     | 
    
         
             
            homepage: http://wiki.github.com/ffi/ffi
         
     | 
| 
       504 
510 
     | 
    
         
             
            licenses: 
         
     | 
| 
       505 
511 
     | 
    
         
             
            - LGPL-3
         
     | 
| 
         @@ -510,18 +516,22 @@ require_paths: 
     | 
|
| 
       510 
516 
     | 
    
         
             
            - lib
         
     | 
| 
       511 
517 
     | 
    
         
             
            - ext/ffi_c
         
     | 
| 
       512 
518 
     | 
    
         
             
            required_ruby_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 519 
     | 
    
         
            +
              none: false
         
     | 
| 
       513 
520 
     | 
    
         
             
              requirements: 
         
     | 
| 
       514 
521 
     | 
    
         
             
              - - ">="
         
     | 
| 
       515 
522 
     | 
    
         
             
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 523 
     | 
    
         
            +
                  hash: 57
         
     | 
| 
       516 
524 
     | 
    
         
             
                  segments: 
         
     | 
| 
       517 
525 
     | 
    
         
             
                  - 1
         
     | 
| 
       518 
526 
     | 
    
         
             
                  - 8
         
     | 
| 
       519 
527 
     | 
    
         
             
                  - 7
         
     | 
| 
       520 
528 
     | 
    
         
             
                  version: 1.8.7
         
     | 
| 
       521 
529 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 530 
     | 
    
         
            +
              none: false
         
     | 
| 
       522 
531 
     | 
    
         
             
              requirements: 
         
     | 
| 
       523 
532 
     | 
    
         
             
              - - ">"
         
     | 
| 
       524 
533 
     | 
    
         
             
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 534 
     | 
    
         
            +
                  hash: 25
         
     | 
| 
       525 
535 
     | 
    
         
             
                  segments: 
         
     | 
| 
       526 
536 
     | 
    
         
             
                  - 1
         
     | 
| 
       527 
537 
     | 
    
         
             
                  - 3
         
     | 
| 
         @@ -530,7 +540,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       530 
540 
     | 
    
         
             
            requirements: []
         
     | 
| 
       531 
541 
     | 
    
         | 
| 
       532 
542 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       533 
     | 
    
         
            -
            rubygems_version: 1. 
     | 
| 
      
 543 
     | 
    
         
            +
            rubygems_version: 1.8.24
         
     | 
| 
       534 
544 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       535 
545 
     | 
    
         
             
            specification_version: 3
         
     | 
| 
       536 
546 
     | 
    
         
             
            summary: Ruby FFI
         
     |