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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: edbc090e0e340afbb9c9897d1e733c2870b2c6d9
4
- data.tar.gz: f9015ceea2e07c05d07d16010f87472e26da17d6
3
+ metadata.gz: ece261b6f71e5d1d196cca01f591d973631ee0f3
4
+ data.tar.gz: 6c4ec564c3ceb6cf87205d2d8430d01a194995bc
5
5
  SHA512:
6
- metadata.gz: bd222964f9f5bb2ca96af3f41fa00174e75fab56865223342405cb67869dbb46c526e0b7f8a87fff68485c724ec70e2ae5f982fe4cf3a8faeb49eee7dfe31742
7
- data.tar.gz: 3a44275a35d4bb40f7af4b079daed73d115aa6e2adfc0b3746384486ec37dfb4d640eed3826f592ff9d3bf86187a8d79e9922945afea023271fa5634dc28b53e
6
+ metadata.gz: d6e40cc178da6850ce417ba0fce0630a99bb361199c07653a6f6dcefe829373a86af1083d4218b472c94419a1bac2a509083bf577640f1ce59e899759649c726
7
+ data.tar.gz: 131bd06ee001c1246a6b3d720db1e545275146ba886a310d675724a86bd5fef6270c77c196d920c4002cf8661899a9591a00808b3e206ffea1cf4dca45578496
@@ -1,3 +1,8 @@
1
+ 0.62.0 2018-03-27
2
+ =================
3
+
4
+ remove binmode call for StringIO objects
5
+
1
6
  0.61.0 2018-03-16
2
7
  =================
3
8
 
@@ -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)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Excon
3
- VERSION = '0.61.0'
3
+ VERSION = '0.62.0'
4
4
  end
@@ -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.61.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-16 00:00:00.000000000 Z
13
+ date: 2018-03-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec