shopify_app 6.0.2 → 6.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/generators/shopify_app/shop_model/templates/session_storage.rb +2 -2
- data/lib/shopify_app/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e4b7c91f3be1d41222c4164b7dbd68907e79d23
|
4
|
+
data.tar.gz: 6846fbe50432cc495f31910b3b242c02f197d3ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44d0bbca6dcf75b12d90d5f16817d7c99683937d7a7c5d07c5e2055c219a01b8ac77962092ad0d17518ab9e44e3832760c8f14e1c8e01889b766c3a34130b22d
|
7
|
+
data.tar.gz: 066fcdb1cd2aea7c8f45dd920cc1147c79eae415902223d5a43c4e08a160a2289d19f9ea578c7e1919b8237e7ccac8efd44137d51c1baf3f8960461d13555e49
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class SessionStorage
|
2
2
|
def self.store(session)
|
3
|
-
shop =
|
3
|
+
shop = Shop.find_or_initialize_by(shopify_domain: session.url)
|
4
4
|
shop.shopify_token = session.token
|
5
5
|
shop.save!
|
6
6
|
shop.id
|
@@ -8,7 +8,7 @@ class SessionStorage
|
|
8
8
|
|
9
9
|
def self.retrieve(id)
|
10
10
|
return unless id
|
11
|
-
shop =
|
11
|
+
shop = Shop.find(id)
|
12
12
|
ShopifyAPI::Session.new(shop.shopify_domain, shop.shopify_token)
|
13
13
|
rescue ActiveRecord::RecordNotFound
|
14
14
|
nil
|
data/lib/shopify_app/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
fl3hbtVFTqbOlwL9vy1fudXcolIE/ZTcxQ+er07ZFZdKCXayR9PPs64heamfn0fp
|
31
31
|
TConQSX2BnZdhIEYW+cKzEC/bLc=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2015-05-
|
33
|
+
date: 2015-05-04 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rails
|
metadata.gz.sig
CHANGED
Binary file
|