aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParker Moore <parkrmoore@gmail.com>2013-03-05 23:39:27 +0100
committerParker Moore <parkrmoore@gmail.com>2013-03-05 23:42:59 +0100
commitde8e79f348c136fdec31fbed16d6c8007968dc3b (patch)
tree0c7b6c20718d8a581c2c636b02c4247efc666405
parent51905b6a90b55c5293d346667ebe16fadae99537 (diff)
downloadmy_new_personal_website-de8e79f348c136fdec31fbed16d6c8007968dc3b.tar.xz
my_new_personal_website-de8e79f348c136fdec31fbed16d6c8007968dc3b.zip
Using data.code.to_i like a true Rubyist in plugins/gist_code.rb. Heh. #438
-rw-r--r--plugins/gist_tag.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gist_tag.rb b/plugins/gist_tag.rb
index 43e7eb0a..2549ea7a 100644
--- a/plugins/gist_tag.rb
+++ b/plugins/gist_tag.rb
@@ -84,8 +84,8 @@ module Jekyll
https.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new raw_uri.request_uri
data = https.request request
- if Integer(data.code) != 200
- raise RuntimeError, "Gist replied with #{data.code} for #{gist_url}"
+ if data.code.to_i != 200
+ raise RuntimeError, "Gist replied with #{data.code} for #{gist_url}"
end
data = data.body
cache gist, file, data unless @cache_disabled