rmagick 4.2.3 → 4.2.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rmagick might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +8 -8
- data/CHANGELOG.md +15 -0
- data/ext/RMagick/extconf.rb +1 -3
- data/ext/RMagick/rmimage.c +6 -6
- data/lib/rmagick/version.rb +1 -1
- data/lib/rmagick_internal.rb +5 -8
- 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: 49c8cb7d9f379a29133d870ab4542f9e30c9f1828343c8dacc466b4795b86bb4
|
4
|
+
data.tar.gz: b3c32bda2622044535255bd080cb16e0fe2d7101f74be85db077cf4057ca8c21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7510f2cbddbccf9c2002b81e42409cf2b59eecf8768bae710ea81bfe5d773e948b841c995d9eca261d249808087ecc72ff4a93f183e5dd77eccef8fb4414224b
|
7
|
+
data.tar.gz: 6570f951140ad45e61d09a8d9183a65f8e5c08d731ccce314c0e79e037c763d86d8bd7cb1f7dd88365e23da55a9b001e547d8004c4df74d0a4c3ff5d5c358d59
|
data/.github/workflows/ci.yml
CHANGED
@@ -10,7 +10,7 @@ on:
|
|
10
10
|
jobs:
|
11
11
|
lint:
|
12
12
|
runs-on: ubuntu-latest
|
13
|
-
timeout-minutes:
|
13
|
+
timeout-minutes: 20
|
14
14
|
steps:
|
15
15
|
- uses: actions/checkout@v2
|
16
16
|
- name: Set up Ruby 2.3
|
@@ -24,15 +24,15 @@ jobs:
|
|
24
24
|
|
25
25
|
test-linux:
|
26
26
|
runs-on: ubuntu-latest
|
27
|
-
timeout-minutes:
|
27
|
+
timeout-minutes: 20
|
28
28
|
strategy:
|
29
29
|
matrix:
|
30
|
-
ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
|
30
|
+
ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1']
|
31
31
|
imagemagick-version:
|
32
32
|
- { full: 6.7.7-10, major-minor: '6.7' }
|
33
33
|
- { full: 6.8.9-10, major-minor: '6.8' }
|
34
|
-
- { full: 6.9.12-
|
35
|
-
- { full: 7.1.0-
|
34
|
+
- { full: 6.9.12-29, major-minor: '6.9' }
|
35
|
+
- { full: 7.1.0-14, major-minor: '7.0' }
|
36
36
|
|
37
37
|
name: Linux, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
|
38
38
|
steps:
|
@@ -55,10 +55,10 @@ jobs:
|
|
55
55
|
timeout-minutes: 20
|
56
56
|
strategy:
|
57
57
|
matrix:
|
58
|
-
ruby-version: ['2.6', '2.7', '3.0']
|
58
|
+
ruby-version: ['2.6', '2.7', '3.0', '3.1']
|
59
59
|
imagemagick-version:
|
60
|
-
- { full: 6.9.12-
|
61
|
-
- { full: 7.1.0-
|
60
|
+
- { full: 6.9.12-29, major-minor: '6.9' }
|
61
|
+
- { full: 7.1.0-14, major-minor: '7.0' }
|
62
62
|
|
63
63
|
name: macOS, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
|
64
64
|
steps:
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,21 @@
|
|
3
3
|
All notable changes to this project are documented in this file.
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
+
## RMagick 4.2.4
|
7
|
+
|
8
|
+
Improvements
|
9
|
+
|
10
|
+
- spec_helper: drop require_relative to lib directory (#1306)
|
11
|
+
- Fix build error with Ruby 3.1 on macOS (#1313)
|
12
|
+
|
13
|
+
Bug Fixes
|
14
|
+
|
15
|
+
- remove Mutex in trace_proc= (#1303)
|
16
|
+
- channel_mean_spec: fix floating point comparison (#1307)
|
17
|
+
- changed_predicate_spec: ensure target directory exists (#1305)
|
18
|
+
- Doc: Fix documentation of Magick::Image#crop (#1311)
|
19
|
+
- Magick::UndefinedKernel should also not be used when creating a new KernelInfo. (#1312)
|
20
|
+
|
6
21
|
## RMagick 4.2.3
|
7
22
|
|
8
23
|
Bug Fixes
|
data/ext/RMagick/extconf.rb
CHANGED
@@ -41,7 +41,6 @@ module RMagick
|
|
41
41
|
{
|
42
42
|
magick_version: $magick_version,
|
43
43
|
local_libs: $LOCAL_LIBS,
|
44
|
-
cflags: $CFLAGS,
|
45
44
|
cppflags: $CPPFLAGS,
|
46
45
|
ldflags: $LDFLAGS,
|
47
46
|
defs: $defs,
|
@@ -69,7 +68,6 @@ module RMagick
|
|
69
68
|
check_partial_imagemagick_versions
|
70
69
|
|
71
70
|
# Save flags
|
72
|
-
$CFLAGS = "#{ENV['CFLAGS']} " + `pkg-config --cflags #{$magick_package}`.chomp
|
73
71
|
$CPPFLAGS = "#{ENV['CPPFLAGS']} " + `pkg-config --cflags #{$magick_package}`.chomp
|
74
72
|
$LDFLAGS = "#{ENV['LDFLAGS']} " + `pkg-config --libs #{$magick_package}`.chomp
|
75
73
|
$LOCAL_LIBS = "#{ENV['LIBS']} " + `pkg-config --libs #{$magick_package}`.chomp
|
@@ -96,7 +94,7 @@ module RMagick
|
|
96
94
|
|
97
95
|
end
|
98
96
|
|
99
|
-
$
|
97
|
+
$CPPFLAGS << (have_macro('__GNUC__') ? ' -std=gnu99' : ' -std=c99')
|
100
98
|
end
|
101
99
|
|
102
100
|
def exit_failure(msg)
|
data/ext/RMagick/rmimage.c
CHANGED
@@ -4681,26 +4681,26 @@ Image_init_copy(VALUE copy, VALUE orig)
|
|
4681
4681
|
/**
|
4682
4682
|
* Extract a region of the image defined by width, height, x, y.
|
4683
4683
|
*
|
4684
|
-
* @overload crop(
|
4685
|
-
* @param reset [Boolean] true if reset the cropped image page canvas and position
|
4684
|
+
* @overload crop(x, y, width, height, reset = false)
|
4686
4685
|
* @param x [Numeric] x position of start of region
|
4687
4686
|
* @param y [Numeric] y position of start of region
|
4688
4687
|
* @param width [Numeric] width of region
|
4689
4688
|
* @param height [Numeric] height of region
|
4690
|
-
*
|
4691
|
-
* @overload crop(reset = false, gravity, width, height)
|
4692
4689
|
* @param reset [Boolean] true if reset the cropped image page canvas and position
|
4690
|
+
*
|
4691
|
+
* @overload crop(gravity, width, height, reset = false)
|
4693
4692
|
* @param gravity [Magick::GravityType] the gravity type
|
4694
4693
|
* @param width [Numeric] width of region
|
4695
4694
|
* @param height [Numeric] height of region
|
4696
|
-
|
4697
|
-
* @overload crop(reset = false, gravity, x, y, width, height)
|
4698
4695
|
* @param reset [Boolean] true if reset the cropped image page canvas and position
|
4696
|
+
|
4697
|
+
* @overload crop(gravity, x, y, width, height, reset = false)
|
4699
4698
|
* @param gravity [Magick::GravityType] the gravity type
|
4700
4699
|
* @param x [Numeric] x position of start of region
|
4701
4700
|
* @param y [Numeric] y position of start of region
|
4702
4701
|
* @param width [Numeric] width of region
|
4703
4702
|
* @param height [Numeric] height of region
|
4703
|
+
* @param reset [Boolean] true if reset the cropped image page canvas and position
|
4704
4704
|
*
|
4705
4705
|
* @return [Magick::Image] a new image
|
4706
4706
|
* @see Image#crop!
|
data/lib/rmagick/version.rb
CHANGED
data/lib/rmagick_internal.rb
CHANGED
@@ -84,15 +84,12 @@ module Magick
|
|
84
84
|
# ...
|
85
85
|
# end
|
86
86
|
def trace_proc=(p)
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
at_exit { @trace_proc = nil }
|
91
|
-
@exit_block_set_up = true
|
92
|
-
end
|
93
|
-
|
94
|
-
@trace_proc = p
|
87
|
+
if @trace_proc.nil? && !p.nil? && !@exit_block_set_up
|
88
|
+
at_exit { @trace_proc = nil }
|
89
|
+
@exit_block_set_up = true
|
95
90
|
end
|
91
|
+
|
92
|
+
@trace_proc = p
|
96
93
|
end
|
97
94
|
end
|
98
95
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rmagick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Hunter
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2021-
|
14
|
+
date: 2021-12-26 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: pry
|
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
220
|
version: '0'
|
221
221
|
requirements:
|
222
222
|
- ImageMagick 6.7.7 or later
|
223
|
-
rubygems_version: 3.2.
|
223
|
+
rubygems_version: 3.2.32
|
224
224
|
signing_key:
|
225
225
|
specification_version: 4
|
226
226
|
summary: Ruby binding to ImageMagick
|