spree_api 4.4.0.rc2 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/spree/webhooks/has_webhooks.rb +3 -1
- data/lib/spree/api/engine.rb +0 -7
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1802b10c520208b262e97e6b9e174ff2c3dcb7176f9f73842826c560c7dee71b
|
4
|
+
data.tar.gz: c4516614a3bee3a7392c1ae213f3e8c2e9945b1ffe04eceb82ff925a7e52d62b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bd20ff5548f56f27295e768e7a54744fe5274fb27ac636337ccc2dcdb79e5257479cc8b4f4c81f2f8827e65a4f809f54b01e0796fa74b4003d956922abb7b92
|
7
|
+
data.tar.gz: df44b43a9b23c235772ba76603546a9dec7037d126b1e0998ccd34c6ceedb8ddb126a3099e197118cb9881c67d911b18035464f58a61c665bf2f764dace0fbdf
|
@@ -9,8 +9,10 @@ module Spree
|
|
9
9
|
after_update_commit(proc { queue_webhooks_requests!(inferred_event_name(:update)) })
|
10
10
|
|
11
11
|
def queue_webhooks_requests!(event_name)
|
12
|
-
return if disable_spree_webhooks?
|
12
|
+
return if disable_spree_webhooks?
|
13
|
+
return if Spree::Webhooks::Subscriber.active.with_urls_for(event_name).none?
|
13
14
|
return if update_event?(event_name) && updating_only_timestamps?
|
15
|
+
return if webhook_payload_body.blank?
|
14
16
|
|
15
17
|
Spree::Webhooks::Subscribers::QueueRequests.call(event_name: event_name, webhook_payload_body: webhook_payload_body)
|
16
18
|
end
|
data/lib/spree/api/engine.rb
CHANGED
@@ -15,13 +15,6 @@ module Spree
|
|
15
15
|
Migrations.new(config, engine_name).check
|
16
16
|
end
|
17
17
|
|
18
|
-
initializer 'spree.api.checking_deprecated_preferences' do
|
19
|
-
Spree::Api::Config.deprecated_preferences.each do |pref|
|
20
|
-
# FIXME: we should only notify about deprecated preferences that are in use, not all of them
|
21
|
-
# warn "[DEPRECATION] Spree::Api::Config[:#{pref[:name]}] is deprecated. #{pref[:message]}"
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
18
|
def self.activate
|
26
19
|
[
|
27
20
|
Spree::Address, Spree::Asset, Spree::CmsPage, Spree::CreditCard, Spree::CustomerReturn,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.4.0
|
4
|
+
version: 4.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Bigg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n-tasks
|
@@ -148,14 +148,14 @@ dependencies:
|
|
148
148
|
requirements:
|
149
149
|
- - '='
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: 4.4.0
|
151
|
+
version: 4.4.0
|
152
152
|
type: :runtime
|
153
153
|
prerelease: false
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - '='
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: 4.4.0
|
158
|
+
version: 4.4.0
|
159
159
|
description: Spree's API
|
160
160
|
email:
|
161
161
|
- ryan@spreecommerce.com
|
@@ -559,9 +559,9 @@ licenses:
|
|
559
559
|
- BSD-3-Clause
|
560
560
|
metadata:
|
561
561
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
562
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v4.4.0
|
562
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v4.4.0
|
563
563
|
documentation_uri: https://dev-docs.spreecommerce.org/
|
564
|
-
source_code_uri: https://github.com/spree/spree/tree/v4.4.0
|
564
|
+
source_code_uri: https://github.com/spree/spree/tree/v4.4.0
|
565
565
|
post_install_message:
|
566
566
|
rdoc_options: []
|
567
567
|
require_paths:
|
@@ -573,9 +573,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
573
573
|
version: '2.5'
|
574
574
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
575
575
|
requirements:
|
576
|
-
- - "
|
576
|
+
- - ">="
|
577
577
|
- !ruby/object:Gem::Version
|
578
|
-
version:
|
578
|
+
version: '0'
|
579
579
|
requirements: []
|
580
580
|
rubygems_version: 3.2.32
|
581
581
|
signing_key:
|