ffi 1.14.1-x86-mingw32 → 1.14.2-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: 59b764144f02af4cc91789909e7b82d18c942f1ed9b4e525a507d78ace59be0c
4
- data.tar.gz: 3a9019cef1c9cd940be2b33d304eef5a8ba8849a6d7ec84e17c9902cc5838495
3
+ metadata.gz: 714c5f68d2f8611be232ee4e444506801cfad7a0e25b2327839c96b73212e5fe
4
+ data.tar.gz: 7ea2ec6b5a7f267ec76443e792e880055790c6af732f0f0a7415316b6548e967
5
5
  SHA512:
6
- metadata.gz: e07cd563092e4ab9f075cbc354df4598dd911dcfbd350d7939107df264220a9763c5cdd92b9a5d5695197fce23d9e93d2d06bcb8a2f7b3943351ecdf65716ba5
7
- data.tar.gz: 051bf4d523f61fd83c787efb3534972b9fc51d6c5598e80ddb76237d49f4cd29d65d6e6fc9d0417dc2710171b52adf1b15c98816d0ba8e1248d51a7527f315bd
6
+ metadata.gz: e01f3b6915be3af480a100af252ddfb1dc535dd8dc7d5459994cade0b4796a3704558bf2fc9fbb0138e4e404c24bf54536a47c6e47b6c80f81d11e21b4d7703c
7
+ data.tar.gz: 2eb5169665e6312988c804a5b225e7cb1d103eb929923bf1807558eb02e7540eff8c093d21433f748964914e15fb29cddd80bacebc129809340b6983de61aa33
@@ -1,9 +1,16 @@
1
+ 1.14.2 / 2020-12-21
2
+ -------------------
3
+
4
+ Fixed:
5
+ * Fix builtin libffi on newer Ubuntu caused by an outdated Makefile.in . #863
6
+
7
+
1
8
  1.14.1 / 2020-12-19
2
9
  -------------------
3
10
 
4
11
  Changed:
5
12
  * Revert changes to FFI::Pointer#write_string made in ffi-1.14.0.
6
- It turned out that it can cause hard to find errors. #857
13
+ It breaks compatibilty in a way that can cause hard to find errors. #857
7
14
 
8
15
 
9
16
  1.14.0 / 2020-12-18
@@ -29,6 +36,7 @@ Fixed:
29
36
  * Fix memory leak in MethodHandle . #815
30
37
  * Fix possible segfault in combination with fiddle or other libffi using gems . #835
31
38
  * Fix possibility to use ffi ruby gem with JRuby-9.3 . #763
39
+ * Fix a GC issue, when a callback Proc is used on more than 2 callback signatures. #820
32
40
 
33
41
 
34
42
  1.13.1 / 2020-06-09
data/Rakefile CHANGED
@@ -37,6 +37,13 @@ CLEAN.include "pkg/ffi-*-{mingw32,java}"
37
37
  CLEAN.include 'lib/1.*'
38
38
  CLEAN.include 'lib/2.*'
39
39
 
40
+ # clean all shipped files, that are not in git
41
+ CLEAN.include(
42
+ gem_spec.files -
43
+ `git --git-dir ext/ffi_c/libffi/.git ls-files -z`.split("\x0").map { |f| File.join("ext/ffi_c/libffi", f) } -
44
+ `git ls-files -z`.split("\x0")
45
+ )
46
+
40
47
  task :distclean => :clobber
41
48
 
42
49
  desc "Test the extension"
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -117,7 +117,7 @@ module FFI
117
117
  end
118
118
 
119
119
  # @abstract Base class for {AutoPointer}'s releasers.
120
- #
120
+ #
121
121
  # All subclasses of Releaser should define a +#release(ptr)+ method.
122
122
  # A releaser is an object in charge of release an {AutoPointer}.
123
123
  class Releaser
@@ -29,7 +29,7 @@
29
29
  # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.#
30
30
 
31
31
  module FFI
32
-
32
+
33
33
  # This module implements a couple of class methods to play with IO.
34
34
  module IO
