shopify-cli 2.15.3 → 2.15.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/ext/shopify-extensions/version +1 -1
- data/lib/project_types/extension/cli.rb +4 -0
- data/lib/project_types/extension/forms/questions/ask_template.rb +1 -2
- data/lib/project_types/extension/models/specification_handlers/theme_app_extension.rb +4 -1
- data/lib/shopify_cli/messages/messages.rb +2 -6
- data/lib/shopify_cli/tunnel.rb +3 -13
- data/lib/shopify_cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e3d4c1b037556e97ff23087c72d0396c693631115b7ce98d693a7b943cdc82f
|
4
|
+
data.tar.gz: aafbc59f2c6cda56df352d9624abff4cb0b7c33fab2a72fae68ffbee78b45208
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7baae7341bb50950b4d586f001c3a6674486b0968091f9c8e1d8ba7f1a5ae52a67a9ef36f64e251da6f26a8aee4906bc7bcbdccf94798b69b3361d24c3488525
|
7
|
+
data.tar.gz: 156d36c1f175d9028209f050b74330b17e325fb76cb1c7b6f3f0c2f81fe55d4335300573f612e1780b45db800ad4d91df79cc0d905f4b7973dc4808f27ba6ee3
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@ From version 2.6.0, the sections in this file adhere to the [keep a changelog](h
|
|
2
2
|
|
3
3
|
## [Unreleased]
|
4
4
|
|
5
|
+
## Version 2.15.4 - 2022-04-08
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
* [#2230](https://github.com/Shopify/shopify-cli/pull/2230): Show an error without ngrok account
|
9
|
+
* [#2235](https://github.com/Shopify/shopify-cli/pull/2235): Update shopify-extensions to v0.3.0 and fix issues with template choosing and missing dependencies
|
10
|
+
* [#2226](https://github.com/Shopify/shopify-cli/pull/2226): Fix liquid file size validation to disclude locales directory
|
11
|
+
|
5
12
|
## Version 2.15.3 - 2022-04-07
|
6
13
|
|
7
14
|
### Changed
|
data/Gemfile.lock
CHANGED
@@ -1 +1 @@
|
|
1
|
-
v0.
|
1
|
+
v0.3.0
|
@@ -21,8 +21,7 @@ module Extension
|
|
21
21
|
|
22
22
|
def template_required?(project_details)
|
23
23
|
type = project_details&.type&.identifier
|
24
|
-
|
25
|
-
Models::DevelopmentServerRequirements.type_supported?(type.downcase))
|
24
|
+
Models::DevelopmentServerRequirements.supported?(type)
|
26
25
|
end
|
27
26
|
|
28
27
|
def choose_interactively
|
@@ -38,7 +38,10 @@ module Extension
|
|
38
38
|
# Other assets should be treated as UTF-8 encoded text
|
39
39
|
mode = "rt"
|
40
40
|
encoding = "UTF-8"
|
41
|
-
|
41
|
+
|
42
|
+
if dirname == "snippets" || dirname == "blocks"
|
43
|
+
current_liquid_size += File.size(filename)
|
44
|
+
end
|
42
45
|
end
|
43
46
|
current_size += File.size(filename)
|
44
47
|
if current_size > BUNDLE_SIZE_LIMIT
|
@@ -760,16 +760,12 @@ module ShopifyCLI
|
|
760
760
|
" package manager for your system.",
|
761
761
|
ngrok: "Something went wrong with ngrok installation,"\
|
762
762
|
"please make sure %s exists within %s before trying again",
|
763
|
+
signup_required: "A free ngrok account is required: {{underline:https://ngrok.com/signup}}. After you "\
|
764
|
+
"signup, install your personal authorization token using {{command:%s app tunnel auth <token>}}.",
|
763
765
|
},
|
764
766
|
installing: "Installing ngrok…",
|
765
767
|
not_running: "{{green:x}} ngrok tunnel not running",
|
766
768
|
prereq_command_location: "%s @ %s",
|
767
|
-
signup_suggestion: <<~MESSAGE,
|
768
|
-
{{*}} To avoid tunnels that timeout, it is recommended to signup for a free ngrok
|
769
|
-
account at {{underline:https://ngrok.com/signup}}. After you signup, install your
|
770
|
-
personalized authorization token using {{command:%s app tunnel auth <token>}}.
|
771
|
-
MESSAGE
|
772
|
-
start: "{{v}} ngrok tunnel running at {{underline:%s}}",
|
773
769
|
start_with_account: "{{v}} ngrok tunnel running at {{underline:%s}}, with account %s",
|
774
770
|
stopped: "{{green:x}} ngrok tunnel stopped",
|
775
771
|
timed_out: "{{x}} ngrok tunnel has timed out, restarting…",
|
data/lib/shopify_cli/tunnel.rb
CHANGED
@@ -66,14 +66,9 @@ module ShopifyCLI
|
|
66
66
|
#
|
67
67
|
def start(ctx, port: PORT)
|
68
68
|
install(ctx)
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
else
|
73
|
-
url, _ = restart_ngrok(ctx, port)
|
74
|
-
ctx.puts(ctx.message("core.tunnel.start", url))
|
75
|
-
ctx.puts(ctx.message("core.tunnel.signup_suggestion", ShopifyCLI::TOOL_NAME))
|
76
|
-
end
|
69
|
+
ctx.abort(ctx.message("core.tunnel.error.signup_required", ShopifyCLI::TOOL_NAME)) unless authenticated?
|
70
|
+
url, account = start_ngrok(ctx, port)
|
71
|
+
ctx.puts(ctx.message("core.tunnel.start_with_account", url, account))
|
77
72
|
url
|
78
73
|
end
|
79
74
|
|
@@ -208,11 +203,6 @@ module ShopifyCLI
|
|
208
203
|
[log.url, log.account]
|
209
204
|
end
|
210
205
|
|
211
|
-
def restart_ngrok(ctx, port)
|
212
|
-
ShopifyCLI::ProcessSupervision.stop(:ngrok)
|
213
|
-
start_ngrok(ctx, port)
|
214
|
-
end
|
215
|
-
|
216
206
|
def check_prereq_command(ctx, command)
|
217
207
|
cmd_path = ctx.which(command)
|
218
208
|
ctx.abort(ctx.message("core.tunnel.error.prereq_command_required", command)) if cmd_path.nil?
|
data/lib/shopify_cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.15.
|
4
|
+
version: 2.15.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|