diff options
author | Roman Yepishev <roman.yepishev@ubuntu.com> | 2012-02-21 11:07:45 +0200 |
---|---|---|
committer | Roman Yepishev <roman.yepishev@ubuntu.com> | 2012-02-21 11:07:45 +0200 |
commit | 7ebc0a0d8b0cf276d5de4b51c823a4ee82710484 (patch) | |
tree | 7d9c87b9ddecca9fe4c7074fe763e75a64e2ce60 | |
parent | ef8392e2670d5eeac535ba89267d4505dd23b1cb (diff) | |
download | my_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.rb | 2 |
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 |