instead of URI.escape which is deprecated.
@@ -183,7 +183,7 @@ module ShopifyAPI
end
def parameterize(params)
- URI.escape(params.collect { |k, v| "#{k}=#{v}" }.join('&'))
+ URI.encode_www_form(params)
def access_token_request(code)
@@ -333,7 +333,7 @@ class SessionTest < Test::Unit::TestCase
permission_url = session.create_permission_url(scope, "http://my_redirect_uri.com", state: "My nonce")
assert_equal_uri(
"https://localhost.myshopify.com/admin/oauth/authorize?client_id=My_test_key&" \
- "scope=&redirect_uri=http://my_redirect_uri.com&state=My%20nonce",
+ "scope=&redirect_uri=http://my_redirect_uri.com&state=My+nonce",
permission_url
)