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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjVhNmYxZDgwYzI1NDFjODk1NmYxODIzMzk4YmIyZTcxYTRlNTU3ZQ==
4
+ NThmZmM3ZDJlZDNiZjliZjk4ZGE1ZGYzMDAxZTM1ODMxOGQ5ODgzMQ==
5
5
  data.tar.gz: !binary |-
6
- ZTgyMThjZDRkMjQ2NGM5OGU2MGZhMGUyNDA4Y2FhNjYyNDc5ZDE5Ng==
6
+ YWE2MDg3MjM3ZjliYmRkMDBkNmFmOWE5NWU0NWYyMGEyMzFhMThkZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MDE3YTg4MzE3YzdjOTAwMzNhMDE5MzJhOWEwZGJmNWU1MzY2MjlkYTUxYWFi
10
- ZTEyNzRmZTllNTAxNWM2YjJlMjRhODQxMWQzOGIyZDYxYjhhNGY5ZGY5NDA5
11
- NjkzMTY2YjJkNzc4MGI1MGRkZmUzNmRkMTBkOGMzYTRmOTdmNTg=
9
+ YmI5MGRlZjk5YmUzZDU1MGMzYzczNzA0MTlhMTA3NTA5MjUxZjYzZmIzM2U2
10
+ OWRiMmJkODQ4YWI0YWQ0ODgzYzk5MTY1OGUwYzJmNjEzZmY1MWY4YjliY2Fk
11
+ OWY0ODVmOWU3MmI1ZjAxOWU1MWQ5MWI1Y2FlMjdjODcwY2NiYWQ=
12
12
  data.tar.gz: !binary |-
13
- NGE1ZDgxNDE1ZDA2ZWY2ZmM3ZDdlOGJkYzlmYWM2M2E3OWUyMGQ0MGNiYTY4
14
- NzY5OGMxZmY1N2NhOWIyZjE5NjVjOTk2ZTYyZjIyNGVjZTM2YjRhNjU1Y2Zl
15
- YWI5ZWQ1ZGYyNjNlYjU1YmRlMTY4MjEzZWZhNWQyN2MyZDI5Mjc=
13
+ YmExMWNkYTY4Y2JjZjNlNjU1NjA0NDk3N2Y3NThkZjVhOTM5YzIxMGExYjBl
14
+ YjY0ODNjMmY3YWFmMGNkZTM5ODc3OWVmM2Y1MWRiODQwMmM1M2U3ZTAwZjBi
15
+ Y2EyNTUyZjQ1OGIyZmQyNmNlYTIxNTUzNjdlMmNmMDk5ODI2NDI=
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Shopifydev
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopifydev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Johnston