ffi 1.11.3-x86-mingw32 → 1.12.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e91d2cc175d551d4b9b205efc74a57500b1f1e9896338a285dc1ecb93a701399
4
- data.tar.gz: 27be6ad5a375af31ae885034b218980c1966feb02e3dfdfb89ef8b0f966814e9
3
+ metadata.gz: d452ca4f88fb61a10a0e2e443e5933d5466756ce9627c7540c1389da68acded8
4
+ data.tar.gz: facb781924fcad6690a94df30fa9c464b7173f9cb44442f607d958879faa829d
5
5
  SHA512:
6
- metadata.gz: 809908017ae8bad9351ff734fdd9f97757cc55118fb374b2310fd1bf134f8ce5d14c268c70bc81e9fa9aae4c66bf5af940ab9b7b7fefa55a5810daafa89e2565
7
- data.tar.gz: 1c7e9863a710774d850ef16bd70787ed7e2285cf0290aaa346cb05254ba51a89603993405341de0de2bcaaba2f5ceee47bd1486a72bfa86f815931ad5ebeb798
6
+ metadata.gz: 6a55bef7820005629817290535b67968fc8882d7219907397ff352066e32f5770369540c0311669b02cce5a68f0ccbdb2a01463c51d5e76cdef433fa2493959e
7
+ data.tar.gz: af6964193c80e27114e1c3aacfaa949570f488f9e29c0bf0946a18401eb3f3c36c52e569389f39465fbac0958cfe271de4ae0694a9d78165ccbcba46fa41ef2d
@@ -23,6 +23,8 @@ matrix:
23
23
  allow_failures:
24
24
  - os: osx
25
25
  rvm: ruby-head
26
+ - os: osx
27
+ rvm: 2.3.8
26
28
  include:
27
29
  - name: powerpc
28
30
  language: generic
@@ -1,3 +1,17 @@
1
+ 1.12.0 / 2020-01-14
2
+ -------------------
3
+
4
+ Added:
5
+ * FFI::VERSION is defined as part of `require 'ffi'` now.
6
+ It is no longer necessary to `require 'ffi/version'` .
7
+
8
+ Changed:
9
+ * Update libffi to latest master.
10
+
11
+ Deprecated:
12
+ * Overwriting struct layouts is now warned and will be disallowed in ffi-2.0. #734, #735
13
+
14
+
1
15
  1.11.3 / 2019-11-25
2
16
  -------------------
3
17
 
data/Gemfile CHANGED
@@ -1,9 +1,9 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  group :development do
4
- gem 'rake', '~> 12.1'
4
+ gem 'rake', '~> 13.0'
5
5
  gem 'rake-compiler', '~> 1.0.3'
6
- gem 'rake-compiler-dock', '~> 0.7.0'
6
+ gem 'rake-compiler-dock', '~> 1.0'
7
7
  gem 'rspec', '~> 3.0'
8
8
  gem 'rubygems-tasks', '~> 0.2.4', :require => 'rubygems/tasks'
9
9
  gem "rubysl", "~> 2.0", :platforms => 'rbx'
data/README.md CHANGED
@@ -38,10 +38,19 @@ For less minimalistic and more examples you may look at:
38
38
 
39
39
  ## Requirements
40
40
 
41
- When installing the gem on CRuby (MRI) or Rubinius, you will need:
41
+ When installing the gem on CRuby (MRI), you will need:
42
42
  * A C compiler (e.g., Xcode on macOS, `gcc` or `clang` on everything else)
43
+ Optionally (speeds up installation):
43
44
  * The `libffi` library and development headers - this is commonly in the `libffi-dev` or `libffi-devel` packages
44
45
 
46
+ The ffi gem comes with a builtin libffi version, which is used, when the system libffi library is not available or too old.
47
+ Use of the system libffi can be enforced by:
48
+ ```
49
+ gem install ffi -- --enable-system-libffi # to install the gem manually
50
+ bundle config build.ffi --enable-system-libffi # for bundle install
51
+ ```
52
+ or prevented by `--disable-system-libffi`.
53
+
45
54
  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.
46
55
 
47
56
  On FreeBSD systems pkgconf must be installed for the gem to be able to compile using clang. Install either via packages `pkg install pkgconf` or from ports via `devel/pkgconf`.
@@ -35,9 +35,9 @@ Gem::Specification.new do |s|
35
35
  s.license = 'BSD-3-Clause'
36
36
  s.require_paths << 'ext/ffi_c'
37
37
  s.required_ruby_version = '>= 2.0'
38
- s.add_development_dependency 'rake', '~> 12.1'
38
+ s.add_development_dependency 'rake', '~> 13.0'
39
39
  s.add_development_dependency 'rake-compiler', '~> 1.0'
40
- s.add_development_dependency 'rake-compiler-dock', '~> 0.7.0'
40
+ s.add_development_dependency 'rake-compiler-dock', '~> 1.0'
41
41
  s.add_development_dependency 'rspec', '~> 2.14.1'
42
42
  s.add_development_dependency 'rubygems-tasks', "~> 0.2.4"
43
43
  end
@@ -43,3 +43,4 @@ require 'ffi/io'
43
43
  require 'ffi/autopointer'
44
44
  require 'ffi/variadic'
45
45
  require 'ffi/enum'
46
+ require 'ffi/version'
@@ -204,7 +204,7 @@ module FFI
204
204
  # end
205
205
  # @note Creating a layout from a hash +spec+ is supported only for Ruby 1.9.
206
206
  def layout(*spec)
207
- #raise RuntimeError, "struct layout already defined for #{self.inspect}" if defined?(@layout)
207
+ warn "[DEPRECATION] Struct layout is already defined for class #{self.inspect}. Redefinition as in #{caller[0]} will be disallowed in ffi-2.0." if defined?(@layout)
208
208
  return @layout if spec.size == 0
209
209
 
210
210
  builder = StructLayoutBuilder.new
@@ -1,3 +1,3 @@
1
1
  module FFI
2
- VERSION = '1.11.3'
2
+ VERSION = '1.12.0'
3
3
  end
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.11.3
4
+ version: 1.12.0
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Wayne Meissner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-25 00:00:00.000000000 Z
11
+ date: 2020-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '12.1'
19
+ version: '13.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '12.1'
26
+ version: '13.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake-compiler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.7.0
47
+ version: '1.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.7.0
54
+ version: '1.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -207,15 +207,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
207
  version: '2.2'
208
208
  - - "<"
209
209
  - !ruby/object:Gem::Version
210
- version: 2.7.dev
210
+ version: 2.8.dev
211
211
  required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - ">="
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
- rubyforge_project:
218
- rubygems_version: 2.7.9
217
+ rubygems_version: 3.1.2
219
218
  signing_key:
220
219
  specification_version: 4
221
220
  summary: Ruby FFI