excon 0.45.2 → 0.45.3
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/Gemfile.lock +1 -1
- data/changelog.txt +6 -0
- data/excon.gemspec +2 -2
- data/lib/excon/constants.rb +1 -1
- data/lib/excon/socket.rb +1 -1
- data/tests/basic_tests.rb +2 -2
- data/tests/test_helper.rb +3 -3
- 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: 5d1ce9e0b3a1628f37da5f8cf1b6aea690b1e600
|
4
|
+
data.tar.gz: 4eedd53099635e1755e6358499f4c3b60d09c7bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed2d388ab8b3c4b7672cf4af9877a41407b6a5dc283a30da3017cee5f0eec5a92fc28124174f631d5aae492bc3cf796f007b3cf99a0c10dcf14da7505102c5d1
|
7
|
+
data.tar.gz: 022e201c4bd140c61fa029e30b7bd229056b24292e458c6ecaa485d6b8f22e58fa528078364935bf6a5c943db0547bd419aa833c49cb60648ec19fdfbd463842
|
data/Gemfile.lock
CHANGED
data/changelog.txt
CHANGED
data/excon.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'excon'
|
16
|
-
s.version = '0.45.
|
17
|
-
s.date = '2015-04-
|
16
|
+
s.version = '0.45.3'
|
17
|
+
s.date = '2015-04-21'
|
18
18
|
s.rubyforge_project = 'excon'
|
19
19
|
|
20
20
|
## Make sure your summary is short. The description may be as long
|
data/lib/excon/constants.rb
CHANGED
data/lib/excon/socket.rb
CHANGED
@@ -242,7 +242,7 @@ module Excon
|
|
242
242
|
# have to slice data when there is a short write.
|
243
243
|
written = @socket.write_nonblock(data)
|
244
244
|
rescue Errno::EFAULT
|
245
|
-
if OpenSSL::OPENSSL_LIBRARY_VERSION.split(' ')[1] == '1.0.2'
|
245
|
+
if OpenSSL.const_defined?(:OPENSSL_LIBRARY_VERSION) && OpenSSL::OPENSSL_LIBRARY_VERSION.split(' ')[1] == '1.0.2'
|
246
246
|
msg = "The version of OpenSSL this ruby is built against (1.0.2) has a vulnerability
|
247
247
|
which causes a fault. For more, see https://github.com/excon/excon/issues/467"
|
248
248
|
raise SecurityError.new(msg)
|
data/tests/basic_tests.rb
CHANGED
@@ -94,7 +94,7 @@ Shindo.tests('Excon basics (Basic Auth Pass)') do
|
|
94
94
|
connection = Excon.new(uri, :user => user, :password => pass )
|
95
95
|
response = connection.request(:method => :get, :path => '/content-length/100')
|
96
96
|
response.status
|
97
|
-
end
|
97
|
+
end
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -285,7 +285,7 @@ Shindo.tests('Excon basics (reusable local port)') do
|
|
285
285
|
end
|
286
286
|
end
|
287
287
|
|
288
|
-
with_rackup('basic.ru') do
|
288
|
+
with_rackup('basic.ru', '0.0.0.0') do
|
289
289
|
connection = Excon.new("http://127.0.0.1:9292/echo",
|
290
290
|
:reuseaddr => true, # enable address and port reuse
|
291
291
|
:persistent => true # keep the socket open
|
data/tests/test_helper.rb
CHANGED
@@ -231,12 +231,12 @@ def rackup_path(*parts)
|
|
231
231
|
File.expand_path(File.join(File.dirname(__FILE__), 'rackups', *parts))
|
232
232
|
end
|
233
233
|
|
234
|
-
def with_rackup(name)
|
234
|
+
def with_rackup(name, host="127.0.0.1")
|
235
235
|
unless RUBY_PLATFORM == 'java'
|
236
236
|
GC.disable if RUBY_VERSION < '1.9'
|
237
|
-
pid, w, r, e = Open4.popen4("rackup", rackup_path(name))
|
237
|
+
pid, w, r, e = Open4.popen4("rackup", "--host", host, rackup_path(name))
|
238
238
|
else
|
239
|
-
pid, w, r, e = IO.popen4("rackup", rackup_path(name))
|
239
|
+
pid, w, r, e = IO.popen4("rackup", "--host", host, rackup_path(name))
|
240
240
|
end
|
241
241
|
until e.gets =~ /HTTPServer#start:/; end
|
242
242
|
yield
|
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.45.
|
4
|
+
version: 0.45.3
|
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: 2015-04-
|
13
|
+
date: 2015-04-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|