shopify-sinatra-app 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c0d855c21535c2d1915f2308110d3cb63346006da58d7d651d9669454acaab8
4
- data.tar.gz: c51f8d793929ed69180a2bc61a97c1caf1f327d98a7507ba52e0f9f76aac3f16
3
+ metadata.gz: 04bb041cdebd4d5e406718b9cce345d33f84a87c47965aa45ce6e406e2feda9b
4
+ data.tar.gz: caa2cf913df00877174449ed236a6662be8bd4434f058cae3d1a375690fea0f8
5
5
  SHA512:
6
- metadata.gz: f6118de76a19ddd7d3e1bd3592e6568d7957d03314ae81778cf95296ed6764f089415d91f10d168036839a0c2de4efb49de223d04d93e2fd8c4f18d28dee58bc
7
- data.tar.gz: db1ebc67c55d9448258810975893053323d9bd2346a3ee4c39ebd2309fa43b07cb1222d43481a4388223c95497515cf59f6b3c9f7a6e5adb5f671d5a47b1f3e8
6
+ metadata.gz: 281ee9f2215a59d4ba358dd689065ed464034ccd0402a8f60b65f14886e5a89ce5aed813e8fda708d7b36a34a7c51ae503a6b6a4b04d3cd42f46bf082c662a6c
7
+ data.tar.gz: 3b8e1680f512d1ef2d9b8a06f599f7b7e3543e8644fa6780937c4bf5e06282770ccc6695368d06f63f8d0a5bdc61584508cf7881894bc2fa9fe62d299c79712a
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 1.2.1
2
+ -----
3
+ * shop record may already be removed
4
+
1
5
  1.2.0
2
6
  -----
3
7
  * remove support for embedded apps
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shopify-sinatra-app (1.2.0)
4
+ shopify-sinatra-app (1.2.1)
5
5
  activesupport
6
6
  attr_encrypted
7
7
  omniauth (>= 2.0.4)
@@ -49,7 +49,7 @@ GEM
49
49
  i18n (1.12.0)
50
50
  concurrent-ruby (~> 1.0)
51
51
  jwt (2.5.0)
52
- minitest (5.16.3)
52
+ minitest (5.18.0)
53
53
  mocha (2.0.2)
54
54
  ruby2_keywords (>= 0.0.5)
55
55
  multi_xml (0.6.0)
@@ -75,7 +75,7 @@ GEM
75
75
  rack (2.2.6.4)
76
76
  rack-protection (3.0.6)
77
77
  rack
78
- rack-test (2.0.2)
78
+ rack-test (2.1.0)
79
79
  rack (>= 1.3)
80
80
  rake (13.0.6)
81
81
  ruby2_keywords (0.0.5)
@@ -94,7 +94,7 @@ GEM
94
94
  snaky_hash (2.0.1)
95
95
  hashie
96
96
  version_gem (~> 1.1, >= 1.1.1)
97
- sqlite3 (1.6.2-x86_64-linux)
97
+ sqlite3 (1.6.3-x86_64-linux)
98
98
  tilt (2.1.0)
99
99
  tzinfo (2.0.6)
100
100
  concurrent-ruby (~> 1.0)
data/example/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- shopify-sinatra-app (1.1.1)
4
+ shopify-sinatra-app (1.2.1)
5
5
  activesupport
6
- attr_encrypted (>= 3.1, < 4.1)
6
+ attr_encrypted
7
7
  omniauth (>= 2.0.4)
8
8
  omniauth-shopify-oauth2 (>= 2.3.2)
9
- shopify_api (>= 7.0.1, < 12.6)
10
- sinatra (>= 2.2, < 3.1)
11
- sinatra-activerecord (~> 2.0.9)
9
+ shopify_api (= 9.5.1)
10
+ sinatra
11
+ sinatra-activerecord
12
12
 
13
13
  GEM
14
14
  remote: https://rubygems.org/
@@ -36,9 +36,10 @@ module Sinatra
36
36
  rescue ActiveResource::UnauthorizedAccess
37
37
  clear_session
38
38
 
39
- shop = Shop.find_by(name: shop_name)
40
- shop.token = nil
41
- shop.save
39
+ if shop = Shop.find_by(name: shop_name)
40
+ shop.token = nil
41
+ shop.save
42
+ end
42
43
 
43
44
  redirect request.path
44
45
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'shopify-sinatra-app'
3
- s.version = '1.2.0'
3
+ s.version = '1.2.1'
4
4
 
5
5
  s.summary = 'A classy shopify app'
6
6
  s.description = 'A Sinatra extension for building Shopify Apps. Akin to the shopify_app gem but for Sinatra'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify-sinatra-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Hughes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-16 00:00:00.000000000 Z
11
+ date: 2023-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
251
  - !ruby/object:Gem::Version
252
252
  version: '0'
253
253
  requirements: []
254
- rubygems_version: 3.4.6
254
+ rubygems_version: 3.1.6
255
255
  signing_key:
256
256
  specification_version: 4
257
257
  summary: A classy shopify app