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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3afa053c60ab236ae16024bb23bd68e3cdeb476801c27cb46927e8707297813
4
- data.tar.gz: 5cfddfeeba63fc1bda4e54e8e5a327f012366df86e15eed5051fdcdd1cda8eda
3
+ metadata.gz: 6262f10891f1126c5fec67abc7cc2de9105e81ca044831b8d4f9d08d0f0a526e
4
+ data.tar.gz: 5dc020b9a27800684b045fd81a4378d53e0e9082084e524b0b43207017c91312
5
5
  SHA512:
6
- metadata.gz: 1ae3604efea66c80111c2bbdb47c1748a547b738af3906847f72ee84284ef1ba0274dcce26383f714567c6e4aac297b546ad1ac7a39d0bb4218d3470fa3f9e3f
7
- data.tar.gz: 8422ddfcd9fb6449f9025f019c733bc542b5d1f204fbc1b8017b2d4d96485ec77e289e1ccba0b4574824a95106c70b49ff908db996547da1c9e521a46a2eb6d6
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
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "onebusaway-sdk", "~> 1.0.24"
20
+ gem "onebusaway-sdk", "~> 1.0.26"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -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 do
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 = if required && !nilable
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 == uri.default_port ? '' : ":#{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
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OnebusawaySDK
4
- VERSION = "1.0.24"
4
+ VERSION = "1.0.26"
5
5
  end
@@ -59,10 +59,10 @@ module OnebusawaySDK
59
59
  end
60
60
 
61
61
  class APIConnectionError < OnebusawaySDK::Errors::APIError
62
- sig { void }
62
+ sig { returns(NilClass) }
63
63
  attr_accessor :status
64
64
 
65
- sig { void }
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.24
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 00:00:00.000000000 Z
11
+ date: 2025-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool