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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/shopify_api/auth/oauth.rb +1 -1
- data/lib/shopify_api/clients/http_client.rb +1 -0
- data/lib/shopify_api/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1335ddc48bdc8e2685bc18f98b0a9dcc652d690e9ac6d4508e8ebfec2a3897ce
|
4
|
+
data.tar.gz: 81b5fc8734e1b4d3f0df35922570f61b5290e3de804845422070affc7b81577f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
@@ -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
|
data/lib/shopify_api/version.rb
CHANGED
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.
|
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:
|
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.
|
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: []
|