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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8727d63370f3301d1003b3289cb4f7d4d51053866c665fdf209fece0ff3a2cd5
4
- data.tar.gz: 42f684f58bacb86862a11b9d37cd061846860b5cec169e267a42f4a815d424d1
3
+ metadata.gz: 869808111e9ff5a238c87513cf287fccf958b962a0d0a11cef7d7f2e4d66f1a4
4
+ data.tar.gz: 781eeaca5f13d2544c41a26faa9c7a7d7a08c8a8615d8982e6ae8ebfef73fee0
5
5
  SHA512:
6
- metadata.gz: 8fe89adf4ce1c080090ab6b762dd7978a73615aadcef2be75340eab407c866d3c7bd9129f037f4c3d4ccc522494e15cfed2af9f8c3cb28f64d088492949f1d32
7
- data.tar.gz: ce107ad02c27ce449d81d9640028a0be798fc8e916ae638321f22c05f59b06e3073777c5b89bb73360fdc52f909fb64ddb75a5c4510cb994a69757805ae639ba
6
+ metadata.gz: 1e587419ce08959d886d52e1a21648444ef3054f385b8f4aa78cbcd66d37467730555d8ff7e4ba1db753fc98918f65b64b075906dae5a26daf15bdd792a8a589
7
+ data.tar.gz: 006f8c9ab91b011cc1a53c588ad4e7e85ecd015efbb3984f154dddff2de030d64209e97a69ce921d053938ffd758351636d42357197076a9be3e19c3d45795ef
@@ -15,7 +15,7 @@ jobs:
15
15
  runs-on: ubuntu-latest
16
16
  timeout-minutes: 20
17
17
  steps:
18
- - uses: actions/checkout@v4
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@v4
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@v4
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@v4
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@v4
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@v4
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
@@ -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
- cxx = (ENV['CXX'] || RbConfig::CONFIG['CXX'] || 'g++').split.first
231
- exit_failure "No C++ compiler found in ${ENV['PATH']}. See mkmf.log for details." unless find_executable(cxx)
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!
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Magick
4
- VERSION = '6.1.3'
4
+ VERSION = '6.1.4'
5
5
  MIN_RUBY_VERSION = '3.0.0'
6
6
  MIN_IM_VERSION = '6.8.9'
7
7
  end
@@ -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(?:"[^\"]+"|'[^\']+'|\{[^\}]+\})\z/.match(str)
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(?:"[^\"]+"|'[^\']+'|\{[^\}]+\})\z/.match(text)
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(?:"[^\"]+"|'[^\']+'|\{[^\}]+\})\z/.match(text)
77
+ return text if text.length > 2 && /\A(?:"[^"]+"|'[^']+'|\{[^}]+\})\z/.match(text)
78
78
 
79
79
  if !text['\'']
80
80
  text = '\'' + text + '\''
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: 6.1.3
4
+ version: 6.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Hunter