smartystreets_ruby_sdk 7.3.0 → 7.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28599b31e31c16d357e1eed5707e76db2cfa42160f84f56ded56293340d88415
4
- data.tar.gz: 954e023ba758549b81d2b170ce083ce7f0d0df603d685ca82a0c2fba90e59c99
3
+ metadata.gz: b60b58e8728cb7cd3f9a9170df27c24152fc7d02ab4af4a179bad61b7eba03fe
4
+ data.tar.gz: f6745a6b43868516a748da2a8a78bdea8d0df8ed34b9cfa9038fb727aba72808
5
5
  SHA512:
6
- metadata.gz: c7cc4acddb8b5fb509747976c9081b42a1ba176307b0d62b7474096bbf55b3867541cb96076918cab5a7c9cbf8367e9d597b071a454ef23172bed50c8059bfa5
7
- data.tar.gz: 682ff5422e6d6e57db6535af1a59aa6fab65ea03120404850330665005f06ff3fc8104cd95b697133dcd80d262278d3cc7fe5edfe85ca66367e0d6c9ed854748
6
+ metadata.gz: d6899d2df0ee275c95e27ee67cc9893a9139723dfb69fe7645f79745633723611cd79f910f4d814824296e12d6e6a09ba59f09f4bcdc12bce2287324dab39b98
7
+ data.tar.gz: a4dcfd747d402177ef67d927655fb5ba553a3c36a26cd0e780a56144fbe5115ffb47819a2366bd91bb89a1ca844a24e1a4cf9c8a95b95f387d0b6f7f308ea6f1
@@ -66,7 +66,7 @@ module SmartyStreets
66
66
  self
67
67
  end
68
68
 
69
- # Default is a series of nested senders. (See build_sender()
69
+ # Sets the innermost HTTP transport sender while keeping the full middleware chain intact.
70
70
  #
71
71
  # Returns self to accommodate method chaining.
72
72
  def with_sender(sender)
@@ -218,9 +218,14 @@ module SmartyStreets
218
218
  # </editor-fold>
219
219
 
220
220
  def build_sender
221
- return @http_sender unless @http_sender.nil?
222
-
223
- sender = NativeSender.new(@max_timeout, @proxy, @debug)
221
+ if @http_sender
222
+ conflicts = []
223
+ conflicts << 'with_max_timeout' if @max_timeout != 10
224
+ conflicts << 'with_proxy' if @proxy
225
+ conflicts << 'with_debug' if @debug
226
+ raise ArgumentError, "with_sender cannot be combined with: #{conflicts.join(', ')}. These options only apply to the built-in HTTP transport." unless conflicts.empty?
227
+ end
228
+ sender = @http_sender || NativeSender.new(@max_timeout, @proxy, @debug)
224
229
 
225
230
  sender = StatusCodeSender.new(sender)
226
231
 
@@ -1,3 +1,3 @@
1
1
  module SmartyStreets
2
- VERSION = '7.3.0' # DO NOT EDIT (this is updated by a build job when a new release is published)
2
+ VERSION = '7.4.0' # DO NOT EDIT (this is updated by a build job when a new release is published)
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartystreets_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.3.0
4
+ version: 7.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SmartyStreets SDK Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-03-12 00:00:00.000000000 Z
11
+ date: 2026-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler