lib/keyless/rsa_public_key.rb in keyless-1.0.1 vs lib/keyless/rsa_public_key.rb in keyless-1.0.2

- old
+ new

@@ -63,10 +63,11 @@ def fetch_encoded_key raise ArgumentError, 'No URL for RsaPublicKey configured' unless url if remote? res = HTTParty.get(url) - raise FetchError, res.inspect unless (200..299).include? res.code + raise FetchError, res.inspect unless (200..299).cover? res.code + res.body else File.read(url) end end