shopify-mock icon indicating copy to clipboard operation
shopify-mock copied to clipboard

README example gives `undefined method `<<' for Hash` after release of Shopify API versioning

Open colinsoleim opened this issue 5 years ago • 1 comments

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 #Hash:0x00007f861ca21968)`.

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 }

colinsoleim avatar Jun 03 '19 13:06 colinsoleim

@colinsoleim Fetching fakeweb gem directly from Github worked for me: https://github.com/Shopify/shopify_app/issues/476#issuecomment-332137371

ogonki-vetochki avatar Feb 04 '21 09:02 ogonki-vetochki