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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65225f0a5c01020f7d50c09468555157a52ffc8454b99e0937b63321c11b1e29
4
- data.tar.gz: 0cf0e22367baff564776329df08318aad4ab27b75b53f669b8f0a0c68d8ecbc8
3
+ metadata.gz: 725045ea714b214342c7f352d833d52122e036c03667edd999c6af314f547f00
4
+ data.tar.gz: ebec55c4fbd526fb0f22ee7fcd354f6aeb741bd1701bf2269274efb2b3a30233
5
5
  SHA512:
6
- metadata.gz: a3f3dc9ad0b7ae0915df9c16ab407f71a7394baa33cd8518b26caa562fbabbc4c5a8dbc6981f39cc725fb86b7f13eefdba1605c31b4854148531b4ccfc0e3266
7
- data.tar.gz: c58d7de83e14f54f07b9035cceb7c227ee7c1c6b623c73f3d26ce74700b1cccc383d7d17b9a1e265c7cbab5e6383d4e7921acee85f743b4d5349efe375baba55
6
+ metadata.gz: 4e7a97650c5972ad314f3229fa68a6dfbec7b62fc495328f56f5c135e562e24a145c37dfc519a27cf19eaaa8d704e309d6aa8ad01426a33175eaca4cdb2b12fd
7
+ data.tar.gz: 8643eccf9e858d202e88d562d1bded2071bc50b134b2bbfd077ca98e1d1ccd3eb447d4f8dbe94606370a7166d93c7b8de485fbfa26cfebf7b53832d80f314f85
data/.rubocop.yml CHANGED
@@ -1,4 +1,4 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-minitest
3
3
  - rubocop-performance
4
4
  - rubocop-rake
@@ -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] ||= Configuration.new
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FulfilApi
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.3"
5
5
  end
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.2
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-05-08 00:00:00.000000000 Z
11
+ date: 2025-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport