fulfil_api 0.3.2 → 0.3.3
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/.rubocop.yml +1 -1
- data/lib/fulfil_api/configuration.rb +2 -1
- data/lib/fulfil_api/customer_shipment.rb +2 -2
- data/lib/fulfil_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 725045ea714b214342c7f352d833d52122e036c03667edd999c6af314f547f00
|
4
|
+
data.tar.gz: ebec55c4fbd526fb0f22ee7fcd354f6aeb741bd1701bf2269274efb2b3a30233
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e7a97650c5972ad314f3229fa68a6dfbec7b62fc495328f56f5c135e562e24a145c37dfc519a27cf19eaaa8d704e309d6aa8ad01426a33175eaca4cdb2b12fd
|
7
|
+
data.tar.gz: 8643eccf9e858d202e88d562d1bded2071bc50b134b2bbfd077ca98e1d1ccd3eb447d4f8dbe94606370a7166d93c7b8de485fbfa26cfebf7b53832d80f314f85
|
data/.rubocop.yml
CHANGED
@@ -45,7 +45,8 @@ module FulfilApi
|
|
45
45
|
#
|
46
46
|
# @return [Fulfil::Configuration] The current configuration object.
|
47
47
|
def self.configuration
|
48
|
-
Thread.current[:fulfil_api_configuration] ||=
|
48
|
+
Thread.current[:fulfil_api_configuration] ||=
|
49
|
+
@configuration ||= Configuration.new
|
49
50
|
end
|
50
51
|
|
51
52
|
# Allows the configuration of the gem in a thread-safe manner.
|
@@ -19,7 +19,7 @@ module FulfilApi
|
|
19
19
|
#
|
20
20
|
# @example Hold multipe customer shipments
|
21
21
|
# FulfilApi::CustomerShipment.hold([123, 456], note: "Double booking")
|
22
|
-
def hold!(id_or_ids, note:)
|
22
|
+
def hold!(id_or_ids, note:) # rubocop:disable Naming/PredicateMethod
|
23
23
|
FulfilApi.client.put("/model/#{MODEL_NAME}/hold", body: [[*id_or_ids].flatten, note])
|
24
24
|
true
|
25
25
|
end
|
@@ -37,7 +37,7 @@ module FulfilApi
|
|
37
37
|
#
|
38
38
|
# @example Unhold a customer shipment
|
39
39
|
# FulfilApi::CustomerShipment.unhold([123, 456], note: "All clear")
|
40
|
-
def unhold!(id_or_ids, note:)
|
40
|
+
def unhold!(id_or_ids, note:) # rubocop:disable Naming/PredicateMethod
|
41
41
|
FulfilApi.client.put("/model/#{MODEL_NAME}/unhold", body: [[*id_or_ids].flatten, note])
|
42
42
|
true
|
43
43
|
end
|
data/lib/fulfil_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fulfil_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Vermaas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|