shopify_app 12.0.0 → 13.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/README.md +67 -20
  4. data/app/assets/javascripts/shopify_app/itp_helper.js +6 -6
  5. data/app/assets/javascripts/shopify_app/storage_access.js +35 -6
  6. data/app/controllers/concerns/shopify_app/authenticated.rb +1 -1
  7. data/app/controllers/shopify_app/callback_controller.rb +14 -10
  8. data/app/controllers/shopify_app/sessions_controller.rb +49 -13
  9. data/app/views/shopify_app/sessions/enable_cookies.html.erb +1 -1
  10. data/app/views/shopify_app/sessions/request_storage_access.html.erb +1 -1
  11. data/config/locales/pt-BR.yml +1 -1
  12. data/lib/generators/shopify_app/add_marketing_activity_extension/templates/marketing_activities_controller.rb +1 -5
  13. data/lib/generators/shopify_app/home_controller/templates/index.html.erb +1 -1
  14. data/lib/generators/shopify_app/install/templates/embedded_app.html.erb +1 -1
  15. data/lib/generators/shopify_app/install/templates/shopify_app.rb +1 -1
  16. data/lib/generators/shopify_app/install/templates/shopify_provider.rb +1 -1
  17. data/lib/generators/shopify_app/shop_model/shop_model_generator.rb +1 -1
  18. data/lib/generators/shopify_app/shop_model/templates/shop.rb +1 -1
  19. data/lib/generators/shopify_app/user_model/templates/user.rb +1 -1
  20. data/lib/generators/shopify_app/user_model/user_model_generator.rb +1 -1
  21. data/lib/shopify_app/configuration.rb +12 -9
  22. data/lib/shopify_app/controller_concerns/login_protection.rb +39 -22
  23. data/lib/shopify_app/engine.rb +1 -1
  24. data/lib/shopify_app/middleware/same_site_cookie_middleware.rb +18 -45
  25. data/lib/shopify_app/session/in_memory_shop_session_store.rb +4 -0
  26. data/lib/shopify_app/session/in_memory_user_session_store.rb +4 -0
  27. data/lib/shopify_app/session/session_repository.rb +38 -13
  28. data/lib/shopify_app/session/session_storage.rb +0 -10
  29. data/lib/shopify_app/session/{storage_strategies/shop_storage_strategy.rb → shop_session_storage.rb} +9 -2
  30. data/lib/shopify_app/session/{storage_strategies/user_storage_strategy.rb → user_session_storage.rb} +10 -3
  31. data/lib/shopify_app/version.rb +1 -1
  32. data/lib/shopify_app.rb +4 -2
  33. data/package-lock.json +1228 -1207
  34. data/package.json +2 -2
  35. data/shopify_app.gemspec +4 -4
  36. metadata +12 -10
data/package.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "name": "shopify_app",
3
+ "version": "13.0.0",
3
4
  "repository": "git@github.com:Shopify/shopify_app.git",
4
5
  "author": "Shopify",
5
6
  "license": "MIT",
@@ -23,6 +24,5 @@
23
24
  },
24
25
  "scripts": {
25
26
  "test": "./node_modules/.bin/karma start --browsers ChromeHeadless --single-run"
26
- },
27
- "version": "12.0.0"
27
+ }
28
28
  }
data/shopify_app.gemspec CHANGED
@@ -10,10 +10,10 @@ Gem::Specification.new do |s|
10
10
 
11
11
  s.required_ruby_version = ">= 2.3.1"
12
12
 
13
- s.add_runtime_dependency('browser_sniffer', '~> 1.1.3')
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')
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')
@@ -29,4 +29,4 @@ Gem::Specification.new do |s|
29
29
  s.files = `git ls-files`.split("\n").reject { |f| f.match(%r{^(test|example)/}) }
30
30
  s.test_files = `git ls-files -- {test}/*`.split("\n")
31
31
  s.require_paths = ["lib"]
32
- end
32
+ end
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.0
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-01-29 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
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.3
19
+ version: 1.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.1.3
26
+ version: 1.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '9.0'
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'
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