35
35
  # @param [Integer] fd file decriptor
@@ -42,12 +42,12 @@ module FFI
42
42
 
43
43
  # @param [#read] io io to read from
44
44
  # @param [AbstractMemory] buf destination for data read from +io+
45
- # @param [nil, Numeric] len maximul number of bytes to read from +io+. If +nil+,
45
+ # @param [nil, Numeric] len maximul number of bytes to read from +io+. If +nil+,
46
46
  # read until end of file.
47
47
  # @return [Numeric] length really read, in bytes
48
48
  #
49
49
  # A version of IO#read that reads data from an IO and put then into a native buffer.
50
- #
50
+ #
51
51
  # This will be optimized at some future time to eliminate the double copy.
52
52
  #
53
53
  def self.native_read(io, buf, len)
@@ -44,7 +44,7 @@ module FFI
44
44
  # attach_function :new_dlist, [], :pointer
45
45
  # attach_function :destroy_dlist, [:pointer], :void
46
46
  # end
47
- #
47
+ #
48
48
  # class DoublyLinkedList < FFI::ManagedStruct
49
49
  # @@@
50
50
  # struct do |s|
@@ -71,7 +71,7 @@ module FFI
71
71
 
72
72
  # @overload initialize(pointer)
73
73
  # @param [Pointer] pointer
74
- # Create a new ManagedStruct which will invoke the class method #release on
74
+ # Create a new ManagedStruct which will invoke the class method #release on
75
75
  # @overload initialize
76
76
  # A new instance of FFI::ManagedStruct.
77
77
  def initialize(pointer=nil)
@@ -52,7 +52,7 @@ module FFI
52
52
 
53
53
  # @param [nil,Numeric] len length of string to return
54
54
  # @return [String]
55
- # Read pointer's contents as a string, or the first +len+ bytes of the
55
+ # Read pointer's contents as a string, or the first +len+ bytes of the
56
56
  # equivalent string if +len+ is not +nil+.
57
57
  def read_string(len=nil)
58
58
  if len
@@ -96,7 +96,7 @@ module FFI
96
96
  # @param [String] str string to write
97
97
  # @param [Numeric] len length of string to return
98
98
  # @return [self]
99
- # Write +str+ in pointer's contents, or first +len+ bytes if
99
+ # Write +str+ in pointer's contents, or first +len+ bytes if
100
100
  # +len+ is not +nil+.
101
101
  def write_string(str, len=nil)
102
102
  len = str.bytesize unless len
@@ -31,7 +31,7 @@
31
31
  #
32
32
 
33
33
  module FFI
34
- class VariadicInvoker
34
+ class VariadicInvoker
35
35
  def init(arg_types, type_map)
36
36
  @fixed = Array.new
37
37
  @type_map = type_map
@@ -1,3 +1,3 @@
1
1
  module FFI
2
- VERSION = '1.14.1'
2
+ VERSION = '1.14.2'
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.14.1
4
+ version: 1.14.2
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: 2020-12-19 00:00:00.000000000 Z
11
+ date: 2020-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -99,6 +99,7 @@ files:
99
99
  - lib/2.5/ffi_c.so
100
100
  - lib/2.6/ffi_c.so
101
101
  - lib/2.7/ffi_c.so
102
+ - lib/3.0/ffi_c.so
102
103
  - lib/ffi.rb
103
104
  - lib/ffi/abstract_memory.rb
104
105
  - lib/ffi/autopointer.rb
@@ -208,14 +209,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
208
209
  version: '2.3'
209
210
  - - "<"
210
211
  - !ruby/object:Gem::Version
211
- version: 2.8.dev
212
+ version: 3.1.dev
212
213
  required_rubygems_version: !ruby/object:Gem::Requirement
213
214
  requirements:
214
215
  - - ">="
215
216
  - !ruby/object:Gem::Version
216
217
  version: '0'
217
218
  requirements: []
218
- rubygems_version: 3.1.2
219
+ rubygems_version: 3.2.2
219
220
  signing_key:
220
221
  specification_version: 4
221
222
  summary: Ruby FFI