From efac36a916d6840842bac1453b897ba9551c894e Mon Sep 17 00:00:00 2001 From: Gonzalo Riestra Date: Wed, 9 Feb 2022 15:10:13 +0100 Subject: [PATCH 1/2] Packaging for release v2.11.1 --- CHANGELOG.md | 3 ++- Gemfile.lock | 2 +- lib/project_types/extension/models/specifications.rb | 2 ++ lib/shopify_cli/partners_api.rb | 8 ++++++-- lib/shopify_cli/version.rb | 2 +- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae92c19955..b95c248ac5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,14 @@ From version 2.6.0, the sections in this file adhere to the [keep a changelog](https://keepachangelog.com/en/1.0.0/) specification. ## [Unreleased] + +## Version 2.11.1 ### Fixed * [#1973](https://github.com/Shopify/shopify-cli/pull/1973): Fix `theme serve` to preview generated files (`*.css.liquid`) * [#2033](https://github.com/Shopify/shopify-cli/pull/2033): Pin Homebrew Ruby to 3.0 * [#2032](https://github.com/Shopify/shopify-cli/pull/2032): Runtime error checking the Node version if Node is not present in the environment. ## Version 2.11.0 - ### Fixed * [#2005](https://github.com/Shopify/shopify-cli/pull/2005): Fix PHP app serve on Windows environments diff --git a/Gemfile.lock b/Gemfile.lock index 1d328c4832..be3d9d1877 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - shopify-cli (2.11.0) + shopify-cli (2.11.1) bugsnag (~> 6.22) listen (~> 3.7.0) theme-check (~> 1.9.0) diff --git a/lib/project_types/extension/models/specifications.rb b/lib/project_types/extension/models/specifications.rb index dc28602d8a..7c1d8cc16d 100644 --- a/lib/project_types/extension/models/specifications.rb +++ b/lib/project_types/extension/models/specifications.rb @@ -19,6 +19,8 @@ def [](identifier) end def valid?(identifier) + p identifier + p handlers handlers.key?(identifier) end diff --git a/lib/shopify_cli/partners_api.rb b/lib/shopify_cli/partners_api.rb index 7efe4b1804..532c007745 100644 --- a/lib/shopify_cli/partners_api.rb +++ b/lib/shopify_cli/partners_api.rb @@ -65,10 +65,14 @@ def partners_url_for(organization_id, api_client_id) def api_client(ctx) identity_auth = ShopifyCLI::IdentityAuth.new(ctx: ctx) + token = identity_auth.fetch_or_auth_partners_token + url = "https://#{Environment.partners_domain}/api/cli/graphql" + p "token: #{token}" + p "url: #{url}" new( ctx: ctx, - token: identity_auth.fetch_or_auth_partners_token, - url: "https://#{Environment.partners_domain}/api/cli/graphql", + token: token, + url: url, ) end diff --git a/lib/shopify_cli/version.rb b/lib/shopify_cli/version.rb index 31cafe20b9..613008cbfb 100644 --- a/lib/shopify_cli/version.rb +++ b/lib/shopify_cli/version.rb @@ -1,3 +1,3 @@ module ShopifyCLI - VERSION = "2.11.0" + VERSION = "2.11.1" end From 1d33e4fbba888b61212b071d1e206d794c55d59e Mon Sep 17 00:00:00 2001 From: Gonzalo Riestra Date: Wed, 9 Feb 2022 15:43:54 +0100 Subject: [PATCH 2/2] Remove some prints --- lib/project_types/extension/models/specifications.rb | 2 -- lib/shopify_cli/partners_api.rb | 8 ++------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/project_types/extension/models/specifications.rb b/lib/project_types/extension/models/specifications.rb index 7c1d8cc16d..dc28602d8a 100644 --- a/lib/project_types/extension/models/specifications.rb +++ b/lib/project_types/extension/models/specifications.rb @@ -19,8 +19,6 @@ def [](identifier) end def valid?(identifier) - p identifier - p handlers handlers.key?(identifier) end diff --git a/lib/shopify_cli/partners_api.rb b/lib/shopify_cli/partners_api.rb index 532c007745..7efe4b1804 100644 --- a/lib/shopify_cli/partners_api.rb +++ b/lib/shopify_cli/partners_api.rb @@ -65,14 +65,10 @@ def partners_url_for(organization_id, api_client_id) def api_client(ctx) identity_auth = ShopifyCLI::IdentityAuth.new(ctx: ctx) - token = identity_auth.fetch_or_auth_partners_token - url = "https://#{Environment.partners_domain}/api/cli/graphql" - p "token: #{token}" - p "url: #{url}" new( ctx: ctx, - token: token, - url: url, + token: identity_auth.fetch_or_auth_partners_token, + url: "https://#{Environment.partners_domain}/api/cli/graphql", ) end