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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8fdb02fc261d826e83a7b33488486b4a3236c609
4
- data.tar.gz: 921e5479f0beffa9487cb7d8d518e42f12d8acb5
3
+ metadata.gz: 5d1ce9e0b3a1628f37da5f8cf1b6aea690b1e600
4
+ data.tar.gz: 4eedd53099635e1755e6358499f4c3b60d09c7bc
5
5
  SHA512:
6
- metadata.gz: 1aa150b70ac25a38a6b2c862054ae680d406b40f685ca767a792ef2d35522ec856aacd8d56aa344cd18e13d91c563ae737d1d3e2d4ff11ef4328639a0e4dfe9c
7
- data.tar.gz: 00b918d4dc23c27b0fb9871125be50e6ae51460a6517db29b85af86216e76d5c0c49db6a8b1a3820dc4221116cc2efd884c64bae594117e204eb0ba85ed67ef8
6
+ metadata.gz: ed2d388ab8b3c4b7672cf4af9877a41407b6a5dc283a30da3017cee5f0eec5a92fc28124174f631d5aae492bc3cf796f007b3cf99a0c10dcf14da7505102c5d1
7
+ data.tar.gz: 022e201c4bd140c61fa029e30b7bd229056b24292e458c6ecaa485d6b8f22e58fa528078364935bf6a5c943db0547bd419aa833c49cb60648ec19fdfbd463842
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- excon (0.45.2)
4
+ excon (0.45.3)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -1,3 +1,9 @@
1
+ 0.45.3 04/21/2015
2
+ =================
3
+
4
+ guard warning about openssl versions in case constant undefined
5
+ ensure rackup listens properly, fixes local tests
6
+
1
7
  0.45.2 04/16/2015
2
8
  =================
3
9
 
@@ -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.2'
17
- s.date = '2015-04-16'
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
@@ -1,6 +1,6 @@
1
1
  module Excon
2
2
 
3
- VERSION = '0.45.2'
3
+ VERSION = '0.45.3'
4
4
 
5
5
  CR_NL = "\r\n"
6
6
 
@@ -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)
@@ -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
@@ -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.2
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-16 00:00:00.000000000 Z
13
+ date: 2015-04-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport