rmagick 6.1.3 → 6.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +6 -6
- data/CHANGELOG.md +6 -0
- data/ext/RMagick/extconf.rb +6 -3
- data/lib/rmagick/version.rb +1 -1
- data/lib/rmagick_internal.rb +2 -2
- data/lib/rvg/misc.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 869808111e9ff5a238c87513cf287fccf958b962a0d0a11cef7d7f2e4d66f1a4
|
4
|
+
data.tar.gz: 781eeaca5f13d2544c41a26faa9c7a7d7a08c8a8615d8982e6ae8ebfef73fee0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e587419ce08959d886d52e1a21648444ef3054f385b8f4aa78cbcd66d37467730555d8ff7e4ba1db753fc98918f65b64b075906dae5a26daf15bdd792a8a589
|
7
|
+
data.tar.gz: 006f8c9ab91b011cc1a53c588ad4e7e85ecd015efbb3984f154dddff2de030d64209e97a69ce921d053938ffd758351636d42357197076a9be3e19c3d45795ef
|
data/.github/workflows/ci.yml
CHANGED
@@ -15,7 +15,7 @@ jobs:
|
|
15
15
|
runs-on: ubuntu-latest
|
16
16
|
timeout-minutes: 20
|
17
17
|
steps:
|
18
|
-
- uses: actions/checkout@
|
18
|
+
- uses: actions/checkout@v5
|
19
19
|
- name: Set up Ruby 3.3
|
20
20
|
uses: ruby/setup-ruby@master
|
21
21
|
with:
|
@@ -30,7 +30,7 @@ jobs:
|
|
30
30
|
name: RBS
|
31
31
|
timeout-minutes: 20
|
32
32
|
steps:
|
33
|
-
- uses: actions/checkout@
|
33
|
+
- uses: actions/checkout@v5
|
34
34
|
- name: Set up Ruby 3.0
|
35
35
|
uses: ruby/setup-ruby@master
|
36
36
|
with:
|
@@ -55,7 +55,7 @@ jobs:
|
|
55
55
|
|
56
56
|
name: Linux, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
|
57
57
|
steps:
|
58
|
-
- uses: actions/checkout@
|
58
|
+
- uses: actions/checkout@v5
|
59
59
|
- name: Cache ImageMagick built objects
|
60
60
|
uses: actions/cache@v4
|
61
61
|
with:
|
@@ -89,7 +89,7 @@ jobs:
|
|
89
89
|
|
90
90
|
name: Linux, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
|
91
91
|
steps:
|
92
|
-
- uses: actions/checkout@
|
92
|
+
- uses: actions/checkout@v5
|
93
93
|
- name: Cache ImageMagick built objects
|
94
94
|
uses: actions/cache@v4
|
95
95
|
with:
|
@@ -123,7 +123,7 @@ jobs:
|
|
123
123
|
|
124
124
|
name: macOS, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
|
125
125
|
steps:
|
126
|
-
- uses: actions/checkout@
|
126
|
+
- uses: actions/checkout@v5
|
127
127
|
- name: Cache ImageMagick built objects
|
128
128
|
uses: actions/cache@v4
|
129
129
|
with:
|
@@ -167,7 +167,7 @@ jobs:
|
|
167
167
|
|
168
168
|
name: MSWin ${{ matrix.os.arch }}, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
|
169
169
|
steps:
|
170
|
-
- uses: actions/checkout@
|
170
|
+
- uses: actions/checkout@v5
|
171
171
|
- name: Setup environment variable
|
172
172
|
# https://stackoverflow.com/questions/60169752/how-to-update-the-path-in-a-github-action-workflow-file-for-a-windows-latest-hos
|
173
173
|
run: |
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,12 @@
|
|
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 6.1.4
|
7
|
+
|
8
|
+
Improvements
|
9
|
+
|
10
|
+
- Improve check whether C++ compiler exists (#1708)
|
11
|
+
|
6
12
|
## RMagick 6.1.3
|
7
13
|
|
8
14
|
Bug Fixes
|
data/ext/RMagick/extconf.rb
CHANGED
@@ -226,9 +226,12 @@ module RMagick
|
|
226
226
|
def assert_can_compile!
|
227
227
|
assert_has_dev_libs!
|
228
228
|
|
229
|
-
# Check for compiler. Extract first word so ENV['CXX'] can be a program name with arguments.
|
230
|
-
|
231
|
-
|
229
|
+
# Check for C++ compiler. Extract first word so ENV['CXX'] can be a program name with arguments.
|
230
|
+
# Ref. https://bugs.ruby-lang.org/issues/21111
|
231
|
+
cxx = (ENV['CXX'] || RbConfig::CONFIG['CXX']).split.first
|
232
|
+
return if cxx != "false" && find_executable(cxx)
|
233
|
+
|
234
|
+
exit_failure "No C++ compiler found in ${ENV['PATH']}. See mkmf.log for details."
|
232
235
|
end
|
233
236
|
|
234
237
|
def assert_has_dev_libs!
|
data/lib/rmagick/version.rb
CHANGED
data/lib/rmagick_internal.rb
CHANGED
@@ -224,7 +224,7 @@ module Magick
|
|
224
224
|
|
225
225
|
def enquote(str)
|
226
226
|
str = to_string(str)
|
227
|
-
if str.length > 2 && /\A(?:"[
|
227
|
+
if str.length > 2 && /\A(?:"[^"]+"|'[^']+'|\{[^}]+\})\z/.match(str)
|
228
228
|
str
|
229
229
|
else
|
230
230
|
'"' + str + '"'
|
@@ -619,7 +619,7 @@ module Magick
|
|
619
619
|
def text(x, y, text)
|
620
620
|
text = to_string(text)
|
621
621
|
Kernel.raise ArgumentError, 'missing text argument' if text.empty?
|
622
|
-
if text.length > 2 && /\A(?:"[
|
622
|
+
if text.length > 2 && /\A(?:"[^"]+"|'[^']+'|\{[^}]+\})\z/.match(text)
|
623
623
|
# text already quoted
|
624
624
|
elsif !text['\'']
|
625
625
|
text = '\'' + text + '\''
|
data/lib/rvg/misc.rb
CHANGED
@@ -74,7 +74,7 @@ module Magick
|
|
74
74
|
end
|
75
75
|
|
76
76
|
def enquote(text)
|
77
|
-
return text if text.length > 2 && /\A(?:"[
|
77
|
+
return text if text.length > 2 && /\A(?:"[^"]+"|'[^']+'|\{[^}]+\})\z/.match(text)
|
78
78
|
|
79
79
|
if !text['\'']
|
80
80
|
text = '\'' + text + '\''
|