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 +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +1 -1
- data/ext/magro/imgrw.c +6 -0
- data/lib/magro/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1017c6415c59c2229b1acc8578eb7ce8bb3eb6e114f8b97089beac2c8d9805ab
|
4
|
+
data.tar.gz: 55ce42e8bb8fa6c98f586d3d54315e76a3d7a95ffc232c08b6bc7717ff4131a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a59aeddd2b9f6f8a469fbae9c89313a163370b04c83dfd82a31d6cc770b4b313e7c9dfa88bcc620972dec7f8e899907c874623dc5dcaf6b31d9cd3573f89503
|
7
|
+
data.tar.gz: 05c4091e37f4cba235f4f05e069ea886be7f9e687a2609cfe6ebbbd60d2ab1d4533eaee3461611aaf9113b6baa7884924be5de9e37868490c38591c9b9c9de6b
|
data/CHANGELOG.md
CHANGED
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=
|
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/)
|
data/ext/magro/imgrw.c
CHANGED
@@ -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
|
}
|
data/lib/magro/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|