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 +4 -4
- data/README.md +3 -0
- data/lib/lucid_shopify/authorize.rb +4 -2
- data/lib/lucid_shopify/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dcddf4a0022ae6ecd4762d3f0bf79a2cc1845c90f1ac1b374d2d98756e92a33
|
4
|
+
data.tar.gz: aba5d5ec84a89489c0ba7f87a55999bec6f99dcf4d7bed575c8e71f23aa7562b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78de01cbe2b28c74378d20e444a172e3124e8f33d856660bc98bedad97776d65986567cb0f5eb2ae0e8f6dd7ad2aafab0a264354dfa72ea9dd2556333bdb929f
|
7
|
+
data.tar.gz: a81e06f56c4d2ab91bb0152cc43c9e649fc83bada677bc9f7f04cd282a4ecb48d37593882731acd7e9c502c1579d274d91fc653e0538e314f02b479a5a4981a6
|
data/README.md
CHANGED
@@ -16,14 +16,16 @@ module LucidShopify
|
|
16
16
|
#
|
17
17
|
# Exchange an authorization code for a new Shopify access token.
|
18
18
|
#
|
19
|
-
# @param
|
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(
|
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?
|
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.
|
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
|
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.
|
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.
|
68
|
+
version: 0.58.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: dry-container
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|