magro 0.4.1 → 0.4.2

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: c0f74c38e2926ef457007ee28be4eb37fa563aa22cde82ad44a800b89c4548d7
4
- data.tar.gz: 6e5d4404ffaea48bdae59dbdeb7d11bf3b8a7ba7883d3e36d9b2106931e80cad
3
+ metadata.gz: 1017c6415c59c2229b1acc8578eb7ce8bb3eb6e114f8b97089beac2c8d9805ab
4
+ data.tar.gz: 55ce42e8bb8fa6c98f586d3d54315e76a3d7a95ffc232c08b6bc7717ff4131a9
5
5
  SHA512:
6
- metadata.gz: f2ad54fd188784f89e593d542fc11faeebed3db60498ff74d36fc3a174ea36957aee7e3b9fe1097578ddf7c4e684f0b12c9fa0f9128acfe3e55dff2803b10ddb
7
- data.tar.gz: ede89931ba5d684ab0961caa7234b30f579830769704a0fe9c0ab4c49e070cc977efca59dab71400a94518e494634e723ae186bcb623aa8c250a2ab32b44dd72
6
+ metadata.gz: 6a59aeddd2b9f6f8a469fbae9c89313a163370b04c83dfd82a31d6cc770b4b313e7c9dfa88bcc620972dec7f8e899907c874623dc5dcaf6b31d9cd3573f89503
7
+ data.tar.gz: 05c4091e37f4cba235f4f05e069ea886be7f9e687a2609cfe6ebbbd60d2ab1d4533eaee3461611aaf9113b6baa7884924be5de9e37868490c38591c9b9c9de6b
@@ -1,3 +1,6 @@
1
+ # 0.4.2
2
+ - Add GC guard to reading and writing image methods.
3
+
1
4
  # 0.4.1
2
5
  - Add GC guard to narray given to native extension method.
3
6
  - Fix some configulation files.
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Magro
2
2
 
3
3
  [![Build Status](https://github.com/yoshoku/magro/workflows/build/badge.svg)](https://github.com/yoshoku/magro/actions?query=workflow%3Abuild)
4
- [![Coverage Status](https://coveralls.io/repos/github/yoshoku/magro/badge.svg?branch=master)](https://coveralls.io/github/yoshoku/magro?branch=master)
4
+ [![Coverage Status](https://coveralls.io/repos/github/yoshoku/magro/badge.svg?branch=main)](https://coveralls.io/github/yoshoku/magro?branch=main)
5
5
  [![Gem Version](https://badge.fury.io/rb/magro.svg)](https://badge.fury.io/rb/magro)
6
6
  [![BSD 3-Clause License](https://img.shields.io/badge/License-BSD%203--Clause-orange.svg)](https://github.com/yoshoku/numo-liblinear/blob/main/LICENSE.txt)
7
7
  [![Documentation](http://img.shields.io/badge/api-reference-blue.svg)](https://yoshoku.github.io/magro/doc/)
@@ -126,6 +126,8 @@ VALUE magro_io_read_png(VALUE self, VALUE filename_)
126
126
  fclose(file_ptr);
127
127
  png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
128
128
 
129
+ RB_GC_GUARD(filename_);
130
+
129
131
  return nary;
130
132
  }
131
133
 
@@ -227,6 +229,7 @@ VALUE magro_io_save_png(VALUE self, VALUE filename_, VALUE image)
227
229
  png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
228
230
 
229
231
  RB_GC_GUARD(image);
232
+ RB_GC_GUARD(filename_);
230
233
 
231
234
  return Qtrue;
232
235
  }
@@ -300,6 +303,8 @@ VALUE magro_io_read_jpg(VALUE self, VALUE filename_)
300
303
  jpeg_finish_decompress(&jpeg);
301
304
  jpeg_destroy_decompress(&jpeg);
302
305
 
306
+ RB_GC_GUARD(filename_);
307
+
303
308
  return nary;
304
309
  }
305
310
 
@@ -401,6 +406,7 @@ VALUE magro_io_save_jpg(int argc, VALUE* argv, VALUE self)
401
406
  fclose(file_ptr);
402
407
 
403
408
  RB_GC_GUARD(image);
409
+ RB_GC_GUARD(filename_);
404
410
 
405
411
  return Qtrue;
406
412
  }
@@ -3,5 +3,5 @@
3
3
  # Magro is an image processing library in Ruby.
4
4
  module Magro
5
5
  # The version of Magro you are using.
6
- VERSION = '0.4.1'
6
+ VERSION = '0.4.2'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-16 00:00:00.000000000 Z
11
+ date: 2021-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: numo-narray
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubygems_version: 3.1.4
86
+ rubygems_version: 3.2.3
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: Magro is a minimal image processing library for Ruby.