Skip to content

Commit

Permalink
fix: use the regexp matcher which is compatible with ruby 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
knarewski committed Sep 12, 2024
1 parent 472b5ca commit b19326d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/gdk_pixbuf_cairo/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def macos?

def clang?
cc_version = `#{RbConfig.expand('$(CC) --version' + '')}`

Check notice on line 16 in ext/gdk_pixbuf_cairo/extconf.rb

View workflow job for this annotation

GitHub Actions / RuboCop Action

ext/gdk_pixbuf_cairo/extconf.rb#L16

Prefer string interpolation to string concatenation. [Style/StringConcatenation]
cc_version.match?(/clang/i)
!!cc_version.match(/clang/i)
end

# XCode 14 warns if `-Wl,-undefined dynamic_lookup` is specified, and as
Expand Down

0 comments on commit b19326d

Please sign in to comment.