rmagick 4.1.2 → 4.2.5
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 +12 -77
- data/.rubocop_todo.yml +114 -70
- data/CHANGELOG.md +73 -0
- data/CODE_OF_CONDUCT.md +122 -7
- data/README.md +16 -8
- data/before_install_linux.sh +1 -1
- data/before_install_osx.sh +2 -2
- data/ext/RMagick/extconf.rb +15 -6
- data/ext/RMagick/rmagick.h +8 -2
- data/ext/RMagick/rmdraw.c +31 -5
- data/ext/RMagick/rmfill.c +4 -1
- data/ext/RMagick/rmilist.c +12 -4
- data/ext/RMagick/rmimage.c +57 -37
- data/ext/RMagick/rminfo.c +11 -3
- data/ext/RMagick/rmmain.c +14 -1
- data/ext/RMagick/rmmontage.c +4 -4
- data/ext/RMagick/rmpixel.c +2 -2
- data/ext/RMagick/rmstruct.c +6 -6
- data/ext/RMagick/rmutil.c +58 -8
- data/lib/rmagick/version.rb +1 -1
- data/lib/rmagick_internal.rb +5 -8
- data/lib/rvg/rvg.rb +2 -2
- data/rmagick.gemspec +4 -3
- metadata +26 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19f12f1fe15653484cfee177ac21d5174d912918ef9bdf874b74b940a91cf5ba
|
4
|
+
data.tar.gz: 9a187a8e989d9b0f984716a1bb5e8239e4e0d428de76f52cbbf56cbfb7c7e55a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d04c9a98d1004623c27fedda53f7f3d5de1ae7a9f938da386a803e6191d224e92bf71831bfc57ac946d45f4f2a820d1441fd3d19a8d78442d0046d7927819a13
|
7
|
+
data.tar.gz: b05b1c15617eb186b65edc55b97c6c8b4f58f25249f1295378efaf1e40f7242f82c46e20389eecd914e62d3e5c7233e3dc0b0308897a3f5825dda0c1cbaec796
|
data/.github/workflows/ci.yml
CHANGED
@@ -3,28 +3,20 @@ name: CI
|
|
3
3
|
on:
|
4
4
|
push:
|
5
5
|
branches:
|
6
|
-
-
|
6
|
+
- main
|
7
7
|
pull_request:
|
8
|
-
|
9
|
-
- master
|
8
|
+
workflow_dispatch:
|
10
9
|
|
11
10
|
jobs:
|
12
11
|
lint:
|
13
12
|
runs-on: ubuntu-latest
|
14
|
-
timeout-minutes:
|
13
|
+
timeout-minutes: 20
|
15
14
|
steps:
|
16
15
|
- uses: actions/checkout@v2
|
17
16
|
- name: Set up Ruby 2.3
|
18
17
|
uses: ruby/setup-ruby@master
|
19
18
|
with:
|
20
|
-
ruby-version: 2.3
|
21
|
-
- name: Cache Ruby dependencies
|
22
|
-
uses: actions/cache@v1
|
23
|
-
with:
|
24
|
-
path: ./vendor/bundle
|
25
|
-
key: v1-linux-2.3-${{ hashFiles('rmagick.gemspec') }}
|
26
|
-
restore-keys: |
|
27
|
-
v1-linux-2.3-${{ hashFiles('rmagick.gemspec') }}
|
19
|
+
ruby-version: '2.3'
|
28
20
|
- name: Build and test with Rake
|
29
21
|
run: |
|
30
22
|
bundle install --path=vendor/bundle --jobs 4 --retry 3
|
@@ -32,26 +24,19 @@ jobs:
|
|
32
24
|
|
33
25
|
test-linux:
|
34
26
|
runs-on: ubuntu-latest
|
35
|
-
timeout-minutes:
|
27
|
+
timeout-minutes: 20
|
36
28
|
strategy:
|
37
29
|
matrix:
|
38
|
-
ruby-version: [2.3, 2.4, 2.5, 2.6, 2.7]
|
30
|
+
ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1']
|
39
31
|
imagemagick-version:
|
40
32
|
- { full: 6.7.7-10, major-minor: '6.7' }
|
41
33
|
- { full: 6.8.9-10, major-minor: '6.8' }
|
42
|
-
- { full: 6.9.
|
43
|
-
- { full: 7.0
|
34
|
+
- { full: 6.9.12-37, major-minor: '6.9' }
|
35
|
+
- { full: 7.1.0-22, major-minor: '7.0' }
|
44
36
|
|
45
37
|
name: Linux, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
|
46
38
|
steps:
|
47
39
|
- uses: actions/checkout@v2
|
48
|
-
- name: Cache ImageMagick
|
49
|
-
uses: actions/cache@v1
|
50
|
-
with:
|
51
|
-
path: ./build-ImageMagick
|
52
|
-
key: v1-linux-imagemagick-${{ matrix.imagemagick-version.full }}
|
53
|
-
restore-keys: |
|
54
|
-
v1-linux-imagemagick-${{ matrix.imagemagick-version.full }}
|
55
40
|
- name: Set up Ruby ${{ matrix.ruby-version }}
|
56
41
|
uses: ruby/setup-ruby@master
|
57
42
|
with:
|
@@ -60,13 +45,6 @@ jobs:
|
|
60
45
|
run: |
|
61
46
|
export IMAGEMAGICK_VERSION=${{ matrix.imagemagick-version.full }}
|
62
47
|
./before_install_linux.sh
|
63
|
-
- name: Cache Ruby dependencies
|
64
|
-
uses: actions/cache@v1
|
65
|
-
with:
|
66
|
-
path: ./vendor/bundle
|
67
|
-
key: v1-linux-${{ matrix.ruby-version }}-${{ hashFiles('rmagick.gemspec') }}
|
68
|
-
restore-keys: |
|
69
|
-
v1-linux-${{ matrix.ruby-version }}-${{ hashFiles('rmagick.gemspec') }}
|
70
48
|
- name: Build and test with Rake
|
71
49
|
run: |
|
72
50
|
bundle install --path=vendor/bundle --jobs 4 --retry 3
|
@@ -74,23 +52,17 @@ jobs:
|
|
74
52
|
|
75
53
|
test-macos:
|
76
54
|
runs-on: macos-latest
|
55
|
+
timeout-minutes: 20
|
77
56
|
strategy:
|
78
57
|
matrix:
|
79
|
-
ruby-version: [2.6, 2.7]
|
58
|
+
ruby-version: ['2.6', '2.7', '3.0', '3.1']
|
80
59
|
imagemagick-version:
|
81
|
-
- { full: 6.9.
|
82
|
-
- { full: 7.0
|
60
|
+
- { full: 6.9.12-37, major-minor: '6.9' }
|
61
|
+
- { full: 7.1.0-22, major-minor: '7.0' }
|
83
62
|
|
84
63
|
name: macOS, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
|
85
64
|
steps:
|
86
65
|
- uses: actions/checkout@v2
|
87
|
-
- name: Cache ImageMagick
|
88
|
-
uses: actions/cache@v1
|
89
|
-
with:
|
90
|
-
path: ./build-ImageMagick
|
91
|
-
key: v1-macos-imagemagick-${{ matrix.imagemagick-version.full }}
|
92
|
-
restore-keys: |
|
93
|
-
v1-macos-imagemagick-${{ matrix.imagemagick-version.full }}
|
94
66
|
- name: Set up Ruby ${{ matrix.ruby-version }}
|
95
67
|
uses: ruby/setup-ruby@master
|
96
68
|
with:
|
@@ -98,44 +70,7 @@ jobs:
|
|
98
70
|
- name: Update/Install packages
|
99
71
|
run: |
|
100
72
|
IMAGEMAGICK_VERSION=${{ matrix.imagemagick-version.full }} ./before_install_osx.sh
|
101
|
-
- name: Cache Ruby dependencies
|
102
|
-
uses: actions/cache@v1
|
103
|
-
with:
|
104
|
-
path: ./vendor/bundle
|
105
|
-
key: v1-macos-${{ matrix.ruby-version }}-${{ hashFiles('rmagick.gemspec') }}
|
106
|
-
restore-keys: |
|
107
|
-
v1-macos-${{ matrix.ruby-version }}-${{ hashFiles('rmagick.gemspec') }}
|
108
73
|
- name: Build and test with Rake
|
109
74
|
run: |
|
110
75
|
bundle install --path=vendor/bundle --jobs 4 --retry 3
|
111
76
|
bundle exec rake
|
112
|
-
|
113
|
-
test-windows:
|
114
|
-
runs-on: windows-latest
|
115
|
-
timeout-minutes: 10
|
116
|
-
strategy:
|
117
|
-
matrix:
|
118
|
-
ruby-version: [2.3, 2.4, 2.5, 2.6, 2.7]
|
119
|
-
imagemagick-version:
|
120
|
-
- { full: 6.8.9-10, major-minor: '6.8' }
|
121
|
-
- { full: 6.9.11-6, major-minor: '6.9' }
|
122
|
-
- { full: 7.0.10-6, major-minor: '7.0' }
|
123
|
-
name: MSWin, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
|
124
|
-
steps:
|
125
|
-
- uses: actions/checkout@v2
|
126
|
-
- name: Set up Ruby ${{ matrix.ruby-version }}
|
127
|
-
uses: ruby/setup-ruby@master
|
128
|
-
with:
|
129
|
-
ruby-version: ${{ matrix.ruby-version }}
|
130
|
-
- name: Install ImageMagick
|
131
|
-
run: |
|
132
|
-
$imagemagick_version = "${{ matrix.imagemagick-version.full }}"
|
133
|
-
$imagemagick_version_without_patch = $imagemagick_version.split("-")[0]
|
134
|
-
$installer_name = "ImageMagick-$($imagemagick_version)-Q16-x64-dll.exe"
|
135
|
-
$url = "https://ftp.icm.edu.pl/pub/graphics/ImageMagick/binaries/$($installer_name)"
|
136
|
-
choco install wget ghostscript
|
137
|
-
wget $url --progress=dot
|
138
|
-
cmd.exe /D /S /C "$($installer_name) /DIR=D:\ImageMagick /VERYSILENT /TASKS=install_Devel"
|
139
|
-
- name: Build and test with Rake
|
140
|
-
run: |
|
141
|
-
cmd.exe /D /S /C "SET MAKE=make & SET PATH=D:\ImageMagick;%PATH% & bundle install --path=vendor/bundle --retry 3 & bundle exec rake"
|
data/.rubocop_todo.yml
CHANGED
@@ -1,11 +1,19 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2020-
|
3
|
+
# on 2020-10-10 21:34:21 +0900 using RuboCop version 0.81.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
+
# Offense count: 1
|
10
|
+
# Cop supports --auto-correct.
|
11
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, Include.
|
12
|
+
# Include: **/*.gemspec
|
13
|
+
Gemspec/OrderedDependencies:
|
14
|
+
Exclude:
|
15
|
+
- 'rmagick.gemspec'
|
16
|
+
|
9
17
|
# Offense count: 12
|
10
18
|
# Cop supports --auto-correct.
|
11
19
|
# Configuration parameters: Categories, ExpectedOrder.
|
@@ -49,16 +57,20 @@ Layout/MultilineMethodArgumentLineBreaks:
|
|
49
57
|
- 'lib/rmagick_internal.rb'
|
50
58
|
|
51
59
|
# Offense count: 1
|
52
|
-
|
60
|
+
# Cop supports --auto-correct.
|
61
|
+
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
62
|
+
# SupportedStylesForExponentOperator: space, no_space
|
63
|
+
Layout/SpaceAroundOperators:
|
53
64
|
Exclude:
|
54
|
-
- '
|
65
|
+
- 'rmagick.gemspec'
|
55
66
|
|
56
|
-
# Offense count:
|
57
|
-
Lint/
|
67
|
+
# Offense count: 1
|
68
|
+
Lint/EmptyWhen:
|
58
69
|
Exclude:
|
59
|
-
- 'lib/
|
70
|
+
- 'lib/rvg/misc.rb'
|
60
71
|
|
61
72
|
# Offense count: 94
|
73
|
+
# Cop supports --auto-correct.
|
62
74
|
Lint/NumberConversion:
|
63
75
|
Exclude:
|
64
76
|
- 'doc/ex/get_pixels.rb'
|
@@ -74,21 +86,34 @@ Lint/NumberConversion:
|
|
74
86
|
- 'spec/rmagick/enum/to_i_spec.rb'
|
75
87
|
- 'spec/rmagick/image/export_pixels_spec.rb'
|
76
88
|
|
89
|
+
# Offense count: 2
|
90
|
+
# Cop supports --auto-correct.
|
91
|
+
Lint/RedundantStringCoercion:
|
92
|
+
Exclude:
|
93
|
+
- 'spec/rmagick/font/initialize_spec.rb'
|
94
|
+
|
77
95
|
# Offense count: 1
|
78
96
|
Lint/RescueException:
|
79
97
|
Exclude:
|
80
98
|
- 'lib/rmagick_internal.rb'
|
81
99
|
|
100
|
+
# Offense count: 1
|
101
|
+
# Configuration parameters: AllowComments.
|
102
|
+
Lint/SuppressedException:
|
103
|
+
Exclude:
|
104
|
+
- 'lib/rmagick_internal.rb'
|
105
|
+
|
82
106
|
# Offense count: 1
|
83
107
|
Lint/UselessComparison:
|
84
108
|
Exclude:
|
85
109
|
- 'spec/rmagick/enum/case_equality_spec.rb'
|
86
110
|
|
87
|
-
# Offense count:
|
111
|
+
# Offense count: 45
|
112
|
+
# Configuration parameters: IgnoredMethods.
|
88
113
|
Metrics/AbcSize:
|
89
114
|
Max: 537
|
90
115
|
|
91
|
-
# Offense count:
|
116
|
+
# Offense count: 77
|
92
117
|
# Configuration parameters: CountComments, ExcludedMethods.
|
93
118
|
# ExcludedMethods: refine
|
94
119
|
Metrics/BlockLength:
|
@@ -102,13 +127,14 @@ Metrics/BlockNesting:
|
|
102
127
|
# Offense count: 9
|
103
128
|
# Configuration parameters: CountComments.
|
104
129
|
Metrics/ClassLength:
|
105
|
-
Max:
|
130
|
+
Max: 460
|
106
131
|
|
107
132
|
# Offense count: 21
|
133
|
+
# Configuration parameters: IgnoredMethods.
|
108
134
|
Metrics/CyclomaticComplexity:
|
109
135
|
Max: 42
|
110
136
|
|
111
|
-
# Offense count:
|
137
|
+
# Offense count: 55
|
112
138
|
# Configuration parameters: CountComments, ExcludedMethods.
|
113
139
|
Metrics/MethodLength:
|
114
140
|
Max: 146
|
@@ -119,6 +145,7 @@ Metrics/ParameterLists:
|
|
119
145
|
Max: 8
|
120
146
|
|
121
147
|
# Offense count: 15
|
148
|
+
# Configuration parameters: IgnoredMethods.
|
122
149
|
Metrics/PerceivedComplexity:
|
123
150
|
Max: 40
|
124
151
|
|
@@ -169,62 +196,29 @@ Naming/FileName:
|
|
169
196
|
- 'doc/ex/quantize-m.rb'
|
170
197
|
|
171
198
|
# Offense count: 4
|
172
|
-
# Configuration parameters: EnforcedStyle.
|
199
|
+
# Configuration parameters: EnforcedStyle, IgnoredPatterns.
|
173
200
|
# SupportedStyles: snake_case, camelCase
|
174
201
|
Naming/MethodName:
|
175
202
|
Exclude:
|
176
203
|
- 'lib/rvg/misc.rb'
|
177
204
|
- 'lib/rvg/transformable.rb'
|
178
205
|
|
179
|
-
# Offense count:
|
206
|
+
# Offense count: 222
|
180
207
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
181
|
-
# AllowedNames: io, id, to, by, on, in, at, ip, db
|
182
|
-
Naming/
|
208
|
+
# AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
|
209
|
+
Naming/MethodParameterName:
|
183
210
|
Enabled: false
|
184
211
|
|
185
|
-
# Offense count:
|
212
|
+
# Offense count: 421
|
186
213
|
# Configuration parameters: Max.
|
187
214
|
RSpec/ExampleLength:
|
188
215
|
Enabled: false
|
189
216
|
|
190
|
-
# Offense count:
|
217
|
+
# Offense count: 539
|
191
218
|
# Configuration parameters: AggregateFailuresByDefault.
|
192
219
|
RSpec/MultipleExpectations:
|
193
220
|
Max: 72
|
194
221
|
|
195
|
-
# Offense count: 5
|
196
|
-
RSpec/Pending:
|
197
|
-
Exclude:
|
198
|
-
- 'spec/rmagick/draw/marshal_dump_spec.rb'
|
199
|
-
- 'spec/rmagick/image/changed_predicate_spec.rb'
|
200
|
-
- 'spec/rmagick/image/liquid_rescale_spec.rb'
|
201
|
-
- 'spec/rmagick/image/read_spec.rb'
|
202
|
-
|
203
|
-
# Offense count: 2
|
204
|
-
# Configuration parameters: EnforcedStyle.
|
205
|
-
# SupportedStyles: strict, flexible
|
206
|
-
Rails/Date:
|
207
|
-
Exclude:
|
208
|
-
- 'doc/ex/polaroid.rb'
|
209
|
-
- 'rmagick.gemspec'
|
210
|
-
|
211
|
-
# Offense count: 7
|
212
|
-
# Configuration parameters: Include.
|
213
|
-
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
|
214
|
-
Rails/Output:
|
215
|
-
Exclude:
|
216
|
-
- 'lib/rvg/deep_equal.rb'
|
217
|
-
- 'lib/rvg/rvg.rb'
|
218
|
-
|
219
|
-
# Offense count: 3
|
220
|
-
# Cop supports --auto-correct.
|
221
|
-
# Configuration parameters: EnforcedStyle.
|
222
|
-
# SupportedStyles: strict, flexible
|
223
|
-
Rails/TimeZone:
|
224
|
-
Exclude:
|
225
|
-
- 'Rakefile'
|
226
|
-
- 'ext/RMagick/extconf.rb'
|
227
|
-
|
228
222
|
# Offense count: 4
|
229
223
|
Security/MarshalLoad:
|
230
224
|
Exclude:
|
@@ -249,62 +243,105 @@ Style/CaseEquality:
|
|
249
243
|
Style/CommentedKeyword:
|
250
244
|
Enabled: false
|
251
245
|
|
252
|
-
# Offense count:
|
246
|
+
# Offense count: 126
|
253
247
|
Style/ConstantVisibility:
|
254
248
|
Exclude:
|
249
|
+
- 'examples/histogram.rb'
|
250
|
+
- 'ext/RMagick/extconf.rb'
|
251
|
+
- 'lib/rmagick/version.rb'
|
255
252
|
- 'lib/rmagick_internal.rb'
|
253
|
+
- 'lib/rvg/misc.rb'
|
254
|
+
- 'lib/rvg/rvg.rb'
|
255
|
+
- 'lib/rvg/stylable.rb'
|
256
|
+
- 'spec/support/helpers.rb'
|
256
257
|
|
257
|
-
# Offense count:
|
258
|
+
# Offense count: 809
|
258
259
|
# Cop supports --auto-correct.
|
259
260
|
# Configuration parameters: Notice, AutocorrectNotice.
|
260
261
|
Style/Copyright:
|
261
262
|
Enabled: false
|
262
263
|
|
263
|
-
# Offense count:
|
264
|
+
# Offense count: 37
|
264
265
|
Style/Documentation:
|
265
266
|
Enabled: false
|
266
267
|
|
267
|
-
# Offense count:
|
268
|
+
# Offense count: 72
|
268
269
|
# Configuration parameters: RequireForNonPublicMethods.
|
269
270
|
Style/DocumentationMethod:
|
270
|
-
|
271
|
+
Exclude:
|
272
|
+
- 'spec/**/*'
|
273
|
+
- 'test/**/*'
|
274
|
+
- 'Rakefile'
|
275
|
+
- 'doc/ex/ViewBox.rb'
|
276
|
+
- 'doc/ex/sparse_color.rb'
|
277
|
+
- 'examples/histogram.rb'
|
278
|
+
- 'examples/pattern_fill.rb'
|
279
|
+
- 'ext/RMagick/extconf.rb'
|
280
|
+
- 'lib/rmagick_internal.rb'
|
281
|
+
- 'lib/rvg/container.rb'
|
282
|
+
- 'lib/rvg/deep_equal.rb'
|
283
|
+
- 'lib/rvg/embellishable.rb'
|
284
|
+
- 'lib/rvg/misc.rb'
|
285
|
+
- 'lib/rvg/stylable.rb'
|
286
|
+
- 'lib/rvg/transformable.rb'
|
287
|
+
- 'lib/rvg/units.rb'
|
271
288
|
|
272
|
-
# Offense count:
|
289
|
+
# Offense count: 208
|
273
290
|
# Configuration parameters: EnforcedStyle.
|
274
291
|
# SupportedStyles: annotated, template, unannotated
|
275
292
|
Style/FormatStringToken:
|
276
293
|
Exclude:
|
294
|
+
- 'doc/ex/colors.rb'
|
295
|
+
- 'doc/ex/fonts.rb'
|
296
|
+
- 'doc/ex/implode.rb'
|
297
|
+
- 'doc/ex/stegano.rb'
|
277
298
|
- 'examples/identify.rb'
|
278
|
-
- 'ext/RMagick/extconf.rb'
|
279
299
|
- 'lib/rmagick_internal.rb'
|
280
300
|
- 'lib/rvg/pathdata.rb'
|
281
301
|
|
282
|
-
# Offense count:
|
302
|
+
# Offense count: 808
|
283
303
|
# Cop supports --auto-correct.
|
284
304
|
# Configuration parameters: EnforcedStyle.
|
285
|
-
# SupportedStyles:
|
305
|
+
# SupportedStyles: always, always_true, never
|
286
306
|
Style/FrozenStringLiteralComment:
|
287
307
|
Enabled: false
|
288
308
|
|
289
|
-
# Offense count:
|
309
|
+
# Offense count: 42
|
290
310
|
# Configuration parameters: AllowedVariables.
|
291
311
|
Style/GlobalVars:
|
292
312
|
Exclude:
|
293
313
|
- 'ext/RMagick/extconf.rb'
|
294
314
|
|
295
|
-
# Offense count:
|
315
|
+
# Offense count: 12
|
316
|
+
# Cop supports --auto-correct.
|
317
|
+
Style/HashEachMethods:
|
318
|
+
Exclude:
|
319
|
+
- 'doc/ex/preview.rb'
|
320
|
+
- 'spec/rmagick/image/auto_orient_spec.rb'
|
321
|
+
- 'spec/rmagick/image/channel_spec.rb'
|
322
|
+
- 'spec/rmagick/image/colorspace_spec.rb'
|
323
|
+
- 'spec/rmagick/image/info/colorspace_spec.rb'
|
324
|
+
- 'spec/rmagick/image/info/compression_spec.rb'
|
325
|
+
- 'spec/rmagick/image/info/dispose_spec.rb'
|
326
|
+
- 'spec/rmagick/image/info/gravity_spec.rb'
|
327
|
+
- 'spec/rmagick/image/info/image_type_spec.rb'
|
328
|
+
- 'spec/rmagick/image/info/interlace_spec.rb'
|
329
|
+
- 'spec/rmagick/image/info/orientation_spec.rb'
|
330
|
+
- 'spec/rmagick/image/info/units_spec.rb'
|
331
|
+
|
332
|
+
# Offense count: 6
|
296
333
|
# Cop supports --auto-correct.
|
297
334
|
Style/IfUnlessModifier:
|
298
335
|
Exclude:
|
299
336
|
- 'ext/RMagick/extconf.rb'
|
300
337
|
|
301
|
-
# Offense count:
|
338
|
+
# Offense count: 148
|
302
339
|
Style/InlineComment:
|
303
340
|
Enabled: false
|
304
341
|
|
305
|
-
# Offense count:
|
342
|
+
# Offense count: 4804
|
306
343
|
# Cop supports --auto-correct.
|
307
|
-
# Configuration parameters: IgnoreMacros, IgnoredMethods, IncludedMacros, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, EnforcedStyle.
|
344
|
+
# Configuration parameters: IgnoreMacros, IgnoredMethods, IgnoredPatterns, IncludedMacros, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, EnforcedStyle.
|
308
345
|
# SupportedStyles: require_parentheses, omit_parentheses
|
309
346
|
Style/MethodCallWithArgsParentheses:
|
310
347
|
Enabled: false
|
@@ -343,7 +380,7 @@ Style/MixinUsage:
|
|
343
380
|
- 'examples/thumbnail.rb'
|
344
381
|
- 'examples/vignette.rb'
|
345
382
|
|
346
|
-
# Offense count:
|
383
|
+
# Offense count: 152
|
347
384
|
# Cop supports --auto-correct.
|
348
385
|
# Configuration parameters: EnforcedStyle.
|
349
386
|
# SupportedStyles: literals, strict
|
@@ -360,10 +397,17 @@ Style/NumericPredicate:
|
|
360
397
|
- 'lib/rmagick_internal.rb'
|
361
398
|
- 'lib/rvg/embellishable.rb'
|
362
399
|
|
400
|
+
# Offense count: 1
|
401
|
+
# Cop supports --auto-correct.
|
402
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
403
|
+
Style/RedundantReturn:
|
404
|
+
Exclude:
|
405
|
+
- 'examples/histogram.rb'
|
406
|
+
|
363
407
|
# Offense count: 3
|
364
408
|
# Cop supports --auto-correct.
|
365
|
-
# Configuration parameters: ConvertCodeThatCanStartToReturnNil,
|
366
|
-
#
|
409
|
+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
|
410
|
+
# AllowedMethods: present?, blank?, presence, try, try!
|
367
411
|
Style/SafeNavigation:
|
368
412
|
Exclude:
|
369
413
|
- 'lib/rmagick_internal.rb'
|
@@ -390,16 +434,16 @@ Style/StringHashKeys:
|
|
390
434
|
- 'lib/rvg/misc.rb'
|
391
435
|
- 'spec/rmagick/image/properties_spec.rb'
|
392
436
|
|
393
|
-
# Offense count:
|
437
|
+
# Offense count: 226
|
394
438
|
# Cop supports --auto-correct.
|
395
439
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
396
440
|
# SupportedStyles: single_quotes, double_quotes
|
397
441
|
Style/StringLiterals:
|
398
442
|
Enabled: false
|
399
443
|
|
400
|
-
# Offense count:
|
444
|
+
# Offense count: 975
|
401
445
|
# Cop supports --auto-correct.
|
402
446
|
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
403
447
|
# URISchemes: http, https
|
404
|
-
|
405
|
-
Max:
|
448
|
+
Layout/LineLength:
|
449
|
+
Max: 217
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,79 @@
|
|
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.5
|
7
|
+
|
8
|
+
Bug Fixes
|
9
|
+
|
10
|
+
- Specify rpath linker option to fix dynamic lib lookup failure on Linux (#1325)
|
11
|
+
- Fix Image#profile! that can't delete exif data (#1326)
|
12
|
+
|
13
|
+
## RMagick 4.2.4
|
14
|
+
|
15
|
+
Improvements
|
16
|
+
|
17
|
+
- spec_helper: drop require_relative to lib directory (#1306)
|
18
|
+
- Fix build error with Ruby 3.1 on macOS (#1313)
|
19
|
+
|
20
|
+
Bug Fixes
|
21
|
+
|
22
|
+
- remove Mutex in trace_proc= (#1303)
|
23
|
+
- channel_mean_spec: fix floating point comparison (#1307)
|
24
|
+
- changed_predicate_spec: ensure target directory exists (#1305)
|
25
|
+
- Doc: Fix documentation of Magick::Image#crop (#1311)
|
26
|
+
- Magick::UndefinedKernel should also not be used when creating a new KernelInfo. (#1312)
|
27
|
+
|
28
|
+
## RMagick 4.2.3
|
29
|
+
|
30
|
+
Bug Fixes
|
31
|
+
|
32
|
+
- Re-add block syntax deprecation warning and fix in RMagick source (#1279) (#1280)
|
33
|
+
- Doc: Replace Magick::Montage with Magick::ImageList::Montage (#1281)
|
34
|
+
- Update shadow example (#1297)
|
35
|
+
- Escape the backslashes in windows error message (#1298)
|
36
|
+
- Also set the alpha value of the target pixel (#1299)
|
37
|
+
- Set alpha_trait to BlendPixelTrait when the alpha value of the pixel is not opaque. (#1300)
|
38
|
+
|
39
|
+
## RMagick 4.2.2
|
40
|
+
|
41
|
+
Bug Fixes:
|
42
|
+
|
43
|
+
- Remove deprecation warning about block syntax (#1272)
|
44
|
+
|
45
|
+
You are still recommended to use the block parameter instead of `self.` but
|
46
|
+
we're silencing the deprecation warning until we can get RMagick's code up to
|
47
|
+
that standard.
|
48
|
+
|
49
|
+
## RMagick 4.2.1
|
50
|
+
|
51
|
+
Bug Fixes:
|
52
|
+
|
53
|
+
- Fix compilation with optimization on glibc (#1263)
|
54
|
+
|
55
|
+
## RMagick 4.2.0
|
56
|
+
|
57
|
+
This adds a deprecation warning when using a block for image operations.
|
58
|
+
Instead of setting properties on `self`, you should accept a block argument and
|
59
|
+
modify that instead. In a future version we we no longer be binding the block
|
60
|
+
to the image.
|
61
|
+
|
62
|
+
```diff
|
63
|
+
- img.to_blob { self.quality = 75 }
|
64
|
+
+ img.to_blob { |image| image.quality = 75 }
|
65
|
+
```
|
66
|
+
|
67
|
+
Improvements:
|
68
|
+
|
69
|
+
- Updated error messages if runtime ImageMagick version was not matched with when installed rmagick (#1213)
|
70
|
+
- Improve Image#resize performance with ImageMagick 7 (#1240)
|
71
|
+
- Added new colorspaces (#1252)
|
72
|
+
|
73
|
+
Bug Fixes:
|
74
|
+
|
75
|
+
- Fix assertion failed in Magick::TextureFill.new with with unexpected argument (#1216)
|
76
|
+
- Call with yield when there is a block arguments (#701)
|
77
|
+
- Avoid crash with monitor feature on Ruby 3.0 (#1253)
|
78
|
+
|
6
79
|
## RMagick 4.1.2
|
7
80
|
|
8
81
|
Bug Fixes:
|