ffi 1.9.18-java → 1.9.21-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.

Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -2
  3. data/Rakefile +14 -3
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44b7012937e87927972adc07e087d35374afee6d
4
- data.tar.gz: ccfe5526c28fce838d612542d1706a02011e457a
3
+ metadata.gz: 62b5fbab3399555e17e6e57505b9bee2b9410a1e
4
+ data.tar.gz: 192559cc1c17625ec0994edbc20c59177cd2ba7b
5
5
  SHA512:
6
- metadata.gz: 617964f928af04df4cd719f60ebefe7de0f5583c50b9e02d2ea2c701475fd63f1c1017b2eacfa96ab3ac3b20019cebaadccc9d0e755563e9bb31e9494d6b9daf
7
- data.tar.gz: 726cf7e2846cd381ab41a55a336fd3f37e946fc935e2353a0842d857fe0885554ce7d1ea61f1989198315a62d3dfee9e6c76266f01d1a06e1ed0206eea09b742
6
+ metadata.gz: e3c5359fbc0dc3687373fc8c4e8629b4e29073c61f7a3236cf29f684ea6fe8967ef248cafa681939492199ca4dbc2c0b58793f9749c3773d9f6db108cff061a0
7
+ data.tar.gz: 9b9603dc7bf049b71fd314cd1a6cf1f0ec8caf938177e2a8f3d2cad9004dd80be2ffc6f4ca97a50be4d569136be82da6e57bc466da61aae7420561b5989f841b
data/README.md CHANGED
@@ -43,7 +43,7 @@ At a minimum, you will need:
43
43
  * A C compiler (e.g. Xcode on OSX, gcc on everything else)
44
44
  * libffi development library - this is commonly in the libffi-dev or libffi-devel
45
45
 
46
- On Linux systems running with [PaX](https://en.wikipedia.org/wiki/PaX) (Gentoo, Alpine, etc.) FFI may trigger `mprotrect` errors. You may need to disable [mprotect](https://en.wikibooks.org/wiki/Grsecurity/Appendix/Grsecurity_and_PaX_Configuration_Options#Restrict_mprotect.28.29) for ruby (`paxctl -m [/path/to/ruby]`) for the time being until a solution is found.
46
+ On Linux systems running with [PaX](https://en.wikipedia.org/wiki/PaX) (Gentoo, Alpine, etc.) FFI may trigger `mprotect` errors. You may need to disable [mprotect](https://en.wikibooks.org/wiki/Grsecurity/Appendix/Grsecurity_and_PaX_Configuration_Options#Restrict_mprotect.28.29) for ruby (`paxctl -m [/path/to/ruby]`) for the time being until a solution is found.
47
47
 
48
48
  ## Installation
49
49
 
@@ -54,8 +54,9 @@ From rubygems:
54
54
  or from the git repository on github:
55
55
 
56
56
  git clone git://github.com/ffi/ffi.git
57
+ git submodule update --init --recursive
57
58
  cd ffi
58
- rake gem:install
59
+ rake install
59
60
 
60
61
  ## License
61
62
 
data/Rakefile CHANGED
@@ -65,7 +65,18 @@ OS = case RbConfig::CONFIG['host_os'].downcase
65
65
  RbConfig::CONFIG['host_os'].downcase
66
66
  end
67
67
 
68
- GMAKE = system('which gmake >/dev/null') && 'gmake' || 'make'
68
+ def which(name)
69
+ exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
70
+ ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
71
+ exts.each do |ext|
72
+ app = File.join(path, name+ext)
73
+ return app if File.executable? app
74
+ end
75
+ end
76
+ nil
77
+ end
78
+
79
+ GMAKE = which('gmake').nil? ? 'make' : 'gmake'
69
80
 
70
81
  LIBTEST = "build/libtest.#{LIBEXT}"
71
82
  BUILD_DIR = "build"
@@ -175,7 +186,7 @@ if USE_RAKE_COMPILER
175
186
  ext.cross_platform = %w[i386-mingw32 x64-mingw32] # forces the Windows platform instead of the default one
176
187
  end
177
188
 
178
- ENV['RUBY_CC_VERSION'] ||= '1.8.7:1.9.3:2.0.0:2.1.6:2.2.2:2.3.0'
189
+ ENV['RUBY_CC_VERSION'] ||= '1.9.3:2.0.0:2.1.6:2.2.2:2.3.0'
179
190
 
180
191
  # To reduce the gem file size strip mingw32 dlls before packaging
181
192
  ENV['RUBY_CC_VERSION'].to_s.split(':').each do |ruby_version|
@@ -191,7 +202,7 @@ if USE_RAKE_COMPILER
191
202
  desc "build a windows gem without all the ceremony."
192
203
  task "gem:windows" do
193
204
  require "rake_compiler_dock"
194
- RakeCompilerDock.sh "bundle && rake cross native gem MAKE='nice make -j`nproc`'"
205
+ RakeCompilerDock.sh "sudo apt-get update && sudo apt-get install -y libltdl-dev && bundle && rake cross native gem MAKE='nice make -j`nproc`'"
195
206
  end
196
207
  end
197
208
 
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.18
4
+ version: 1.9.21
5
5
  platform: java
6
6
  authors:
7
7
  - Wayne Meissner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-03 00:00:00.000000000 Z
11
+ date: 2018-02-06 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.6.8
43
+ rubygems_version: 2.5.2
44
44
  signing_key:
45
45
  specification_version: 4
46
46
  summary: Ruby FFI