rmagick 4.1.2 → 4.2.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb35ff56e69891085d8751cc08d6f6d4f1e70791afe76012ea869b6922551ab6
4
- data.tar.gz: 0b64498e6b29eca46efa64f1011045728c9708d098868f0de0ffdc0d103cfc02
3
+ metadata.gz: 0f03e7c8f9a11d13e6d238c0f9af950c6024f42318c7f877fdedf8754d08afa9
4
+ data.tar.gz: 8c37ca64ae0b07f2dbf05b8e1bbe670510ca702434a214bee4346d4e89ea86ca
5
5
  SHA512:
6
- metadata.gz: 8d9ff646c80d9ee524c001e5da165e5b0712fd8cf662d5a37bcfb28a5453d49ce3859f8b0c1b5324974203deb3b720d0c1ace2a405efae8b1e5e491b30d0a031
7
- data.tar.gz: 3e75993a946eb0547d69ef8fa0c66eee8226e72658bc609eba07f405bd6ac22ac4794de5891a21a9466994f1e0254cb7770974666f47d37eba6500ab1962b47a
6
+ metadata.gz: 64f6253d514ccc95f5dc1d2adcecdee8ccac2590eb113cf1f669b0381656ab3d021f358e394c7477635f2a92a44280ea67fb9c696d6542c6c64329341ba1f746
7
+ data.tar.gz: 5218852ac35cf26aecb5d8507921da099fb89c642bdf8d3663f2c7022171a9d36a1a96d2b193d688a3be8aa8c6543999e8ea84d1d0f992dbb97ef64cc7d7fe73
@@ -3,10 +3,9 @@ name: CI
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - master
6
+ - main
7
7
  pull_request:
8
- branches:
9
- - master
8
+ workflow_dispatch:
10
9
 
11
10
  jobs:
12
11
  lint:
@@ -17,14 +16,7 @@ jobs:
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
@@ -35,23 +27,16 @@ jobs:
35
27
  timeout-minutes: 10
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']
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.11-6, major-minor: '6.9' }
43
- - { full: 7.0.10-6, major-minor: '7.0' }
34
+ - { full: 6.9.12-15, major-minor: '6.9' }
35
+ - { full: 7.1.0-0, 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']
80
59
  imagemagick-version:
81
- - { full: 6.9.11-6, major-minor: '6.9' }
82
- - { full: 7.0.10-6, major-minor: '7.0' }
60
+ - { full: 6.9.12-15, major-minor: '6.9' }
61
+ - { full: 7.1.0-0, 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-02-09 10:55:21 -0800 using RuboCop version 0.68.1.
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
- Lint/EmptyWhen:
60
+ # Cop supports --auto-correct.
61
+ # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
62
+ # SupportedStylesForExponentOperator: space, no_space
63
+ Layout/SpaceAroundOperators:
53
64
  Exclude:
54
- - 'lib/rvg/misc.rb'
65
+ - 'rmagick.gemspec'
55
66
 
56
- # Offense count: 2
57
- Lint/HandleExceptions:
67
+ # Offense count: 1
68
+ Lint/EmptyWhen:
58
69
  Exclude:
59
- - 'lib/rmagick_internal.rb'
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: 44
111
+ # Offense count: 45
112
+ # Configuration parameters: IgnoredMethods.
88
113
  Metrics/AbcSize:
89
114
  Max: 537
90
115
 
91
- # Offense count: 75
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: 467
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: 57
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: 224
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/UncommunicativeMethodParamName:
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: 439
212
+ # Offense count: 421
186
213
  # Configuration parameters: Max.
187
214
  RSpec/ExampleLength:
188
215
  Enabled: false
189
216
 
190
- # Offense count: 556
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: 2
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: 802
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: 36
264
+ # Offense count: 37
264
265
  Style/Documentation:
265
266
  Enabled: false
266
267
 
267
- # Offense count: 77
268
+ # Offense count: 72
268
269
  # Configuration parameters: RequireForNonPublicMethods.
269
270
  Style/DocumentationMethod:
270
- Enabled: false
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: 192
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: 801
302
+ # Offense count: 808
283
303
  # Cop supports --auto-correct.
284
304
  # Configuration parameters: EnforcedStyle.
285
- # SupportedStyles: when_needed, always, never
305
+ # SupportedStyles: always, always_true, never
286
306
  Style/FrozenStringLiteralComment:
287
307
  Enabled: false
288
308
 
289
- # Offense count: 36
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: 4
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: 170
338
+ # Offense count: 148
302
339
  Style/InlineComment:
303
340
  Enabled: false
304
341
 
305
- # Offense count: 4963
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: 151
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, Whitelist.
366
- # Whitelist: present?, blank?, presence, try, try!
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: 158
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: 884
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
- Metrics/LineLength:
405
- Max: 250
448
+ Layout/LineLength:
449
+ Max: 217
data/CHANGELOG.md CHANGED
@@ -3,6 +3,57 @@
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.3
7
+
8
+ Bug Fixes
9
+
10
+ - Re-add block syntax deprecation warning and fix in RMagick source (#1279) (#1280)
11
+ - Doc: Replace Magick::Montage with Magick::ImageList::Montage (#1281)
12
+ - Update shadow example (#1297)
13
+ - Escape the backslashes in windows error message (#1298)
14
+ - Also set the alpha value of the target pixel (#1299)
15
+ - Set alpha_trait to BlendPixelTrait when the alpha value of the pixel is not opaque. (#1300)
16
+
17
+ ## RMagick 4.2.2
18
+
19
+ Bug Fixes:
20
+
21
+ - Remove deprecation warning about block syntax (#1272)
22
+
23
+ You are still recommended to use the block parameter instead of `self.` but
24
+ we're silencing the deprecation warning until we can get RMagick's code up to
25
+ that standard.
26
+
27
+ ## RMagick 4.2.1
28
+
29
+ Bug Fixes:
30
+
31
+ - Fix compilation with optimization on glibc (#1263)
32
+
33
+ ## RMagick 4.2.0
34
+
35
+ This adds a deprecation warning when using a block for image operations.
36
+ Instead of setting properties on `self`, you should accept a block argument and
37
+ modify that instead. In a future version we we no longer be binding the block
38
+ to the image.
39
+
40
+ ```diff
41
+ - img.to_blob { self.quality = 75 }
42
+ + img.to_blob { |image| image.quality = 75 }
43
+ ```
44
+
45
+ Improvements:
46
+
47
+ - Updated error messages if runtime ImageMagick version was not matched with when installed rmagick (#1213)
48
+ - Improve Image#resize performance with ImageMagick 7 (#1240)
49
+ - Added new colorspaces (#1252)
50
+
51
+ Bug Fixes:
52
+
53
+ - Fix assertion failed in Magick::TextureFill.new with with unexpected argument (#1216)
54
+ - Call with yield when there is a block arguments (#701)
55
+ - Avoid crash with monitor feature on Ruby 3.0 (#1253)
56
+
6
57
  ## RMagick 4.1.2
7
58
 
8
59
  Bug Fixes: