mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-15 21:55:00 -05:00
Using data.code.to_i like a true Rubyist in plugins/gist_code.rb. Heh. #438
This commit is contained in:
parent
51905b6a90
commit
de8e79f348
@ -84,8 +84,8 @@ module Jekyll
|
|||||||
https.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
https.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
||||||
request = Net::HTTP::Get.new raw_uri.request_uri
|
request = Net::HTTP::Get.new raw_uri.request_uri
|
||||||
data = https.request request
|
data = https.request request
|
||||||
if Integer(data.code) != 200
|
if data.code.to_i != 200
|
||||||
raise RuntimeError, "Gist replied with #{data.code} for #{gist_url}"
|
raise RuntimeError, "Gist replied with #{data.code} for #{gist_url}"
|
||||||
end
|
end
|
||||||
data = data.body
|
data = data.body
|
||||||
cache gist, file, data unless @cache_disabled
|
cache gist, file, data unless @cache_disabled
|
||||||
|
Loading…
Reference in New Issue
Block a user