excon 0.61.0 → 0.62.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of excon might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/changelog.txt +5 -0
- data/lib/excon/connection.rb +1 -1
- data/lib/excon/version.rb +1 -1
- data/spec/support/shared_examples/shared_example_for_clients.rb +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ece261b6f71e5d1d196cca01f591d973631ee0f3
|
4
|
+
data.tar.gz: 6c4ec564c3ceb6cf87205d2d8430d01a194995bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6e40cc178da6850ce417ba0fce0630a99bb361199c07653a6f6dcefe829373a86af1083d4218b472c94419a1bac2a509083bf577640f1ce59e899759649c726
|
7
|
+
data.tar.gz: 131bd06ee001c1246a6b3d720db1e545275146ba886a310d675724a86bd5fef6270c77c196d920c4002cf8661899a9591a00808b3e206ffea1cf4dca45578496
|
data/changelog.txt
CHANGED
data/lib/excon/connection.rb
CHANGED
@@ -163,7 +163,7 @@ module Excon
|
|
163
163
|
elsif body.nil?
|
164
164
|
socket.write(request) # write out request + headers
|
165
165
|
else # write out body
|
166
|
-
if body.respond_to?(:binmode)
|
166
|
+
if body.respond_to?(:binmode) && !body.is_a?(StringIO)
|
167
167
|
body.binmode
|
168
168
|
end
|
169
169
|
if body.respond_to?(:rewind)
|
data/lib/excon/version.rb
CHANGED
@@ -163,6 +163,15 @@ shared_examples_for 'a basic client' do |url = 'http://127.0.0.1:9292', opts = {
|
|
163
163
|
end
|
164
164
|
|
165
165
|
context 'when a string is the body paramter' do
|
166
|
+
it 'does not change the econding of the body' do
|
167
|
+
skip unless RUBY_VERSION >= '1.9'
|
168
|
+
|
169
|
+
string_body = '¥£€'
|
170
|
+
expect do
|
171
|
+
conn.request(method: :post, path: '/echo', body: string_body)
|
172
|
+
end.to_not change { string_body.encoding }
|
173
|
+
end
|
174
|
+
|
166
175
|
context 'without request_block' do
|
167
176
|
describe Excon::Response do
|
168
177
|
it "#body equals 'x' * 100)" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: excon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.62.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dpiddy (Dan Peterson)
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-03-
|
13
|
+
date: 2018-03-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|