Ruby depreciation warning in URI.parser in a non rails environment when accessing Shopify API

Viewed 20

When configuring the Shopify API with authentication credentials in a ruby non-rail environment a depreciation warning occurs.

Here is the minimal code to reproduce it:

#!/usr/bin/ruby

require 'shopify_api'

API_KEY='my key'
PASSWORD='my password'
SHOP_NAME='my shop name'

shop_url = "https://#{API_KEY}:#{PASSWORD}@#{SHOP_NAME}.myshopify.com/admin"
ShopifyAPI::Base.api_version = '2020-10'
ShopifyAPI::Base.site = shop_url
0 Answers
Related