shopify-sinatra-app 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e65e3d915b446765b3c72cbe5e67cc296aca66b5833a494ba78c8dbe6fb1ad33
4
- data.tar.gz: 22aabb580d8abf787149e05ae6f1c32d15015960ebbfa3be028b39242b4fe48c
3
+ metadata.gz: 757042f3426b3b4028621b925dd43bd09889dca84a3bcb1f8e045d22ed20ac3a
4
+ data.tar.gz: db71036af35e5f10ee2c8b6465017620040e4a63bce149ccb6e6bc6d84db637f
5
5
  SHA512:
6
- metadata.gz: cca5d08f7d50b3bb3a4772a0fa4a5bac1d51bb2354dc2b54c57828ecfb38f85ce0eab8cc9055446ff35ba8975753d73b10b6b4a1fd24776952358bfe64fb39c8
7
- data.tar.gz: b21f1e83888d7f67856429d0c7f914cfd64a6b04c95a492443bd9c57495efb1c7bda651a94bd4e2db1cf4266f4a3c8befc70986bd093aa377db14d5073d7ace1
6
+ metadata.gz: 226a90e784be8e6505f96323b7e215556427af3c9f3b5f7e6d960ccf490bb9322177c76715bc2976641320f5fdc97d59424cfe633046137752d73e658c06cb1c
7
+ data.tar.gz: 5c59c0ccbc7318ada1e77e317f2b8255ca697badf907fcb63ea48c9ae236341945d3011632de95a889d3e2395cc44f83c7ae31d880dc3c3bd1080077ed820d73
@@ -23,8 +23,8 @@ class AppTest < Minitest::Test
23
23
 
24
24
  def test_root_with_session
25
25
  set_session
26
- fake 'https://testshop.myshopify.com/admin/shop.json', body: {myshopify_domain: @shop_name}.to_json
27
- fake 'https://testshop.myshopify.com/admin/products.json?limit=10', body: '{}'
26
+ fake 'https://testshop.myshopify.com/admin/api/2019-04/shop.json', body: {myshopify_domain: @shop_name}.to_json
27
+ fake 'https://testshop.myshopify.com/admin/api/2019-04/products.json?limit=10', body: '{}'
28
28
  get '/'
29
29
  assert last_response.ok?
30
30
  end
@@ -177,6 +177,8 @@ module Sinatra
177
177
  app.use Rack::MethodOverride
178
178
  app.use Rack::Session::Cookie, key: 'rack.session',
179
179
  path: '/',
180
+ secure: true,
181
+ same_site: 'None',
180
182
  secret: app.settings.secret,
181
183
  expire_after: 60 * 30 # half an hour in seconds
182
184
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'shopify-sinatra-app'
3
- s.version = '0.8.0'
3
+ s.version = '0.9.0'
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'
@@ -19,8 +19,9 @@ Gem::Specification.new do |s|
19
19
  s.add_runtime_dependency 'activesupport'
20
20
  s.add_runtime_dependency 'attr_encrypted', '~> 3.1.0'
21
21
 
22
- s.add_runtime_dependency 'shopify_api', '~> 7.0.1'
22
+ s.add_runtime_dependency 'shopify_api', '>= 7.0.1', '< 9.1.0'
23
23
  s.add_runtime_dependency 'omniauth-shopify-oauth2'
24
+ s.add_runtime_dependency 'browser_sniffer', '~> 1.1.3'
24
25
 
25
26
  s.add_development_dependency 'rake'
26
27
  s.add_development_dependency 'sqlite3'
data/test.sh CHANGED
@@ -6,5 +6,8 @@ bundle install
6
6
  bundle exec rake db:migrate
7
7
  bundle exec rake test:prepare
8
8
  bundle exec rake test
9
+ EXIT_CODE=$?
9
10
 
10
11
  cd ../../..
12
+
13
+ exit $EXIT_CODE
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: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Hughes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-26 00:00:00.000000000 Z
11
+ date: 2020-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -84,16 +84,22 @@ dependencies:
84
84
  name: shopify_api
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: 7.0.1
90
+ - - "<"
91
+ - !ruby/object:Gem::Version
92
+ version: 9.1.0
90
93
  type: :runtime
91
94
  prerelease: false
92
95
  version_requirements: !ruby/object:Gem::Requirement
93
96
  requirements:
94
- - - "~>"
97
+ - - ">="
95
98
  - !ruby/object:Gem::Version
96
99
  version: 7.0.1
100
+ - - "<"
101
+ - !ruby/object:Gem::Version
102
+ version: 9.1.0
97
103
  - !ruby/object:Gem::Dependency
98
104
  name: omniauth-shopify-oauth2
99
105
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +114,20 @@ dependencies:
108
114
  - - ">="
109
115
  - !ruby/object:Gem::Version
110
116
  version: '0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: browser_sniffer
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: 1.1.3
124
+ type: :runtime
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: 1.1.3
111
131
  - !ruby/object:Gem::Dependency
112
132
  name: rake
113
133
  requirement: !ruby/object:Gem::Requirement
@@ -250,8 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
270
  - !ruby/object:Gem::Version
251
271
  version: '0'
252
272
  requirements: []
253
- rubyforge_project:
254
- rubygems_version: 2.7.6
273
+ rubygems_version: 3.0.3
255
274
  signing_key:
256
275
  specification_version: 4
257
276
  summary: A classy shopify app