rmagick 4.2.1 → 4.2.2

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: 8a3bbfb689ccabfdc7f9459db44ec3fe6e268a95cc0406ce9ec5aa4b96f51917
4
- data.tar.gz: d976e29cb244ea8c7d78fd59b8fc30a70d7fe95a818d65c8272d9c772a0587da
3
+ metadata.gz: c383bce80132c17b4d8a6afab0085b2f4d5d23f582473d9405b5f6dcb3d6283f
4
+ data.tar.gz: 0f5f7afe6df7a1c5095860ca5341d0b72a4960b8ead6a2779bd8209a92078f95
5
5
  SHA512:
6
- metadata.gz: 2f8b9e70658af7bf3ff1f77eea1ff9c6b9bc61a854a6e7ce090b69915264f0c6d8be209f749a5fdb22ac6d913025a7121e98055c4255209d50659c81274c58e3
7
- data.tar.gz: 9388b10450761f6fa71512fb526ffb45d40dad67ca95905b03cc98745e7c9d2102523bad561dde1d3d0b3710bdfa4d3a971553421a25ae94fe1ec428f778690b
6
+ metadata.gz: 619e5ec7f5fbd0750fb5bc4807d9d7ca0e58b6ba6e3efc9726541bbe3c260a748c026446ce89ef51661254b5285f907254d9b389cb237e141bd525fa23bbf2b6
7
+ data.tar.gz: 50e98c64b22c0bbf9d4b5aafd6664d02abdc2d8286a703e9199aed8b5e9597c4ce1ec4abeceabed20c21b5ab6d703b0ff9d4d81637d08b2c2ba93e615b02184f
@@ -5,8 +5,7 @@ on:
5
5
  branches:
6
6
  - main
7
7
  pull_request:
8
- branches:
9
- - main
8
+ workflow_dispatch:
10
9
 
11
10
  jobs:
12
11
  lint:
data/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
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.2
7
+
8
+ Bug Fixes:
9
+
10
+ - Remove deprecation warning about block syntax (#1272)
11
+
12
+ You are still recommended to use the block parameter instead of `self.` but
13
+ we're silencing the deprecation warning until we can get RMagick's code up to
14
+ that standard.
15
+
6
16
  ## RMagick 4.2.1
7
17
 
8
18
  Bug Fixes:
@@ -11,6 +21,16 @@ Bug Fixes:
11
21
 
12
22
  ## RMagick 4.2.0
13
23
 
24
+ This adds a deprecation warning when using a block for image operations.
25
+ Instead of setting properties on `self`, you should accept a block argument and
26
+ modify that instead. In a future version we we no longer be binding the block
27
+ to the image.
28
+
29
+ ```diff
30
+ - img.to_blob { self.quality = 75 }
31
+ + img.to_blob { |image| image.quality = 75 }
32
+ ```
33
+
14
34
  Improvements:
15
35
 
16
36
  - Updated error messages if runtime ImageMagick version was not matched with when installed rmagick (#1213)
data/ext/RMagick/rmdraw.c CHANGED
@@ -856,7 +856,6 @@ VALUE Draw_annotate(
856
856
  if (rb_proc_arity(rb_block_proc()) == 0)
857
857
  {
858
858
  // Run the block in self's context
859
- rb_warn("passing a block without an image argument is deprecated");
860
859
  rb_obj_instance_eval(0, NULL, self);
861
860
  }
862
861
  else
@@ -1397,7 +1396,6 @@ DrawOptions_initialize(VALUE self)
1397
1396
  if (rb_proc_arity(rb_block_proc()) == 0)
1398
1397
  {
1399
1398
  // Run the block in self's context
1400
- rb_warn("passing a block without an image argument is deprecated");
1401
1399
  rb_obj_instance_eval(0, NULL, self);
1402
1400
  }
1403
1401
  else
@@ -1469,7 +1467,6 @@ PolaroidOptions_initialize(VALUE self)
1469
1467
  if (rb_proc_arity(rb_block_proc()) == 0)
1470
1468
  {
1471
1469
  // Run the block in self's context
1472
- rb_warn("passing a block without an image argument is deprecated");
1473
1470
  rb_obj_instance_eval(0, NULL, self);
1474
1471
  }
1475
1472
  else
@@ -448,7 +448,6 @@ ImageList_montage(VALUE self)
448
448
  // object's attributes.
449
449
  if (rb_proc_arity(rb_block_proc()) == 0)
450
450
  {
451
- rb_warn("passing a block without an image argument is deprecated");
452
451
  rb_obj_instance_eval(0, NULL, montage_obj);
453
452
  }
454
453
  else
data/ext/RMagick/rminfo.c CHANGED
@@ -2417,7 +2417,6 @@ Info_initialize(VALUE self)
2417
2417
  if (rb_proc_arity(rb_block_proc()) == 0)
2418
2418
  {
2419
2419
  // Run the block in self's context
2420
- rb_warn("passing a block without an image argument is deprecated");
2421
2420
  rb_obj_instance_eval(0, NULL, self);
2422
2421
  }
2423
2422
  else
data/ext/RMagick/rmutil.c CHANGED
@@ -1008,7 +1008,6 @@ rm_get_optional_arguments(VALUE img)
1008
1008
 
1009
1009
  if (rb_proc_arity(rb_block_proc()) == 0)
1010
1010
  {
1011
- rb_warn("passing a block without an image argument is deprecated");
1012
1011
  rb_obj_instance_eval(0, NULL, opt_args);
1013
1012
  }
1014
1013
  else
@@ -1,5 +1,5 @@
1
1
  module Magick
2
- VERSION = '4.2.1'
2
+ VERSION = '4.2.2'
3
3
  MIN_RUBY_VERSION = '2.3.0'
4
4
  MIN_IM_VERSION = '6.7.7'
5
5
  end
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.1
4
+ version: 4.2.2
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-02-07 00:00:00.000000000 Z
14
+ date: 2021-02-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: pry