aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Yepishev <roman.yepishev@ubuntu.com>2012-02-21 11:07:45 +0200
committerRoman Yepishev <roman.yepishev@ubuntu.com>2012-02-21 11:07:45 +0200
commit7ebc0a0d8b0cf276d5de4b51c823a4ee82710484 (patch)
tree7d9c87b9ddecca9fe4c7074fe763e75a64e2ce60
parentef8392e2670d5eeac535ba89267d4505dd23b1cb (diff)
downloadmy_new_personal_website-7ebc0a0d8b0cf276d5de4b51c823a4ee82710484.tar.xz
my_new_personal_website-7ebc0a0d8b0cf276d5de4b51c823a4ee82710484.zip
Convert to integer before comparing. data.code is String
Diffstat (limited to '')
-rw-r--r--plugins/gist_tag.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/gist_tag.rb b/plugins/gist_tag.rb
index f6ebbb30..ee87fcf7 100644
--- a/plugins/gist_tag.rb
+++ b/plugins/gist_tag.rb
@@ -82,7 +82,7 @@ module Jekyll
https.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new raw_uri.request_uri
data = https.request request
- if data.code != 200
+ if Integer(data.code) != 200
raise RuntimeError, "Gist replied with #{data.code} for #{gist_url}"
end
data = data.body