shopify_app 11.2.0 → 11.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -2
- data/CHANGELOG.md +30 -0
- data/README.md +116 -101
- data/app/controllers/concerns/shopify_app/authenticated.rb +1 -1
- data/app/controllers/shopify_app/callback_controller.rb +8 -2
- data/config/locales/de.yml +3 -3
- data/config/locales/nl.yml +7 -7
- data/config/locales/pt-BR.yml +5 -5
- data/lib/generators/shopify_app/add_marketing_activity_extension/add_marketing_activity_extension_generator.rb +39 -0
- data/lib/generators/shopify_app/add_marketing_activity_extension/templates/marketing_activities_controller.rb +66 -0
- data/lib/generators/shopify_app/install/install_generator.rb +20 -9
- data/lib/generators/shopify_app/install/templates/embedded_app.html.erb +5 -1
- data/lib/generators/shopify_app/install/templates/shopify_app_index.js +2 -0
- data/lib/generators/shopify_app/install/templates/shopify_provider.rb +1 -0
- data/lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb +16 -0
- data/lib/generators/shopify_app/user_model/templates/user.rb +7 -0
- data/lib/generators/shopify_app/user_model/templates/users.yml +4 -0
- data/lib/generators/shopify_app/user_model/user_model_generator.rb +38 -0
- data/lib/shopify_app.rb +46 -29
- data/lib/shopify_app/configuration.rb +8 -0
- data/lib/shopify_app/controller_concerns/login_protection.rb +22 -3
- data/lib/shopify_app/controllers/extension_verification_controller.rb +18 -0
- data/lib/shopify_app/session/in_memory_session_store.rb +1 -1
- data/lib/shopify_app/session/session_repository.rb +2 -2
- data/lib/shopify_app/session/session_storage.rb +14 -15
- data/lib/shopify_app/session/storage_strategies/shop_storage_strategy.rb +24 -0
- data/lib/shopify_app/session/storage_strategies/user_storage_strategy.rb +26 -0
- data/lib/shopify_app/version.rb +1 -1
- data/package-lock.json +1218 -1221
- data/package.json +1 -2
- data/service.yml +1 -1
- data/shopify_app.gemspec +5 -2
- data/yarn.lock +14 -14
- metadata +56 -4
data/package.json
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
{
|
2
2
|
"name": "shopify_app",
|
3
|
-
"version": "11.1.0",
|
4
3
|
"repository": "git@github.com:Shopify/shopify_app.git",
|
5
4
|
"author": "Shopify",
|
6
5
|
"license": "MIT",
|
@@ -20,7 +19,7 @@
|
|
20
19
|
"mocha-debug": "^0.0.1",
|
21
20
|
"sinon": "^7.4.2",
|
22
21
|
"sinon-chai": "^3.2.0",
|
23
|
-
"webpack": "^4.
|
22
|
+
"webpack": "^4.41.3"
|
24
23
|
},
|
25
24
|
"scripts": {
|
26
25
|
"test": "./node_modules/.bin/karma start --browsers ChromeHeadless --single-run"
|
data/service.yml
CHANGED
data/shopify_app.gemspec
CHANGED
@@ -10,7 +10,7 @@ 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.
|
13
|
+
s.add_runtime_dependency('browser_sniffer', '~> 1.1.3')
|
14
14
|
s.add_runtime_dependency('rails', '> 5.2.1')
|
15
15
|
s.add_runtime_dependency('shopify_api', '~> 8.0')
|
16
16
|
s.add_runtime_dependency('omniauth-shopify-oauth2', '~> 2.2.0')
|
@@ -18,6 +18,9 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.add_development_dependency('rake')
|
19
19
|
s.add_development_dependency('byebug')
|
20
20
|
s.add_development_dependency('pry')
|
21
|
+
s.add_development_dependency('pry-nav')
|
22
|
+
s.add_development_dependency('pry-stack_explorer')
|
23
|
+
s.add_development_dependency('rb-readline')
|
21
24
|
s.add_development_dependency('sqlite3', '~> 1.4')
|
22
25
|
s.add_development_dependency('minitest')
|
23
26
|
s.add_development_dependency('mocha')
|
@@ -26,4 +29,4 @@ Gem::Specification.new do |s|
|
|
26
29
|
s.files = `git ls-files`.split("\n").reject { |f| f.match(%r{^(test|example)/}) }
|
27
30
|
s.test_files = `git ls-files -- {test}/*`.split("\n")
|
28
31
|
s.require_paths = ["lib"]
|
29
|
-
end
|
32
|
+
end
|
data/yarn.lock
CHANGED
@@ -4360,10 +4360,10 @@ semver@^6.3.0:
|
|
4360
4360
|
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
|
4361
4361
|
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
|
4362
4362
|
|
4363
|
-
serialize-javascript@^1.
|
4364
|
-
version "1.
|
4365
|
-
resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-1.
|
4366
|
-
integrity sha512-
|
4363
|
+
serialize-javascript@^2.1.2:
|
4364
|
+
version "2.1.2"
|
4365
|
+
resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-2.1.2.tgz#ecec53b0e0317bdc95ef76ab7074b7384785fa61"
|
4366
|
+
integrity sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ==
|
4367
4367
|
|
4368
4368
|
set-blocking@^2.0.0, set-blocking@~2.0.0:
|
4369
4369
|
version "2.0.0"
|
@@ -4769,16 +4769,16 @@ tar@^4:
|
|
4769
4769
|
safe-buffer "^5.1.2"
|
4770
4770
|
yallist "^3.0.3"
|
4771
4771
|
|
4772
|
-
terser-webpack-plugin@^1.4.
|
4773
|
-
version "1.4.
|
4774
|
-
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.
|
4775
|
-
integrity sha512-
|
4772
|
+
terser-webpack-plugin@^1.4.3:
|
4773
|
+
version "1.4.3"
|
4774
|
+
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.3.tgz#5ecaf2dbdc5fb99745fd06791f46fc9ddb1c9a7c"
|
4775
|
+
integrity sha512-QMxecFz/gHQwteWwSo5nTc6UaICqN1bMedC5sMtUc7y3Ha3Q8y6ZO0iCR8pq4RJC8Hjf0FEPEHZqcMB/+DFCrA==
|
4776
4776
|
dependencies:
|
4777
4777
|
cacache "^12.0.2"
|
4778
4778
|
find-cache-dir "^2.1.0"
|
4779
4779
|
is-wsl "^1.1.0"
|
4780
4780
|
schema-utils "^1.0.0"
|
4781
|
-
serialize-javascript "^1.
|
4781
|
+
serialize-javascript "^2.1.2"
|
4782
4782
|
source-map "^0.6.1"
|
4783
4783
|
terser "^4.1.2"
|
4784
4784
|
webpack-sources "^1.4.0"
|
@@ -5083,10 +5083,10 @@ webpack-sources@^1.4.0, webpack-sources@^1.4.1:
|
|
5083
5083
|
source-list-map "^2.0.0"
|
5084
5084
|
source-map "~0.6.1"
|
5085
5085
|
|
5086
|
-
webpack@^4.
|
5087
|
-
version "4.
|
5088
|
-
resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.
|
5089
|
-
integrity sha512-
|
5086
|
+
webpack@^4.41.3:
|
5087
|
+
version "4.41.3"
|
5088
|
+
resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.41.3.tgz#cb7592c43080337dbc9be9e98fc6478eb3981026"
|
5089
|
+
integrity sha512-EcNzP9jGoxpQAXq1VOoTet0ik7/VVU1MovIfcUSAjLowc7GhcQku/sOXALvq5nPpSei2HF6VRhibeJSC3i/Law==
|
5090
5090
|
dependencies:
|
5091
5091
|
"@webassemblyjs/ast" "1.8.5"
|
5092
5092
|
"@webassemblyjs/helper-module-context" "1.8.5"
|
@@ -5108,7 +5108,7 @@ webpack@^4.40.2:
|
|
5108
5108
|
node-libs-browser "^2.2.1"
|
5109
5109
|
schema-utils "^1.0.0"
|
5110
5110
|
tapable "^1.1.3"
|
5111
|
-
terser-webpack-plugin "^1.4.
|
5111
|
+
terser-webpack-plugin "^1.4.3"
|
5112
5112
|
watchpack "^1.6.0"
|
5113
5113
|
webpack-sources "^1.4.1"
|
5114
5114
|
|
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: 11.
|
4
|
+
version: 11.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-07 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.
|
19
|
+
version: 1.1.3
|
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.
|
26
|
+
version: 1.1.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +108,48 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry-nav
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry-stack_explorer
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rb-readline
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
111
153
|
- !ruby/object:Gem::Dependency
|
112
154
|
name: sqlite3
|
113
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -239,6 +281,8 @@ files:
|
|
239
281
|
- karma.conf.js
|
240
282
|
- lib/generators/shopify_app/add_after_authenticate_job/add_after_authenticate_job_generator.rb
|
241
283
|
- lib/generators/shopify_app/add_after_authenticate_job/templates/after_authenticate_job.rb
|
284
|
+
- lib/generators/shopify_app/add_marketing_activity_extension/add_marketing_activity_extension_generator.rb
|
285
|
+
- lib/generators/shopify_app/add_marketing_activity_extension/templates/marketing_activities_controller.rb
|
242
286
|
- lib/generators/shopify_app/add_webhook/add_webhook_generator.rb
|
243
287
|
- lib/generators/shopify_app/add_webhook/templates/webhook_job.rb
|
244
288
|
- lib/generators/shopify_app/app_proxy_controller/app_proxy_controller_generator.rb
|
@@ -260,6 +304,7 @@ files:
|
|
260
304
|
- lib/generators/shopify_app/install/templates/session_store.rb
|
261
305
|
- lib/generators/shopify_app/install/templates/shopify_app.js
|
262
306
|
- lib/generators/shopify_app/install/templates/shopify_app.rb
|
307
|
+
- lib/generators/shopify_app/install/templates/shopify_app_index.js
|
263
308
|
- lib/generators/shopify_app/install/templates/shopify_provider.rb
|
264
309
|
- lib/generators/shopify_app/install/templates/user_agent.rb
|
265
310
|
- lib/generators/shopify_app/rotate_shopify_token_job/rotate_shopify_token_job_generator.rb
|
@@ -272,6 +317,10 @@ files:
|
|
272
317
|
- lib/generators/shopify_app/shop_model/templates/shop.rb
|
273
318
|
- lib/generators/shopify_app/shop_model/templates/shops.yml
|
274
319
|
- lib/generators/shopify_app/shopify_app_generator.rb
|
320
|
+
- lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
|
321
|
+
- lib/generators/shopify_app/user_model/templates/user.rb
|
322
|
+
- lib/generators/shopify_app/user_model/templates/users.yml
|
323
|
+
- lib/generators/shopify_app/user_model/user_model_generator.rb
|
275
324
|
- lib/generators/shopify_app/views/views_generator.rb
|
276
325
|
- lib/shopify_app.rb
|
277
326
|
- lib/shopify_app/configuration.rb
|
@@ -281,6 +330,7 @@ files:
|
|
281
330
|
- lib/shopify_app/controller_concerns/localization.rb
|
282
331
|
- lib/shopify_app/controller_concerns/login_protection.rb
|
283
332
|
- lib/shopify_app/controller_concerns/webhook_verification.rb
|
333
|
+
- lib/shopify_app/controllers/extension_verification_controller.rb
|
284
334
|
- lib/shopify_app/engine.rb
|
285
335
|
- lib/shopify_app/jobs/scripttags_manager_job.rb
|
286
336
|
- lib/shopify_app/jobs/webhooks_manager_job.rb
|
@@ -289,6 +339,8 @@ files:
|
|
289
339
|
- lib/shopify_app/session/in_memory_session_store.rb
|
290
340
|
- lib/shopify_app/session/session_repository.rb
|
291
341
|
- lib/shopify_app/session/session_storage.rb
|
342
|
+
- lib/shopify_app/session/storage_strategies/shop_storage_strategy.rb
|
343
|
+
- lib/shopify_app/session/storage_strategies/user_storage_strategy.rb
|
292
344
|
- lib/shopify_app/utils.rb
|
293
345
|
- lib/shopify_app/version.rb
|
294
346
|
- package-lock.json
|