Shopify recently rolled out API versioning (https://www.shopify.com/partners/blog/api-versioning-at-shopify), and the example in the README now gives the following error
ArgumentError (wrong number of arguments (given 2, expected 0; required keywords: domain, token, api_version)).
If you change the example to use keyword arguments, the command then gives the following error NoMethodError (undefined method<<' for #)`.
Steps to reproduce
rails new shopify-mock-testgem install shopify-mockrails c -e testorder = ShopifyAPI::Session.temp("test", "randomtoken") { ShopifyAPI::Order.first }
Shopify recently rolled out API versioning (https://www.shopify.com/partners/blog/api-versioning-at-shopify), and the example in the README now gives the following error
ArgumentError (wrong number of arguments (given 2, expected 0; required keywords: domain, token, api_version))
.If you change the example to use keyword arguments, the command then gives the following error)`.
NoMethodError (undefined method
<<' for #Steps to reproduce
rails new shopify-mock-test
gem install shopify-mock
rails c -e test
order = ShopifyAPI::Session.temp("test", "randomtoken") { ShopifyAPI::Order.first }