Skip to content

Commit ad26469

Browse files
Merge pull request #614 from OneBusAway/release-please--branches--main--changes--next
release: 1.6.2
2 parents f620fec + 26bbb11 commit ad26469

6 files changed

Lines changed: 15 additions & 5 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.6.1"
2+
".": "1.6.2"
33
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 1.6.2 (2026-04-09)
4+
5+
Full Changelog: [v1.6.1...v1.6.2](https://github.com/OneBusAway/ruby-sdk/compare/v1.6.1...v1.6.2)
6+
7+
### Bug Fixes
8+
9+
* multipart encoding for file arrays ([71fbff0](https://github.com/OneBusAway/ruby-sdk/commit/71fbff0f5e0c29b9af6e7265a31c07f2398aa4df))
10+
311
## 1.6.1 (2026-04-01)
412

513
Full Changelog: [v1.6.0...v1.6.1](https://github.com/OneBusAway/ruby-sdk/compare/v1.6.0...v1.6.1)

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GIT
1111
PATH
1212
remote: .
1313
specs:
14-
onebusaway-sdk (1.6.1)
14+
onebusaway-sdk (1.6.2)
1515
cgi
1616
connection_pool
1717

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
1717
<!-- x-release-please-start-version -->
1818

1919
```ruby
20-
gem "onebusaway-sdk", "~> 1.6.1"
20+
gem "onebusaway-sdk", "~> 1.6.2"
2121
```
2222

2323
<!-- x-release-please-end -->

lib/onebusaway_sdk/internal/util.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ def encode_query_params(query)
610610
#
611611
# @return [Array(String, Enumerable<String>)]
612612
private def encode_multipart_streaming(body)
613+
# rubocop:disable Style/CaseEquality
613614
# RFC 1521 Section 7.2.1 says we should have 70 char maximum for boundary length
614615
boundary = SecureRandom.urlsafe_base64(46)
615616

@@ -619,7 +620,7 @@ def encode_query_params(query)
619620
in Hash
620621
body.each do |key, val|
621622
case val
622-
in Array if val.all? { primitive?(_1) }
623+
in Array if val.all? { primitive?(_1) || OnebusawaySDK::Internal::Type::FileInput === _1 }
623624
val.each do |v|
624625
write_multipart_chunk(y, boundary: boundary, key: key, val: v, closing: closing)
625626
end
@@ -635,6 +636,7 @@ def encode_query_params(query)
635636

636637
fused_io = fused_enum(strio) { closing.each(&:call) }
637638
[boundary, fused_io]
639+
# rubocop:enable Style/CaseEquality
638640
end
639641

640642
# @api private

lib/onebusaway_sdk/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module OnebusawaySDK
4-
VERSION = "1.6.1"
4+
VERSION = "1.6.2"
55
end

0 commit comments

Comments
 (0)