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 +4 -4
- data/.github/workflows/ci.yml +1 -2
- data/CHANGELOG.md +20 -0
- data/ext/RMagick/rmdraw.c +0 -3
- data/ext/RMagick/rmilist.c +0 -1
- data/ext/RMagick/rminfo.c +0 -1
- data/ext/RMagick/rmutil.c +0 -1
- data/lib/rmagick/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c383bce80132c17b4d8a6afab0085b2f4d5d23f582473d9405b5f6dcb3d6283f
|
4
|
+
data.tar.gz: 0f5f7afe6df7a1c5095860ca5341d0b72a4960b8ead6a2779bd8209a92078f95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 619e5ec7f5fbd0750fb5bc4807d9d7ca0e58b6ba6e3efc9726541bbe3c260a748c026446ce89ef51661254b5285f907254d9b389cb237e141bd525fa23bbf2b6
|
7
|
+
data.tar.gz: 50e98c64b22c0bbf9d4b5aafd6664d02abdc2d8286a703e9199aed8b5e9597c4ce1ec4abeceabed20c21b5ab6d703b0ff9d4d81637d08b2c2ba93e615b02184f
|
data/.github/workflows/ci.yml
CHANGED
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
|
data/ext/RMagick/rmilist.c
CHANGED
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
data/lib/rmagick/version.rb
CHANGED
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.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-
|
14
|
+
date: 2021-02-23 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: pry
|