shopify_app 12.0.7 → 13.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/README.md +44 -19
  4. data/app/controllers/concerns/shopify_app/authenticated.rb +1 -1
  5. data/app/controllers/shopify_app/callback_controller.rb +14 -10
  6. data/app/controllers/shopify_app/sessions_controller.rb +27 -4
  7. data/lib/generators/shopify_app/home_controller/templates/index.html.erb +1 -1
  8. data/lib/generators/shopify_app/install/templates/embedded_app.html.erb +1 -1
  9. data/lib/generators/shopify_app/install/templates/shopify_app.rb +1 -1
  10. data/lib/generators/shopify_app/install/templates/shopify_provider.rb +1 -1
  11. data/lib/generators/shopify_app/shop_model/shop_model_generator.rb +1 -1
  12. data/lib/generators/shopify_app/shop_model/templates/shop.rb +1 -1
  13. data/lib/generators/shopify_app/user_model/templates/user.rb +1 -1
  14. data/lib/generators/shopify_app/user_model/user_model_generator.rb +1 -1
  15. data/lib/shopify_app.rb +4 -2
  16. data/lib/shopify_app/configuration.rb +10 -7
  17. data/lib/shopify_app/controller_concerns/login_protection.rb +25 -20
  18. data/lib/shopify_app/session/in_memory_shop_session_store.rb +4 -0
  19. data/lib/shopify_app/session/in_memory_user_session_store.rb +4 -0
  20. data/lib/shopify_app/session/session_repository.rb +38 -13
  21. data/lib/shopify_app/session/session_storage.rb +0 -10
  22. data/lib/shopify_app/session/{storage_strategies/shop_storage_strategy.rb → shop_session_storage.rb} +9 -2
  23. data/lib/shopify_app/session/{storage_strategies/user_storage_strategy.rb → user_session_storage.rb} +10 -3
  24. data/lib/shopify_app/version.rb +1 -1
  25. data/package-lock.json +1228 -1207
  26. data/package.json +1 -1
  27. data/shopify_app.gemspec +2 -2
  28. metadata +10 -8
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopify_app",
3
- "version": "12.0.5",
3
+ "version": "13.0.0",
4
4
  "repository": "git@github.com:Shopify/shopify_app.git",
5
5
  "author": "Shopify",
6
6
  "license": "MIT",
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.add_runtime_dependency('browser_sniffer', '~> 1.2.0')
14
14
  s.add_runtime_dependency('rails', '> 5.2.1')
15
- s.add_runtime_dependency('shopify_api', '~> 9.0.1')
16
- s.add_runtime_dependency('omniauth-shopify-oauth2', '~> 2.2.0')
15
+ s.add_runtime_dependency('shopify_api', '~> 9.0.2')
16
+ s.add_runtime_dependency('omniauth-shopify-oauth2', '~> 2.2.2')
17
17
 
18
18
  s.add_development_dependency('rake')
19
19
  s.add_development_dependency('byebug')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.0.7
4
+ version: 13.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-03 00:00:00.000000000 Z
11
+ date: 2020-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: browser_sniffer
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 9.0.1
47
+ version: 9.0.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 9.0.1
54
+ version: 9.0.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: omniauth-shopify-oauth2
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.2.0
61
+ version: 2.2.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.2.0
68
+ version: 2.2.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -339,10 +339,12 @@ files:
339
339
  - lib/shopify_app/managers/webhooks_manager.rb
340
340
  - lib/shopify_app/middleware/same_site_cookie_middleware.rb
341
341
  - lib/shopify_app/session/in_memory_session_store.rb
342
+ - lib/shopify_app/session/in_memory_shop_session_store.rb
343
+ - lib/shopify_app/session/in_memory_user_session_store.rb
342
344
  - lib/shopify_app/session/session_repository.rb
343
345
  - lib/shopify_app/session/session_storage.rb
344
- - lib/shopify_app/session/storage_strategies/shop_storage_strategy.rb
345
- - lib/shopify_app/session/storage_strategies/user_storage_strategy.rb
346
+ - lib/shopify_app/session/shop_session_storage.rb
347
+ - lib/shopify_app/session/user_session_storage.rb
346
348
  - lib/shopify_app/utils.rb
347
349
  - lib/shopify_app/version.rb
348
350
  - package-lock.json