ffi 1.17.0.rc1-x86_64-linux-gnu → 1.17.0-x86_64-linux-gnu

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: 583c346a6d390257c7e0c51ca394bcb8361760ec294aa344ca226c4df9da109e
4
- data.tar.gz: 8a082ec67c9900f528977db27c96506420ed87755c323e9a6c795cbaf331b8ee
3
+ metadata.gz: aa85f7b6e38a25e36f01cff5a0ddd17f34d8965fb052e5291d9a0b6d1a913e9a
4
+ data.tar.gz: bdcb933be6f2312ebdb8353181b78d60f9d9a8473110bc72898075e0a34bd941
5
5
  SHA512:
6
- metadata.gz: 93e988e9215b8c46f6f56a3bd19e195c7ce8216b29cda87f878d970510d586287eeb83c8307de7a80adf7551b51e4831d3d9a626fcbfdf4277fd3103ceb00364
7
- data.tar.gz: 4b143103fae85dfa3933841ef36aae75a827675150cfd0f0f39e7bea7ded9d2dbc99ffb75f25dfc1d3f6304453f7737881af6d7c5e433f2f3526a0d065db57e0
6
+ metadata.gz: 65e079c6c4effb4480d2bdb5e00ad537a5ee29806410e2f6333fece7d066a06140bada86612a85b20edb5e9dee7047dda22baa9629fa408c3ff9a0f068432741
7
+ data.tar.gz: a49270d92ccf5baf1b088ee931562e4d775cd1a0c81ee86919532fc4b5e324d130db130fab197957c3492a591e25006b5f177b20f5e98cc9abbb47307f68a0eb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ 1.17.0 / 2024-06-02
2
+ -------------------
3
+
4
+ Fixed:
5
+ * Add FFI::AbstractMemory#read_array_of_string . It was defined but not exposed to Ruby nor tested. #1070
6
+
7
+
8
+ 1.17.0.rc2 / 2024-04-22
9
+ -------------------
10
+
11
+ Fixed:
12
+ * Add missing write barriers to StructLayout#initialize causing a segfault with GC.stress. #1079
13
+
14
+
1
15
  1.17.0.rc1 / 2024-04-08
2
16
  -------------------
3
17
 
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  group :development do
4
- gem 'bigdecimal' unless RUBY_VERSION =~ /^2\.[4567]|^3\.[012]\./ # necessary on ruby-3.3+
4
+ gem 'bigdecimal' # necessary on ruby-3.3+
5
5
  gem 'bundler', '>= 1.16', '< 3'
6
6
  gem 'rake', '~> 13.0'
7
7
  gem 'rake-compiler', '~> 1.1'
data/lib/2.5/ffi_c.so CHANGED
Binary file
data/lib/2.6/ffi_c.so CHANGED
Binary file
data/lib/2.7/ffi_c.so CHANGED
Binary file
data/lib/3.0/ffi_c.so CHANGED
Binary file
data/lib/3.1/ffi_c.so CHANGED
Binary file
data/lib/3.2/ffi_c.so CHANGED
Binary file
data/lib/3.3/ffi_c.so CHANGED
Binary file
@@ -45,14 +45,6 @@ module FFI
45
45
  # @note WARNING: passing a proc _may_ cause your pointer to never be
46
46
  # GC'd, unless you're careful to avoid trapping a reference to the
47
47
  # pointer in the proc. See the test specs for examples.
48
- # @overload initialize(pointer) { |p| ... }
49
- # @param pointer [Pointer]
50
- # @yieldparam [Pointer] p +pointer+ passed to the block
51
- # @return [self]
52
- # The passed block will be invoked at GC time.
53
- # @note
54
- # WARNING: passing a block will cause your pointer to never be GC'd.
55
- # This is bad.
56
48
  # @overload initialize(pointer)
57
49
  # @param pointer [Pointer]
58
50
  # @return [self]
@@ -75,7 +67,7 @@ module FFI
75
67
  # The last calling idiom (only one parameter) is generally only
76
68
  # going to be useful if you subclass {AutoPointer}, and override
77
69
  # #release, which by default does nothing.
78
- def initialize(ptr, proc=nil, &block)
70
+ def initialize(ptr, proc=nil)
79
71
  raise TypeError, "Invalid pointer" if ptr.nil? || !ptr.kind_of?(Pointer) ||
80
72
  ptr.kind_of?(MemoryPointer) || ptr.kind_of?(AutoPointer)
81
73
  super(ptr.type_size, ptr)
data/lib/ffi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module FFI
2
- VERSION = '1.17.0.rc1'
2
+ VERSION = '1.17.0'
3
3
  end
@@ -144,6 +144,7 @@ module FFI
144
144
  def read_array_of_float: (Integer length) -> Array[Float]
145
145
  def read_array_of_double: (Integer length) -> Array[Float]
146
146
  def read_array_of_pointer: (Integer length) -> Array[Pointer]
147
+ def read_array_of_string: (?Integer? count) -> Array[String?]
147
148
 
148
149
  def write_array_of_int8: (Array[int] ary) -> self
149
150
  def write_array_of_int16: (Array[int] ary) -> self
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.17.0.rc1
4
+ version: 1.17.0
5
5
  platform: x86_64-linux-gnu
6
6
  authors:
7
7
  - Wayne Meissner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-08 00:00:00.000000000 Z
11
+ date: 2024-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -230,9 +230,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
230
230
  version: 3.4.dev
231
231
  required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  requirements:
233
- - - ">"
234
- - !ruby/object:Gem::Version
235
- version: 1.3.1
236
233
  - - ">="
237
234
  - !ruby/object:Gem::Version
238
235
  version: 3.3.22