ffi 1.14.1-x64-mingw32 → 1.14.2-x64-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: 634ac08faa345adcb69704357ca330210cc1a693016e9baa006f24e50a074ced
4
- data.tar.gz: e7206eee796d20f6e95af6235c68ad6bd8a9bd63563fab5a05adb9c586d5e304
3
+ metadata.gz: 236cd3020d1353d3095641347f2051d41616189c82ad9d55dba6842f449bc7a4
4
+ data.tar.gz: e0c84aa3a13297b586a9a3a0b7d2b4a437f0bafd1c7cf9bc0b7c1d6e82d271b6
5
5
  SHA512:
6
- metadata.gz: 1bf9dc354b64cdb522381ac403ababf2ea03a7c81b320c5c8b13106ece4678db3b6dd348c533b4c206fd9e938d912cbd41bc75a64a9cd20ac06ea9f7a60d3804
7
- data.tar.gz: b9e4210ee459b68934ebf8b2d44deb53cfcf9821285d62b94e515a656ab20608533382632c6e96ff02510c6f2579255ee537443be3b05ed695926bc97ed3b0ab
6
+ metadata.gz: 2e43f7de46c434dfd5d75094c27f31b999c8a97cdb64189acfa07f91f850ad882da31baf5b7a644909a6ca3c82f7bd954b8113cd35dd3209d3a95cfed630f697
7
+ data.tar.gz: dec0acbc945121691158a6c580dc85c5ebb6607f8c3f7be79fc0f9ab1ff5c03b01e9cbdd303049bbed863bc75ccfdbdc6930f98cb128e58e4f60862129fb2fd3
@@ -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: x64-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