Skip to content

Commit

Permalink
Change gsub to tr (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
artofhuman committed May 28, 2022
1 parent 67903eb commit 575ba0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/mini_magick/shell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def run(command, options = {})
def execute(command, options = {})
stdout, stderr, status =
log(command.join(" ")) do
send("execute_#{MiniMagick.shell_api.gsub("-", "_")}", command, options)
send("execute_#{MiniMagick.shell_api.tr("-", "_")}", command, options)
end

[stdout, stderr, status.exitstatus]
Expand Down
2 changes: 1 addition & 1 deletion lib/mini_magick/tool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def stdout
# mogrify.command.join(" ") #=> "mogrify canvas:khaki"
#
CREATION_OPERATORS.each do |operator|
define_method(operator.gsub('-', '_')) do |value = nil|
define_method(operator.tr('-', '_')) do |value = nil|
self << "#{operator}:#{value}"
self
end
Expand Down

0 comments on commit 575ba0f

Please sign in to comment.