shopifydev 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/shopifydev/shop.rb +4 -4
- data/lib/shopifydev/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NThmZmM3ZDJlZDNiZjliZjk4ZGE1ZGYzMDAxZTM1ODMxOGQ5ODgzMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWE2MDg3MjM3ZjliYmRkMDBkNmFmOWE5NWU0NWYyMGEyMzFhMThkZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmI5MGRlZjk5YmUzZDU1MGMzYzczNzA0MTlhMTA3NTA5MjUxZjYzZmIzM2U2
|
10
|
+
OWRiMmJkODQ4YWI0YWQ0ODgzYzk5MTY1OGUwYzJmNjEzZmY1MWY4YjliY2Fk
|
11
|
+
OWY0ODVmOWU3MmI1ZjAxOWU1MWQ5MWI1Y2FlMjdjODcwY2NiYWQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmExMWNkYTY4Y2JjZjNlNjU1NjA0NDk3N2Y3NThkZjVhOTM5YzIxMGExYjBl
|
14
|
+
YjY0ODNjMmY3YWFmMGNkZTM5ODc3OWVmM2Y1MWRiODQwMmM1M2U3ZTAwZjBi
|
15
|
+
Y2EyNTUyZjQ1OGIyZmQyNmNlYTIxNTUzNjdlMmNmMDk5ODI2NDI=
|
data/lib/shopifydev/shop.rb
CHANGED
@@ -11,15 +11,15 @@ module Shopifydev
|
|
11
11
|
|
12
12
|
ShopifyAPI::Base.clear_session
|
13
13
|
if credentials['token']
|
14
|
+
session = ShopifyAPI::Session.new(credentials['url'], credentials['token'])
|
15
|
+
session.valid? # returns true
|
16
|
+
ShopifyAPI::Base.activate_session(session)
|
17
|
+
else
|
14
18
|
ShopifyAPI::Base.site = "https://" +
|
15
19
|
credentials['api_key'] + ':' +
|
16
20
|
credentials['password'] + '@' +
|
17
21
|
credentials['url'] + '/admin'
|
18
22
|
logger.debug("set shopify site to #{ShopifyAPI::Base.site}")
|
19
|
-
else
|
20
|
-
session = ShopifyAPI::Session.new(credentials['url'], credentials['token'])
|
21
|
-
session.valid? # returns true
|
22
|
-
ShopifyAPI::Base.activate_session(session)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
data/lib/shopifydev/version.rb
CHANGED