aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-30 01:02:46 -0500
committerJack Nagel2014-06-30 01:03:11 -0500
commita9e07ee5d2e32bd3bac57ac59436792058d1de99 (patch)
tree75367f189e4b094453236861ebc74fe331bcc9f3 /Library
parent528dad0ea8a12afa4b01550948240cf714f65a29 (diff)
downloadhomebrew-a9e07ee5d2e32bd3bac57ac59436792058d1de99.tar.bz2
Use 1.8 has syntax
Fixes #30558.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-gist-logs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Contributions/cmd/brew-gist-logs.rb b/Library/Contributions/cmd/brew-gist-logs.rb
index 120818d49..e06da81c7 100755
--- a/Library/Contributions/cmd/brew-gist-logs.rb
+++ b/Library/Contributions/cmd/brew-gist-logs.rb
@@ -82,7 +82,7 @@ def post path, data
elsif response["Content-Type"].downcase == "application/json; charset=utf-8"
body = response.body.dup.force_encoding(Encoding::UTF_8)
else
- body = response.body.encode(Encoding::UTF_8, undef: :replace)
+ body = response.body.encode(Encoding::UTF_8, :undef => :replace)
end
Utils::JSON.load(body)