lib/api_auth/helpers.rb in api-auth-1.0.3 vs lib/api_auth/helpers.rb in api-auth-1.1.0
- old
+ new
@@ -1,11 +1,10 @@
module ApiAuth
module Helpers # :nodoc:
- # Remove the ending new line character added by default
def b64_encode(string)
- Base64.encode64(string).strip
+ Base64.strict_encode64(string)
end
# Capitalizes the keys of a hash
def capitalize_keys(hsh)
capitalized_hash = {}