rack-test 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6f9d525a0e1136056dcc7ebfb288dd4a0f2d82b02bc7f6b4de8a8b1e1b2f653
4
- data.tar.gz: 2503679c0681795e9db75ec5963eaea12f2f934b4e5e3d23a30396a318e2ad3c
3
+ metadata.gz: 4a4be3c21464b7401bc021b97db2e23979488e03edaa736272d842933d090a1c
4
+ data.tar.gz: 9fee0aadcb20ca82f23194228ad0c7167ce1c45122677debf7dec772cde5279f
5
5
  SHA512:
6
- metadata.gz: 2b593ae59ec047f4048c96af421865855129563be719e9a0da088d275f20b3143300d83b4783aa073230bc8cc9118289562f83797682dd1a09073e0cbedc8fcb
7
- data.tar.gz: 9f98f0e2d36fe2cf33193a279acca2c62bcf3e5c91bb8adc3a0a71d929ff92b24ab27e7bb826c70cecc52fda5c67c7af57a7d471ff7456c13421d6c719ace434
6
+ metadata.gz: 512a1e0b7e2a634bec7d6598b5c54b444fadfefa89da37377bebf71064672911bcd1fdbf5d3f70fd7af2c15fca43238412be984df6dfa9f945f68425fb0d9cea
7
+ data.tar.gz: fb611a74074b3e72b4aeea11a816afa142b4b96ad2b7f2dae1d5555ad9acdd9e46c654f68c59c4db87bb21394dde7eb99f152218eff1c7dce200987fa8cb96e7
data/History.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 2.0.1 / 2022-06-27
2
+
3
+ * Bug fixes:
4
+ * Fix incompatible character encodings error when building uploaded
5
+ file bodies (Jeremy Evans #308 #309)
6
+
1
7
  ## 2.0.0 / 2022-06-24
2
8
 
3
9
  * Breaking changes:
@@ -129,6 +129,8 @@ module Rack
129
129
  "\"\r\n\r\n" <<
130
130
  value.to_s <<
131
131
  "\r\n"
132
+ buffer.force_encoding(Encoding::BINARY)
133
+ buffer
132
134
  end
133
135
 
134
136
  # Append the multipart fragment for a parameter that is a file upload to the buffer.
@@ -144,6 +146,7 @@ module Rack
144
146
  "\r\ncontent-length: " <<
145
147
  uploaded_file.size.to_s <<
146
148
  "\r\n\r\n"
149
+ buffer.force_encoding(Encoding::BINARY)
147
150
 
148
151
  # Handle old versions of Capybara::RackTest::Form::NilUploadedFile
149
152
  if uploaded_file.respond_to?(:set_encoding)
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Test
3
- VERSION = '2.0.0'.freeze
3
+ VERSION = '2.0.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Evans
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-06-24 00:00:00.000000000 Z
12
+ date: 2022-06-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack