shopify-cli 2.18.1 → 2.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/dev.yml +0 -1
- data/lib/project_types/extension/models/development_server_requirements.rb +1 -6
- data/lib/project_types/script/commands/create.rb +1 -1
- data/lib/project_types/script/config/extension_points.yml +15 -15
- data/lib/project_types/script/forms/ask_app.rb +0 -5
- data/lib/project_types/script/layers/domain/metadata.rb +3 -5
- data/lib/project_types/script/layers/infrastructure/script_service.rb +1 -1
- data/lib/shopify_cli/version.rb +1 -1
- data/shopify-cli.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b9c76cb4695f372d6c7466af04e48d99559d192a27b4dd5cc15b59e472cb373
|
4
|
+
data.tar.gz: 8157cfdb59c6028c981720d6612e6c93f09927eddb8555082b31338f6361c696
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ced373c7de01d36a939bc99de89fabaab7aabd80126ed51d12d233f3b15579eb256dc0da84bf63af1778434e4e9b24828c71e83018bf016608174941add9e266
|
7
|
+
data.tar.gz: 49c1a0a1f55ac07d91d504aadf98131327124dcceaa0d07f957bbdceb7039c3b2e840c96c6d87a80327846f9a26c7af27202e5d92375c0a1ede40407114ab100
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
shopify-cli (2.
|
4
|
+
shopify-cli (2.19.0)
|
5
5
|
bugsnag (~> 6.22)
|
6
6
|
listen (~> 3.7.0)
|
7
|
-
theme-check (~> 1.10.
|
7
|
+
theme-check (~> 1.10.3)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
@@ -108,7 +108,7 @@ GEM
|
|
108
108
|
faraday (>= 0.9)
|
109
109
|
sawyer (~> 0.8.0, >= 0.5.3)
|
110
110
|
parallel (1.21.0)
|
111
|
-
parser (3.1.
|
111
|
+
parser (3.1.2.0)
|
112
112
|
ast (~> 2.4.1)
|
113
113
|
pry (0.13.1)
|
114
114
|
coderay (~> 1.1)
|
@@ -150,7 +150,7 @@ GEM
|
|
150
150
|
faraday (> 0.8, < 2.0)
|
151
151
|
sys-uname (1.2.2)
|
152
152
|
ffi (~> 1.1)
|
153
|
-
theme-check (1.10.
|
153
|
+
theme-check (1.10.3)
|
154
154
|
liquid (>= 5.1.0)
|
155
155
|
nokogiri (>= 1.12)
|
156
156
|
parser (~> 3)
|
data/dev.yml
CHANGED
@@ -15,7 +15,7 @@ module Extension
|
|
15
15
|
|
16
16
|
class << self
|
17
17
|
def supported?(type)
|
18
|
-
if type_supported?(type) &&
|
18
|
+
if type_supported?(type) && beta_enabled?
|
19
19
|
return true if binary_installed?
|
20
20
|
warn_about_missing_binary
|
21
21
|
end
|
@@ -31,11 +31,6 @@ module Extension
|
|
31
31
|
SUPPORTED_EXTENSION_TYPES.include?(type.downcase)
|
32
32
|
end
|
33
33
|
|
34
|
-
# Some types are enabled unconditionally; others require beta_enabled
|
35
|
-
def type_enabled?(type)
|
36
|
-
beta_enabled? || "checkout_ui_extension" == type.downcase
|
37
|
-
end
|
38
|
-
|
39
34
|
private
|
40
35
|
|
41
36
|
def binary_installed?
|
@@ -25,7 +25,7 @@ module Script
|
|
25
25
|
project = Layers::Application::CreateScript.call(
|
26
26
|
ctx: @ctx,
|
27
27
|
language: options.flags[:language]&.downcase || "wasm",
|
28
|
-
sparse_checkout_branch: options.flags[:branch] || "
|
28
|
+
sparse_checkout_branch: options.flags[:branch] || "main",
|
29
29
|
title: form.title,
|
30
30
|
extension_point_type: form.extension_point,
|
31
31
|
)
|
@@ -4,57 +4,57 @@ payment_methods:
|
|
4
4
|
typescript:
|
5
5
|
beta: true
|
6
6
|
package: "@shopify/scripts-checkout-apis"
|
7
|
-
repo: "https://github.com/Shopify/
|
7
|
+
repo: "https://github.com/Shopify/function-examples"
|
8
8
|
wasm:
|
9
|
-
repo: "https://github.com/Shopify/
|
9
|
+
repo: "https://github.com/Shopify/function-examples"
|
10
10
|
rust:
|
11
|
-
repo: "https://github.com/Shopify/
|
11
|
+
repo: "https://github.com/Shopify/function-examples"
|
12
12
|
payment_customization:
|
13
13
|
beta: true
|
14
14
|
domain: 'checkout'
|
15
15
|
libraries:
|
16
16
|
wasm:
|
17
|
-
repo: "https://github.com/Shopify/
|
17
|
+
repo: "https://github.com/Shopify/function-examples"
|
18
18
|
rust:
|
19
|
-
repo: "https://github.com/Shopify/
|
19
|
+
repo: "https://github.com/Shopify/function-examples"
|
20
20
|
shipping_methods:
|
21
21
|
domain: 'checkout'
|
22
22
|
libraries:
|
23
23
|
typescript:
|
24
24
|
beta: true
|
25
25
|
package: "@shopify/scripts-checkout-apis"
|
26
|
-
repo: "https://github.com/Shopify/
|
26
|
+
repo: "https://github.com/Shopify/function-examples"
|
27
27
|
wasm:
|
28
|
-
repo: "https://github.com/Shopify/
|
28
|
+
repo: "https://github.com/Shopify/function-examples"
|
29
29
|
rust:
|
30
|
-
repo: "https://github.com/Shopify/
|
30
|
+
repo: "https://github.com/Shopify/function-examples"
|
31
31
|
product_discounts:
|
32
32
|
beta: true
|
33
33
|
domain: 'discounts'
|
34
34
|
libraries:
|
35
35
|
wasm:
|
36
|
-
repo: "https://github.com/Shopify/
|
36
|
+
repo: "https://github.com/Shopify/function-examples"
|
37
37
|
rust:
|
38
|
-
repo: "https://github.com/Shopify/
|
38
|
+
repo: "https://github.com/Shopify/function-examples"
|
39
39
|
order_discounts:
|
40
40
|
beta: true
|
41
41
|
domain: 'discounts'
|
42
42
|
libraries:
|
43
43
|
wasm:
|
44
|
-
repo: "https://github.com/Shopify/
|
44
|
+
repo: "https://github.com/Shopify/function-examples"
|
45
45
|
rust:
|
46
|
-
repo: "https://github.com/Shopify/
|
46
|
+
repo: "https://github.com/Shopify/function-examples"
|
47
47
|
shipping_discounts:
|
48
48
|
beta: true
|
49
49
|
domain: 'discounts'
|
50
50
|
libraries:
|
51
51
|
wasm:
|
52
|
-
repo: "https://github.com/Shopify/
|
52
|
+
repo: "https://github.com/Shopify/function-examples"
|
53
53
|
rust:
|
54
|
-
repo: "https://github.com/Shopify/
|
54
|
+
repo: "https://github.com/Shopify/function-examples"
|
55
55
|
shipping_rates_consolidation:
|
56
56
|
beta: true
|
57
57
|
domain: 'checkout'
|
58
58
|
libraries:
|
59
59
|
wasm:
|
60
|
-
repo: "https://github.com/Shopify/
|
60
|
+
repo: "https://github.com/Shopify/function-examples"
|
@@ -4,12 +4,11 @@ module Script
|
|
4
4
|
module Layers
|
5
5
|
module Domain
|
6
6
|
class Metadata
|
7
|
-
attr_reader :schema_major_version, :schema_minor_version
|
7
|
+
attr_reader :schema_major_version, :schema_minor_version
|
8
8
|
|
9
|
-
def initialize(schema_major_version, schema_minor_version
|
9
|
+
def initialize(schema_major_version, schema_minor_version)
|
10
10
|
@schema_major_version = schema_major_version
|
11
11
|
@schema_minor_version = schema_minor_version
|
12
|
-
@use_msgpack = use_msgpack
|
13
12
|
end
|
14
13
|
|
15
14
|
class << self
|
@@ -17,7 +16,6 @@ module Script
|
|
17
16
|
err_tag = nil
|
18
17
|
metadata_hash = JSON.parse(metadata_json)
|
19
18
|
|
20
|
-
use_msgpack = !!metadata_hash.dig("flags", "use_msgpack")
|
21
19
|
schema_versions = metadata_hash["schemaVersions"] || {}
|
22
20
|
|
23
21
|
version = schema_versions.values.first || {}
|
@@ -35,7 +33,7 @@ module Script
|
|
35
33
|
err_tag = "script.error.metadata_schema_versions_missing_minor"
|
36
34
|
end
|
37
35
|
|
38
|
-
Metadata.new(schema_major_version, schema_minor_version
|
36
|
+
Metadata.new(schema_major_version, schema_minor_version)
|
39
37
|
rescue JSON::ParserError
|
40
38
|
err_tag = "script.error.metadata_validation_cause"
|
41
39
|
ensure
|
@@ -90,7 +90,7 @@ module Script
|
|
90
90
|
)
|
91
91
|
elsif (errors = user_errors.filter { |err| err["tag"] == "input_query_validation_error" }).any?
|
92
92
|
raise Errors::InvalidInputQueryErrors, errors.map { |err| err["message"] }
|
93
|
-
elsif user_errors.find { |err| %w(
|
93
|
+
elsif user_errors.find { |err| %w(schema_version_argument_error).include?(err["tag"]) }
|
94
94
|
raise Domain::Errors::MetadataValidationError
|
95
95
|
elsif user_errors.find { |err| err["tag"] == "invalid_app_bridge_create_path" }
|
96
96
|
raise Errors::InvalidAppBridgePathError, "create"
|
data/lib/shopify_cli/version.rb
CHANGED
data/shopify-cli.gemspec
CHANGED
@@ -48,7 +48,7 @@ Gem::Specification.new do |spec|
|
|
48
48
|
# Whereas if we were to have "~> 1.9", that version would still be satisfied and thus not upgraded.
|
49
49
|
# Both shopify-cli and theme-check gems are owned and developed by Shopify.
|
50
50
|
# These gems are currently being actively developed and it's easiest to update them together.
|
51
|
-
spec.add_dependency("theme-check", "~> 1.10.
|
51
|
+
spec.add_dependency("theme-check", "~> 1.10.3")
|
52
52
|
|
53
53
|
spec.extensions = ["ext/shopify-extensions/extconf.rb"]
|
54
54
|
end
|
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.
|
4
|
+
version: 2.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -92,14 +92,14 @@ dependencies:
|
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 1.10.
|
95
|
+
version: 1.10.3
|
96
96
|
type: :runtime
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 1.10.
|
102
|
+
version: 1.10.3
|
103
103
|
description: |
|
104
104
|
Shopify CLI helps you build Shopify apps faster. It quickly scaffolds Node.js
|
105
105
|
and Ruby on Rails embedded apps. It also automates many common tasks in the
|
@@ -699,7 +699,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
699
699
|
- !ruby/object:Gem::Version
|
700
700
|
version: '0'
|
701
701
|
requirements: []
|
702
|
-
rubygems_version: 3.
|
702
|
+
rubygems_version: 3.3.3
|
703
703
|
signing_key:
|
704
704
|
specification_version: 4
|
705
705
|
summary: Shopify CLI helps you build Shopify apps faster.
|