Explorar o código

Stop using the deprecated URI.parser

Jean Boussier %!s(int64=4) %!d(string=hai) anos
pai
achega
ee3973183a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/shopify_api/resources/base.rb

+ 1 - 1
lib/shopify_api/resources/base.rb

@@ -87,7 +87,7 @@ module ShopifyAPI
       def resource_prefix=(value)
         @prefix_parameters = nil
 
-        resource_prefix_call = value.gsub(/:\w+/) { |key| "\#{URI.parser.escape options[#{key}].to_s}" }
+        resource_prefix_call = value.gsub(/:\w+/) { |key| "\#{URI::DEFAULT_PARSER.escape options[#{key}].to_s}" }
 
         silence_warnings do
           # Redefine the new methods.