lib/geocoder/lookups/google_premier.rb in geocoder-1.1.9 vs lib/geocoder/lookups/google_premier.rb in geocoder-1.2.0
- old
+ new
@@ -29,10 +29,10 @@
)
end
def sign(string)
raw_private_key = url_safe_base64_decode(configuration.api_key[0])
- digest = OpenSSL::Digest::Digest.new('sha1')
+ digest = OpenSSL::Digest.new('sha1')
raw_signature = OpenSSL::HMAC.digest(digest, raw_private_key, string)
url_safe_base64_encode(raw_signature)
end
def url_safe_base64_decode(base64_string)