shopify_api 14.0.0 → 14.0.1

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: d335207bd3fc2cf7798f48f3b7a0ff9ea05c05969e189423a9cd89a06c9d155b
4
- data.tar.gz: 873f2d725e8e1b84e4d8fc617e1b9aa6d3ddec6a9791646a76fb2f946d39ac9b
3
+ metadata.gz: 0eceb8b083a02fd062ebc545e6d4a60b1b4c11fec77bead21bef052f1c184b0a
4
+ data.tar.gz: 6d47eb134e26c9536db9ee6225abf3edf00a07c15060aa6cae6d490b49347151
5
5
  SHA512:
6
- metadata.gz: 994fa799e6f84043aeec3ffd7c49789588299cf55d40de6bfe091b1b3d935fa99312666d78addb4238532345d6cae97d65f3785ef4fc38a576dfdc9eaa127ca9
7
- data.tar.gz: 2ff189f2ecb5bb7a9ead4852162857c6e13a29f5fa2229e15378b1ba05ff92cd9c0a3e663161f4f17285a843a88882b53a358c1070ca881e49ba185be98184e7
6
+ metadata.gz: 38fb4a844e00437ff2d2e93cc6c931c13ace7511aec1dcbf49585a6ea22a0f4db59cc472d46b257424645b20de2740600d8e429ed21435cf64448df6aea5f3e4
7
+ data.tar.gz: d3d4102189174b84791a7f0065bf633b548b4034fcff31305b7d350de3a3d07fdc7b6fe1a21dd8e7286583656d1bec7517ed4662aa429c17d00fcfdc9176eba2
@@ -6,35 +6,41 @@ labels: "Type: Bug 🐛"
6
6
 
7
7
  # Issue summary
8
8
 
9
- <!--
10
-
11
- Write a short description of the issue here. Please provide any details or logs that
12
- can help us debug it.
9
+ Before opening this issue, I have:
10
+
11
+ - [ ] Upgraded to the latest version of the package
12
+ - `shopify_api` version:
13
+ - Ruby version:
14
+ - Operating system:
15
+ - [ ] Set `log_level: :debug` [in my configuration](https://github.com/Shopify/shopify-api-ruby#setup-shopify-context), if applicable
16
+ - [ ] Found a reliable way to reproduce the problem that indicates it's a problem with the package
17
+ - [ ] Looked for similar issues in this repository
18
+ - [ ] Checked that this isn't an issue with a Shopify API
19
+ - If it is, please create a post in the [Shopify community forums](https://community.shopify.com/c/partners-and-developers/ct-p/appdev) or report it to [Shopify Partner Support](https://help.shopify.com/en/support/partners/org-select)
13
20
 
14
- Increase the logs as described in the README by setting log_level to :debug, and paste the relevant portion here.
15
-
16
- Learn more: https://github.com/Shopify/shopify-api-ruby#setup-shopify-context
21
+ <!--
22
+ Write a short description of the issue here.
17
23
 
24
+ We can only fix issues for which there is a clear reproduction scenario.
25
+ The more context you can provide, the easier it becomes for us to investigate and fix the issue.
18
26
  -->
19
27
 
20
- - `shopify_api` version:
21
- - Ruby version:
22
- - Operating system:
23
-
24
- ```
25
- // Paste any relevant logs here
26
- ```
27
-
28
28
  ## Expected behavior
29
29
 
30
- <!-- What do you think should happen? -->
30
+ What do you think should happen?
31
31
 
32
32
  ## Actual behavior
33
33
 
34
- <!-- What actually happens? -->
34
+ What actually happens?
35
35
 
36
36
  ## Steps to reproduce the problem
37
37
 
38
38
  1.
39
39
  1.
40
40
  1.
41
+
42
+ ## Debug logs
43
+
44
+ ```
45
+ // Paste any relevant logs here
46
+ ```
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ Note: For changes to the API, see https://shopify.dev/changelog?filter=api
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ ## 14.0.1
8
+ - [#1288](https://github.com/Shopify/shopify-api-ruby/pull/1288) Fix FeatureDeprecatedError being raised without a message.
9
+ - [1290](https://github.com/Shopify/shopify-api-ruby/pull/1290) Move deprecation of `ShopifyAPI::Webhooks::Handler#handle` to version 15.0.0
10
+
7
11
  ## 14.0.0
8
12
  - [#1274](https://github.com/Shopify/shopify-api-ruby/pull/1274) ⚠️ [Breaking] Update sorbet and rbi dependencies. Remove support for ruby 2.7. Minimum required Ruby version is 3.0
9
13
  - [#1282](https://github.com/Shopify/shopify-api-ruby/pull/1282) Fixes a bug where diffing attributes to update not take into account of Array changes and required ids.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shopify_api (14.0.0)
4
+ shopify_api (14.0.1)
5
5
  activesupport
6
6
  concurrent-ruby
7
7
  hash_diff
@@ -16,7 +16,7 @@ PATH
16
16
  GEM
17
17
  remote: https://rubygems.org/
18
18
  specs:
19
- activesupport (7.1.3)
19
+ activesupport (7.1.3.2)
20
20
  base64
21
21
  bigdecimal
22
22
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -37,8 +37,7 @@ GEM
37
37
  connection_pool (2.4.1)
38
38
  crack (0.4.5)
39
39
  rexml
40
- drb (2.2.0)
41
- ruby2_keywords
40
+ drb (2.2.1)
42
41
  erubi (1.12.0)
43
42
  fakefs (1.4.1)
44
43
  hash_diff (1.1.1)
@@ -46,10 +45,11 @@ GEM
46
45
  httparty (0.21.0)
47
46
  mini_mime (>= 1.0.0)
48
47
  multi_xml (>= 0.5.2)
49
- i18n (1.14.1)
48
+ i18n (1.14.4)
50
49
  concurrent-ruby (~> 1.0)
51
50
  json (2.6.2)
52
- jwt (2.7.1)
51
+ jwt (2.8.1)
52
+ base64
53
53
  method_source (1.0.0)
54
54
  mini_mime (1.1.5)
55
55
  minitest (5.15.0)
@@ -98,7 +98,6 @@ GEM
98
98
  rubocop-sorbet (0.6.11)
99
99
  rubocop (>= 0.90.0)
100
100
  ruby-progressbar (1.11.0)
101
- ruby2_keywords (0.0.5)
102
101
  securerandom (0.3.1)
103
102
  sorbet (0.5.11230)
104
103
  sorbet-static (= 0.5.11230)
@@ -18,10 +18,10 @@ If you want to register for an http webhook you need to implement a webhook hand
18
18
 
19
19
  ```ruby
20
20
  module WebhookHandler
21
- extend ShopifyAPI::Webhooks::Handler
21
+ extend ShopifyAPI::Webhooks::WebhookHandler
22
22
 
23
23
  class << self
24
- def handle_webhook(data)
24
+ def handle_webhook(data:)
25
25
  puts "Received webhook! topic: #{data.topic} shop: #{data.shop} body: #{data.body} webhook_id: #{data.webhook_id} api_version: #{data.api_version"
26
26
  end
27
27
  end
@@ -33,7 +33,7 @@ module ShopifyAPI
33
33
  def deprecated(message, version)
34
34
  return unless enabled_for_log_level?(:warn)
35
35
 
36
- raise Errors::FeatureDeprecatedError unless valid_version(version)
36
+ raise Errors::FeatureDeprecatedError, message unless valid_version(version)
37
37
 
38
38
  send_to_logger(:warn, message)
39
39
  end
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module ShopifyAPI
5
- VERSION = "14.0.0"
5
+ VERSION = "14.0.1"
6
6
  end
@@ -198,12 +198,12 @@ module ShopifyAPI
198
198
  body: request.parsed_body, api_version: request.api_version, webhook_id: request.webhook_id))
199
199
  else
200
200
  handler.handle(topic: request.topic, shop: request.shop, body: request.parsed_body)
201
- ShopifyAPI::Logger.deprecated(
202
- "DEPRECATED: Use ShopifyAPI::Webhooks::WebhookHandler#handle \
203
- instead of ShopifyAPI::Webhooks::Handler#handle.
204
- https://github.com/Shopify/shopify-api-ruby/blob/main/docs/usage/webhooks.md#create-a-webhook-handler",
205
- "14.0.0",
206
- )
201
+ warning = <<~WARNING
202
+ DEPRECATED: Use ShopifyAPI::Webhooks::WebhookHandler#handle instead of
203
+ ShopifyAPI::Webhooks::Handler#handle.
204
+ https://github.com/Shopify/shopify-api-ruby/blob/main/docs/usage/webhooks.md#create-a-webhook-handler
205
+ WARNING
206
+ ShopifyAPI::Logger.deprecated(warning, "15.0.0")
207
207
  end
208
208
  end
209
209
 
data/lib/shopify_api.rb CHANGED
@@ -16,6 +16,7 @@ require "concurrent"
16
16
 
17
17
  require_relative "shopify_api/inflector"
18
18
  require_relative "shopify_api/admin_versions"
19
+ require_relative "shopify_api/webhooks/handler"
19
20
 
20
21
  loader = Zeitwerk::Loader.for_gem
21
22
  loader.inflector = ShopifyAPI::Inflector.new(__FILE__)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.0.0
4
+ version: 14.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport