shopify_api 14.9.0 → 14.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80e32598197d0d0becb6f4fb8175cd9f0b7ca5ad83763a5934a55ff7c8a3f769
4
- data.tar.gz: 38f4b87f9432966ac19017991fb85f8696e0adcd6e047378b3b6c2c35e088f66
3
+ metadata.gz: 1335ddc48bdc8e2685bc18f98b0a9dcc652d690e9ac6d4508e8ebfec2a3897ce
4
+ data.tar.gz: 81b5fc8734e1b4d3f0df35922570f61b5290e3de804845422070affc7b81577f
5
5
  SHA512:
6
- metadata.gz: 2be22dec439c86f297e71e19fa0fbc04f5bb31eb296fd0632567caee65874985b3595d4bf9e9452a09540cb76c302117413e397ba90342e590882b72fbcf7dc8
7
- data.tar.gz: 2d22864ebcb109ba38cef3a461696d7c7b19426c4f8e75b9041b3fc48e26af957a30a1dfa02895d7f2da1e000d44bf797ad5b7529ebd5240a1d19a56a8fa60df
6
+ metadata.gz: a95bcd321bd63920cbb024f1376df2038ca07c1d4fd0b3cadca57cb4b3d444b9a98e9f52abe6c73f44def95e3ffd0d0994d264fbc2c5dd65e992fb85a267ebba
7
+ data.tar.gz: 6bdbef00ed5ec79261cf5209cd78be839385dfc2493e6469d5b53a354220306ac1168ac1c41e5b01fc0cb86325af77e43d41afe8a7c6dbfe32602750cb762d2e
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  Note: For changes to the API, see https://shopify.dev/changelog?filter=api
4
4
  ## Unreleased
5
5
 
6
+ ## 14.10.0
7
+
8
+ - [#1374](https://github.com/Shopify/shopify-api-ruby/pull/1374) Fix edge cases for Shopify internal hosts
9
+
6
10
  ## 14.9.0
7
11
 
8
12
  - [#1362](https://github.com/Shopify/shopify-api-ruby/pull/1362) Add support for client credentials grant
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shopify_api (14.9.0)
4
+ shopify_api (14.10.0)
5
5
  activesupport
6
6
  concurrent-ruby
7
7
  hash_diff
@@ -111,7 +111,7 @@ module ShopifyAPI
111
111
 
112
112
  sig { params(shop: String).returns(String) }
113
113
  def auth_base_uri(shop)
114
- return "https://#{shop}/admin" unless defined?(DevServer)
114
+ return "https://#{shop}/admin" unless defined?(DevServer) && shop.include?(".my.shop.dev")
115
115
 
116
116
  # For first-party apps in development only, we leverage DevServer to build the admin base URI
117
117
  admin_web = T.unsafe(Object.const_get("DevServer")).new("web") # rubocop:disable Sorbet/ConstantsFromStrings
@@ -131,6 +131,7 @@ module ShopifyAPI
131
131
  def append_first_party_development_headers(headers, parsed_uri)
132
132
  return headers unless defined?(DevServer)
133
133
  return headers unless headers["Host"]&.include?(".my.shop.dev") || parsed_uri.host&.include?(".my.shop.dev")
134
+ return headers if headers["x-forwarded-host"]&.include?(".my.shop.dev")
134
135
 
135
136
  # These headers are only used for first party applications in development mode
136
137
  headers["x-forwarded-host"] = headers["Host"] || parsed_uri.host
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module ShopifyAPI
5
- VERSION = "14.9.0"
5
+ VERSION = "14.10.0"
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.9.0
4
+ version: 14.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-03 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport
@@ -1303,7 +1303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1303
1303
  - !ruby/object:Gem::Version
1304
1304
  version: '0'
1305
1305
  requirements: []
1306
- rubygems_version: 3.6.6
1306
+ rubygems_version: 3.6.8
1307
1307
  specification_version: 4
1308
1308
  summary: The gem for accessing the Shopify API
1309
1309
  test_files: []