shopify-cli 2.6.0 → 2.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9bf62139d7f6ea0c4e88417521bd981c28c0823950768c3350410f2c8666e35
4
- data.tar.gz: a15af494f4dbbcb6e2b8c276e34fb1347e3142f59d5646e80370199ddc6d0bce
3
+ metadata.gz: 519cb54ace25231ba49785408b84edc9aeca12d5aafabb6d3d03c73ffb571d92
4
+ data.tar.gz: 8614d8f8e102da27e0387cb746d74e036d66267d1b660f7997ca36aba202f73a
5
5
  SHA512:
6
- metadata.gz: f4dbceb0f0d41f605bb3be605e54eae58868d83e86fe7cd0476dc0193c7e2cf7369fa86a8d5d2a2070711f54dd03b02b2200bc844f02b42be9297178095f2106
7
- data.tar.gz: 2c75055724e3fce904caca22f974f9cbc87bf10bfb9388f5227a227799f8b6c7e33aece62d7301cfde366d69fcc27832256e1da791e2dc4ca7f85d02f7c41191
6
+ metadata.gz: 7b65eea14dd893650bacc43d468072c04d74f54ca0d0443884bed125e9d45bc604823d9e50e36d3142f34dd6d98b61b023d192ea520d18a678c09e7fcab0ac85
7
+ data.tar.gz: 0d6120c8b28f9eb21fa244fa82238e8c008586e50da5c4587ef2d29bc0724e45e175b651559c3513da2c74246ae8c87566feca71ccc405256dd38303dfb76ee6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  Unreleased
2
2
  ------
3
+ Version 2.6.1
4
+ ------
5
+
6
+ * [#1608](https://github.com/Shopify/shopify-cli/pull/1608): Fix errors not being reported.
3
7
 
4
8
  Version 2.6.0
5
9
  ------
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shopify-cli (2.6.0)
4
+ shopify-cli (2.6.1)
5
5
  bugsnag (~> 6.22)
6
6
  listen (~> 3.7.0)
7
7
  theme-check (~> 1.7)
data/README.md CHANGED
@@ -85,7 +85,7 @@ When prompted, open the provided accounts.shopify.com URL in a browser. In your
85
85
 
86
86
  Run:
87
87
 
88
- `shopify theme create`
88
+ `shopify theme init`
89
89
 
90
90
  To initialize a theme on your current working directory. This will actually clone Shopify's starter theme which you should use as a reference when building themes for Shopify.
91
91
 
data/bin/shopify CHANGED
@@ -37,6 +37,7 @@ exit(proc do
37
37
  ShopifyCLI::Core::EntryPoint.call(ARGV.dup)
38
38
  end
39
39
  rescue StandardError => error
40
+ ShopifyCLI::ErrorHandler.exception = error
40
41
  if ShopifyCLI::Environment.print_stacktrace?
41
42
  raise error
42
43
  else
@@ -1,4 +1,5 @@
1
1
  require "shopify_cli"
2
+ require "securerandom"
2
3
 
3
4
  module ShopifyCLI
4
5
  class API
@@ -54,6 +55,7 @@ module ShopifyCLI
54
55
  # we delay this require so as to avoid a performance hit on starting the CLI
55
56
  require "shopify_cli/http_request"
56
57
  headers = default_headers.merge(headers)
58
+ ctx.debug("#{method} #{uri} with X-Request-Id: #{headers["X-Request-Id"]}")
57
59
  response = if method == "POST"
58
60
  HttpRequest.post(uri, body, headers)
59
61
  elsif method == "PUT"
@@ -82,6 +84,7 @@ module ShopifyCLI
82
84
  raise APIRequestUnexpectedError.new("#{response.code}\n#{response.body}", response: response)
83
85
  end
84
86
  rescue Errno::ETIMEDOUT, Timeout::Error
87
+ ctx.debug("timeout in #{method} #{uri} with X-Request-Id: #{headers["X-Request-Id"]}")
85
88
  raise APIRequestTimeoutError.new("Timeout")
86
89
  end.retry_after(APIRequestRetriableError, retries: 3) do |e|
87
90
  sleep(1) if e.is_a?(APIRequestThrottledError)
@@ -109,6 +112,7 @@ module ShopifyCLI
109
112
  "User-Agent" => "Shopify CLI; v=#{ShopifyCLI::VERSION}",
110
113
  "Sec-CH-UA" => "Shopify CLI; v=#{ShopifyCLI::VERSION} sha=#{ShopifyCLI.sha}",
111
114
  "Sec-CH-UA-PLATFORM" => ctx.os.to_s,
115
+ "X-Request-Id" => SecureRandom.uuid,
112
116
  }.tap do |headers|
113
117
  headers["X-Shopify-Cli-Employee"] = "1" if Shopifolk.acting_as_shopify_organization?
114
118
  end.merge(auth_headers(token))
@@ -1,3 +1,3 @@
1
1
  module ShopifyCLI
2
- VERSION = "2.6.0"
2
+ VERSION = "2.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify