pebblebed 0.4.9 → 0.4.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pebblebed/http.rb +1 -2
- data/lib/pebblebed/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b98d3bdf74c5e465646236db6720f627f0dc624a
|
4
|
+
data.tar.gz: ef141ab3f72a2fb12f0152d892464601dc759407
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25126f9c95fa862c985c523ef7630bcb701c464c29bc70a3702aa6bed50bee614a2f86874d1694ebe920603577b4797e639b45784722421a39ed08aa3ef89127
|
7
|
+
data.tar.gz: e0bb39b5adb506a9dd132e8a96379c2000ae432a8f8720b5bc349742696c844c71d9b52ba7d8fc9fb14ee217b36374395bf5576084b32df743da7c4ba9d4d3f1
|
data/lib/pebblebed/http.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# A wrapper for all low level http client stuff
|
2
2
|
|
3
|
-
require 'resolv'
|
4
3
|
require 'uri'
|
5
4
|
require 'excon'
|
6
5
|
require 'yajl/json_gem'
|
@@ -299,7 +298,7 @@ module Pebblebed
|
|
299
298
|
else
|
300
299
|
uri = URI.parse(url)
|
301
300
|
end
|
302
|
-
ip =
|
301
|
+
ip = IPSocket.getaddress(uri.host)
|
303
302
|
"#{uri.scheme}://#{ip}:#{uri.port}"
|
304
303
|
end
|
305
304
|
|
data/lib/pebblebed/version.rb
CHANGED