onebusaway-sdk 1.0.24 → 1.0.26
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/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/onebusaway_sdk/internal/transport/base_client.rb +1 -4
- data/lib/onebusaway_sdk/internal/transport/pooled_net_requester.rb +1 -9
- data/lib/onebusaway_sdk/internal/type/base_model.rb +1 -8
- data/lib/onebusaway_sdk/internal/util.rb +1 -1
- data/lib/onebusaway_sdk/models/references.rb +2 -7
- data/lib/onebusaway_sdk/version.rb +1 -1
- data/rbi/onebusaway_sdk/errors.rbi +2 -2
- 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: 6262f10891f1126c5fec67abc7cc2de9105e81ca044831b8d4f9d08d0f0a526e
|
4
|
+
data.tar.gz: 5dc020b9a27800684b045fd81a4378d53e0e9082084e524b0b43207017c91312
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 281714ec535cce0bbbca565b7afa9dd6536edb7960869f5018f73516321bc23db144ca86e874fdca6b8f3577fc895c5ca37d4fda09e4957bb1c1d30e0af97ab6
|
7
|
+
data.tar.gz: f9980bc2450105d610a46ceecd81bb0d90d621f28a85696a1e5df89c85af3e42d0e707924e35a085f31788db9a1e992bcf733917b261492cd7cab286696bc5ce
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.0.26 (2025-08-25)
|
4
|
+
|
5
|
+
Full Changelog: [v1.0.25...v1.0.26](https://github.com/OneBusAway/ruby-sdk/compare/v1.0.25...v1.0.26)
|
6
|
+
|
7
|
+
### Chores
|
8
|
+
|
9
|
+
* add json schema comment for rubocop.yml ([30b36f9](https://github.com/OneBusAway/ruby-sdk/commit/30b36f9aa3a25a536adb207097f2088f96f6d899))
|
10
|
+
|
11
|
+
## 1.0.25 (2025-08-20)
|
12
|
+
|
13
|
+
Full Changelog: [v1.0.24...v1.0.25](https://github.com/OneBusAway/ruby-sdk/compare/v1.0.24...v1.0.25)
|
14
|
+
|
15
|
+
### Bug Fixes
|
16
|
+
|
17
|
+
* bump sorbet version and fix new type errors from the breaking change ([c072aac](https://github.com/OneBusAway/ruby-sdk/commit/c072aac4d761e83878e4cb6a1ef9d66f277d5269))
|
18
|
+
|
3
19
|
## 1.0.24 (2025-08-10)
|
4
20
|
|
5
21
|
Full Changelog: [v1.0.23...v1.0.24](https://github.com/OneBusAway/ruby-sdk/compare/v1.0.23...v1.0.24)
|
data/README.md
CHANGED
@@ -370,10 +370,7 @@ module OnebusawaySDK
|
|
370
370
|
# @return [Array(Integer, Net::HTTPResponse, Enumerable<String>)]
|
371
371
|
def send_request(request, redirect_count:, retry_count:, send_retry_header:)
|
372
372
|
url, headers, max_retries, timeout = request.fetch_values(:url, :headers, :max_retries, :timeout)
|
373
|
-
input = {
|
374
|
-
**request.except(:timeout),
|
375
|
-
deadline: OnebusawaySDK::Internal::Util.monotonic_secs + timeout
|
376
|
-
}
|
373
|
+
input = {**request.except(:timeout), deadline: OnebusawaySDK::Internal::Util.monotonic_secs + timeout}
|
377
374
|
|
378
375
|
if send_retry_header
|
379
376
|
headers["x-stainless-retry-count"] = retry_count.to_s
|
@@ -193,15 +193,7 @@ module OnebusawaySDK
|
|
193
193
|
end
|
194
194
|
|
195
195
|
define_sorbet_constant!(:Request) do
|
196
|
-
T.type_alias
|
197
|
-
{
|
198
|
-
method: Symbol,
|
199
|
-
url: URI::Generic,
|
200
|
-
headers: T::Hash[String, String],
|
201
|
-
body: T.anything,
|
202
|
-
deadline: Float
|
203
|
-
}
|
204
|
-
end
|
196
|
+
T.type_alias { {method: Symbol, url: URI::Generic, headers: T::Hash[String, String], body: T.anything, deadline: Float} }
|
205
197
|
end
|
206
198
|
end
|
207
199
|
end
|
@@ -64,14 +64,7 @@ module OnebusawaySDK
|
|
64
64
|
setter = :"#{name_sym}="
|
65
65
|
api_name = info.fetch(:api_name, name_sym)
|
66
66
|
nilable = info.fetch(:nil?, false)
|
67
|
-
const =
|
68
|
-
info.fetch(
|
69
|
-
:const,
|
70
|
-
OnebusawaySDK::Internal::OMIT
|
71
|
-
)
|
72
|
-
else
|
73
|
-
OnebusawaySDK::Internal::OMIT
|
74
|
-
end
|
67
|
+
const = required && !nilable ? info.fetch(:const, OnebusawaySDK::Internal::OMIT) : OnebusawaySDK::Internal::OMIT
|
75
68
|
|
76
69
|
[name_sym, setter].each { undef_method(_1) } if known_fields.key?(name_sym)
|
77
70
|
|
@@ -244,7 +244,7 @@ module OnebusawaySDK
|
|
244
244
|
#
|
245
245
|
# @return [String]
|
246
246
|
def uri_origin(uri)
|
247
|
-
"#{uri.scheme}://#{uri.host}#{uri.port
|
247
|
+
"#{uri.scheme}://#{uri.host}#{":#{uri.port}" unless uri.port == uri.default_port}"
|
248
248
|
end
|
249
249
|
|
250
250
|
# @api private
|
@@ -16,10 +16,7 @@ module OnebusawaySDK
|
|
16
16
|
# @!attribute situations
|
17
17
|
#
|
18
18
|
# @return [Array<OnebusawaySDK::Models::References::Situation>]
|
19
|
-
required :situations,
|
20
|
-
-> {
|
21
|
-
OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::References::Situation]
|
22
|
-
}
|
19
|
+
required :situations, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::References::Situation] }
|
23
20
|
|
24
21
|
# @!attribute stops
|
25
22
|
#
|
@@ -215,9 +212,7 @@ module OnebusawaySDK
|
|
215
212
|
#
|
216
213
|
# @return [Array<OnebusawaySDK::Models::References::Situation::Consequence>, nil]
|
217
214
|
optional :consequences,
|
218
|
-
-> {
|
219
|
-
OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::References::Situation::Consequence]
|
220
|
-
}
|
215
|
+
-> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::References::Situation::Consequence] }
|
221
216
|
|
222
217
|
# @!attribute description
|
223
218
|
#
|
@@ -59,10 +59,10 @@ module OnebusawaySDK
|
|
59
59
|
end
|
60
60
|
|
61
61
|
class APIConnectionError < OnebusawaySDK::Errors::APIError
|
62
|
-
sig {
|
62
|
+
sig { returns(NilClass) }
|
63
63
|
attr_accessor :status
|
64
64
|
|
65
|
-
sig {
|
65
|
+
sig { returns(NilClass) }
|
66
66
|
attr_accessor :body
|
67
67
|
|
68
68
|
# @api private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onebusaway-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Onebusaway SDK
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|