ffi-openmpt 0.4.0 → 0.4.1

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: 5d30e0517446c3cf2bfabeefd2d7b3ec0db4485a27a8ee6564a854826c5a5e90
4
- data.tar.gz: eb85f0fc61a052cfc7d032634a3229d4527d1579931d67e3e23c1ed1b658e8b1
3
+ metadata.gz: 4c41a87a7640968fba218dc85f06fc381b94fdf1358e1efbf192b17c2f80879d
4
+ data.tar.gz: e0f363b9858f658aba66f3ce9147c85cbee60979fff63e1a727a64d089f994c3
5
5
  SHA512:
6
- metadata.gz: ef774fbdfa2c3c80d39dee216fdf09ad894a79a8f6f1895c09101460c622239d5257cdf046bb790f097f4bf7350aa234739e1ffe7fd73e993a7910e7b90f2167
7
- data.tar.gz: 26f6137c8f81ea90c1ebe205ed8fa2686c022d5b959d828275a323fc5116ef0b60073b6b1de7ca7fc6b59cd0d06af5eb91c035a57496a399fe0765757c6f5cdf
6
+ metadata.gz: 70210e2b830defdf88277b6eba1c93913f6acef5f1975e941d31e7816f65a6e03b649731a57bbc75d2e95bd5c20fa4c7d7a9b1db8db8f597d0203d06dee673d1
7
+ data.tar.gz: 210ab64a5de126b081f0533594226c282a7015b30799bd90cc9f7caff615c40446245b5bc2f9ecf032800f2f03dbe060abb98d0293214239dcbfb8701775acb0
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes log for the Ruby OpenMPT library (ffi-openmpt)
2
2
 
3
+ ## Version 0.4.1
4
+
5
+ * Use an explicit begin block in Module#get_names.
6
+
3
7
  ## Version 0.4.0
4
8
 
5
9
  * Update the minimum ruby version to 2.3.
@@ -257,10 +257,12 @@ module FFI
257
257
 
258
258
  def get_names(num, get)
259
259
  (0...num).reduce([]) do |acc, i|
260
- ptr = send(get, @mod, i)
261
- acc << ptr.read_string
262
- ensure
263
- openmpt_free_string(ptr)
260
+ begin
261
+ ptr = send(get, @mod, i)
262
+ acc << ptr.read_string
263
+ ensure
264
+ openmpt_free_string(ptr)
265
+ end
264
266
  end
265
267
  end
266
268
  end
@@ -6,6 +6,6 @@
6
6
 
7
7
  module FFI
8
8
  module OpenMPT
9
- VERSION = '0.4.0'
9
+ VERSION = '0.4.1'
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-openmpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Haines