ffi 1.4.1.dev-x86-mingw32 → 1.5.0.pre1-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.

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('lib/1.8')
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')
@@ -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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ffi'
3
- s.version = '1.4.1.dev'
3
+ s.version = '1.5.0.pre1'
4
4
  s.author = 'Wayne Meissner'
5
5
  s.email = 'wmeissner@gmail.com'
6
6
  s.homepage = 'http://wiki.github.com/ffi/ffi'
Binary file
Binary file
Binary file
data/lib/ffi.rb CHANGED
@@ -5,6 +5,8 @@ if !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'rbx'
5
5
  require '1.8/ffi_c'
6
6
  elsif RUBY_VERSION =~ /1.9/
7
7
  require '1.9/ffi_c'
8
+ elsif RUBY_VERSION =~ /2.0/
9
+ require '2.0/ffi_c'
8
10
  else
9
11
  require 'ffi_c'
10
12
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1824508225
4
+ hash: -2445089964
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 1
8
- - 4
8
+ - 5
9
+ - 0
10
+ - pre
9
11
  - 1
10
- - dev
11
- version: 1.4.1.dev
12
+ version: 1.5.0.pre1
12
13
  platform: x86-mingw32
13
14
  authors:
14
15
  - Wayne Meissner
@@ -16,7 +17,7 @@ autorequire:
16
17
  bindir: bin
17
18
  cert_chain: []
18
19
 
19
- date: 2013-03-10 00:00:00 Z
20
+ date: 2013-03-11 00:00:00 Z
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  prerelease: false