aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 755a8a1d6..2e1a677b3 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -163,7 +163,7 @@ def odeprecated(method, replacement = nil, options = {})
end
def odisabled(method, replacement = nil, options = {})
- options = { :die => true, :caller => caller }.merge(options)
+ options = { die: true, caller: caller }.merge(options)
odeprecated(method, replacement, options)
end
@@ -587,7 +587,7 @@ def truncate_text_to_approximate_size(s, max_bytes, options = {})
end
out = front + glue_bytes + back
out.force_encoding("UTF-8")
- out.encode!("UTF-16", :invalid => :replace)
+ out.encode!("UTF-16", invalid: :replace)
out.encode!("UTF-8")
out
end