ffi 1.9.8-java → 1.9.9-java
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.
- checksums.yaml +4 -4
- data/Rakefile +24 -39
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19eaf534f92ce38a356030667ced3593a05d31e0
|
4
|
+
data.tar.gz: 2170d42e04a32077b7b22f5413e085a53f84fd1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f281736e6412e2be7717e1cf094ba6406a115dfa7ef982756b59327fe27d49840cffb9926cbcc0a9e208aeae4d58f11b9450031337d8267219585d4fe65f3184
|
7
|
+
data.tar.gz: b4b597dc8c3892d338bae3999942e9daafe84d80b58cd19e4c60e0cab81b6bb08096694c55f49d394a3f9f9439f0e49e224c9a1daccb608c996b3e0a84959ff1
|
data/Rakefile
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'rubygems/tasks'
|
2
2
|
require 'rbconfig'
|
3
3
|
require 'rake/clean'
|
4
|
+
require File.expand_path("./lib/ffi/version")
|
4
5
|
|
5
6
|
USE_RAKE_COMPILER = (RUBY_PLATFORM =~ /java/) ? false : true
|
6
7
|
if USE_RAKE_COMPILER
|
@@ -13,11 +14,6 @@ require 'rbconfig'
|
|
13
14
|
require 'rspec/core/rake_task'
|
14
15
|
require 'rubygems/package_task'
|
15
16
|
|
16
|
-
RSpec::Core::RakeTask.new(:spec => :compile) do |config|
|
17
|
-
config.rspec_opts = YAML.load_file 'spec/spec.opts'
|
18
|
-
end
|
19
|
-
|
20
|
-
|
21
17
|
LIBEXT = case RbConfig::CONFIG['host_os'].downcase
|
22
18
|
when /darwin/
|
23
19
|
"dylib"
|
@@ -81,38 +77,31 @@ end
|
|
81
77
|
|
82
78
|
TEST_DEPS = [ LIBTEST ]
|
83
79
|
if RUBY_PLATFORM == "java"
|
84
|
-
|
85
|
-
|
86
|
-
sh %{#{Gem.ruby} -w -S rspec #{args.options || Dir["spec/ffi/*_spec.rb"].join(" ")} -fs --color}
|
87
|
-
end
|
88
|
-
desc "Run rubinius specs"
|
89
|
-
task :rbxspecs => TEST_DEPS do
|
90
|
-
sh %{#{Gem.ruby} -w -S rspec #{Dir["spec/ffi/rbx/*_spec.rb"].join(" ")} -fs --color}
|
80
|
+
RSpec::Core::RakeTask.new(:spec) do |config|
|
81
|
+
config.rspec_opts = YAML.load_file 'spec/spec.opts'
|
91
82
|
end
|
92
83
|
else
|
93
|
-
|
94
|
-
|
95
|
-
task :specs, [:options] => TEST_DEPS do |t, args|
|
96
|
-
ENV["MRI_FFI"] = "1"
|
97
|
-
sh %{#{Gem.ruby} -w -Ilib -I#{BUILD_EXT_DIR} -S rspec #{args.options || Dir["spec/ffi/*_spec.rb"].join(" ")} -fs --color}
|
98
|
-
end
|
99
|
-
desc "Run rubinius specs"
|
100
|
-
task :rbxspecs => TEST_DEPS do
|
101
|
-
ENV["MRI_FFI"] = "1"
|
102
|
-
sh %{#{Gem.ruby} -w -Ilib -I#{BUILD_EXT_DIR} -S rspec #{Dir["spec/ffi/rbx/*_spec.rb"].join(" ")} -fs --color}
|
84
|
+
RSpec::Core::RakeTask.new(:spec => :compile) do |config|
|
85
|
+
config.rspec_opts = YAML.load_file 'spec/spec.opts'
|
103
86
|
end
|
87
|
+
|
88
|
+
TEST_DEPS.unshift :compile
|
104
89
|
end
|
105
90
|
|
106
91
|
desc "Build all packages"
|
107
92
|
task :package => 'gem:package'
|
108
93
|
|
109
|
-
CLOBBER.include 'build'
|
110
|
-
CLOBBER.include FileList['lib/**/ffi_c.so']
|
111
|
-
CLOBBER.include FileList["lib/**/ffi_c.#{RbConfig::CONFIG['DLEXT']}"]
|
112
94
|
CLOBBER.include 'lib/ffi/types.conf'
|
113
|
-
CLOBBER.include 'conftest.dSYM'
|
114
95
|
CLOBBER.include 'pkg'
|
115
|
-
|
96
|
+
|
97
|
+
CLEAN.include 'build'
|
98
|
+
CLEAN.include 'conftest.dSYM'
|
99
|
+
CLEAN.include 'spec/ffi/fixtures/libtest.dylib'
|
100
|
+
CLEAN.include FileList["pkg/ffi-#{FFI::VERSION}-*-mingw32"]
|
101
|
+
CLEAN.include FileList["pkg/ffi-#{FFI::VERSION}-java"]
|
102
|
+
CLEAN.include FileList['lib/1.*']
|
103
|
+
CLEAN.include FileList['lib/2.*']
|
104
|
+
CLEAN.include 'bin'
|
116
105
|
|
117
106
|
task :distclean => :clobber
|
118
107
|
|
@@ -185,27 +174,23 @@ if USE_RAKE_COMPILER
|
|
185
174
|
ext.cross_platform = %w[i386-mingw32 x64-mingw32] # forces the Windows platform instead of the default one
|
186
175
|
end
|
187
176
|
|
188
|
-
|
189
|
-
|
190
|
-
task 'gem:win32-i386' do
|
191
|
-
sh("rake cross native:i386-mingw32 gem RUBY_CC_VERSION='1.8.7:1.9.3:2.0.0:2.1.5:2.2.1'") || raise("win32-i386 build failed!")
|
192
|
-
end
|
193
|
-
|
194
|
-
task 'gem:win32-x64' do
|
195
|
-
sh("rake cross native:x64-mingw32 gem RUBY_CC_VERSION='2.0.0:2.1.5:2.2.1'") || raise("win32-x64 build failed!")
|
196
|
-
end
|
177
|
+
ENV['RUBY_CC_VERSION'] ||= '1.8.7:1.9.3:2.0.0:2.1.5:2.2.1'
|
197
178
|
|
198
|
-
|
179
|
+
ENV['RUBY_CC_VERSION'].to_s.split(':').each do |ruby_version|
|
199
180
|
task "copy:ffi_c:i386-mingw32:#{ruby_version}" do |t|
|
200
181
|
sh "i686-w64-mingw32-strip -S #{BUILD_DIR}/i386-mingw32/stage/lib/#{ruby_version[/^\d+\.\d+/]}/ffi_c.so"
|
201
182
|
end
|
202
|
-
end
|
203
183
|
|
204
|
-
(ENV['RUBY_CC_VERSION'] || '2.0.0:2.1.5:2.2.1' ).to_s.split(':').each do |ruby_version|
|
205
184
|
task "copy:ffi_c:x64-mingw32:#{ruby_version}" do |t|
|
206
185
|
sh "x86_64-w64-mingw32-strip -S #{BUILD_DIR}/x64-mingw32/stage/lib/#{ruby_version[/^\d+\.\d+/]}/ffi_c.so"
|
207
186
|
end
|
208
187
|
end
|
188
|
+
|
189
|
+
desc "build a windows gem without all the ceremony."
|
190
|
+
task "gem:windows" do
|
191
|
+
require "rake_compiler_dock"
|
192
|
+
RakeCompilerDock.sh "bundle && rake cross native gem MAKE='nice make -j`nproc`'"
|
193
|
+
end
|
209
194
|
end
|
210
195
|
|
211
196
|
Gem::Tasks.new do |t|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.9
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Wayne Meissner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby FFI library
|
14
14
|
email: wmeissner@gmail.com
|
@@ -40,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
40
40
|
version: '0'
|
41
41
|
requirements: []
|
42
42
|
rubyforge_project:
|
43
|
-
rubygems_version: 2.4.
|
43
|
+
rubygems_version: 2.4.6
|
44
44
|
signing_key:
|
45
45
|
specification_version: 4
|
46
46
|
summary: Ruby FFI
|