Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix decode_rack_response #40

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### 0.15.0

* Exclude versions of Rails 7 which were incompatible with the pbbuilder ActionView handler, as pbbuilder cannot work there at all
* Fix decode_rack_response to be compatible with Rack response body wrappers (and conform to the Rack SPEC)

### 0.14.0
* Adding frozen_string_literal: true to all files.

Expand Down
2 changes: 1 addition & 1 deletion lib/rails_twirp/testing/integration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def request_content_type
end

def decode_rack_response(service, rpc, status, headers, body)
body = body.join # body is an Enumerable
body = Array.wrap(body).join # body is each-able

if status === 200
output_class = service.rpcs[rpc][:output_class]
Expand Down
2 changes: 1 addition & 1 deletion lib/rails_twirp/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module RailsTwirp
VERSION = "0.14"
VERSION = "0.15"
end
Loading