lucid_shopify 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54384b212539ba8bd10ac90e842212ddf17509588d27f8501c8e532af66695d7
4
- data.tar.gz: e01e73471dfccc65c7875069068533a84ee41e2cf8ef1607aed4471452d5a427
3
+ metadata.gz: 2dcddf4a0022ae6ecd4762d3f0bf79a2cc1845c90f1ac1b374d2d98756e92a33
4
+ data.tar.gz: aba5d5ec84a89489c0ba7f87a55999bec6f99dcf4d7bed575c8e71f23aa7562b
5
5
  SHA512:
6
- metadata.gz: 3f54f952478dea3eccf83efd35c6a6f62aaf3b88109adfb366a63f8e89960681b099822d8100c790055344e775ecd4e7b7fee8bb5d0fe632d7840a45d65108a3
7
- data.tar.gz: 30e14e9481392806c135d270d4053c62aa58e6b0b780e223dc469abd7daf52edf9c9983fdbfab9dbae4371c1a1d7e11a80c7fdc1e6f1ef96fe929fb1fb759030
6
+ metadata.gz: 78de01cbe2b28c74378d20e444a172e3124e8f33d856660bc98bedad97776d65986567cb0f5eb2ae0e8f6dd7ad2aafab0a264354dfa72ea9dd2556333bdb929f
7
+ data.tar.gz: a81e06f56c4d2ab91bb0152cc43c9e649fc83bada677bc9f7f04cd282a4ecb48d37593882731acd7e9c502c1579d274d91fc653e0538e314f02b479a5a4981a6
data/README.md CHANGED
@@ -129,3 +129,6 @@ charge:
129
129
 
130
130
  client.throttled.get(request_credentials, 'orders')
131
131
  client.throttled.post_json(request_credentials, 'orders', new_order)
132
+
133
+ Note that throttling currently uses a naive implementation that is
134
+ only maintained across a single thread.
@@ -16,14 +16,16 @@ module LucidShopify
16
16
  #
17
17
  # Exchange an authorization code for a new Shopify access token.
18
18
  #
19
- # @param request_credentials [RequestCredentials]
19
+ # @param myshopify_domain [String]
20
20
  # @param authorization_code [String]
21
21
  #
22
22
  # @return [String] the access token
23
23
  #
24
24
  # @raise [Error] if the response is invalid
25
25
  #
26
- def call(request_credentials, authorization_code)
26
+ def call(myshopify_domain, authorization_code)
27
+ request_credentials = RequestCredentials.new(myshopify_domain)
28
+
27
29
  data = @client.post_json(request_credentials, 'oauth/access_token', post_data(authorization_code))
28
30
 
29
31
  raise Error if data['access_token'].nil?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LucidShopify
4
- VERSION = '0.10.0'
4
+ VERSION = '0.11.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucid_shopify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelsey Judson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-30 00:00:00.000000000 Z
11
+ date: 2018-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.52.0
61
+ version: 0.58.2
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.52.0
68
+ version: 0.58.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: dry-container
71
71
  requirement: !ruby/object:Gem::Requirement