pebblebed 0.3.5 → 0.3.6
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 +2 -1
- 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: 74973e40159e66d29f50055d6db5c8af6f9361e3
|
4
|
+
data.tar.gz: f3fdce64c3f484515e6b25b28233cad8f2b11ffa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 350953602563824e074a487bc1a2f5f2a3b353ebcfccc635c1d2859af7b196f2ddb298b46a55dd588ae9a097fcf70023b26073ce0a68eba5c52c8d8ccffa8eea
|
7
|
+
data.tar.gz: f8d8ab5c37e1aefb3dc769806654d6d628757f12b0522f944d28898f3b9c6141b317bac7e0606b25e1ea173448cf0b80940472b5c76b4eba0365fa83fc3184af
|
data/lib/pebblebed/http.rb
CHANGED
@@ -40,7 +40,8 @@ module Pebblebed
|
|
40
40
|
class Response
|
41
41
|
def initialize(easy)
|
42
42
|
@body = easy.body_str
|
43
|
-
|
43
|
+
# We parse it ourselves because Curl::Easy fails when there's no text message
|
44
|
+
@status = easy.header_str.scan(/HTTP\/\d\.\d\s(\d+)\s/).map(&:first).last.to_i
|
44
45
|
@url = easy.url
|
45
46
|
end
|
46
47
|
|
data/lib/pebblebed/version.rb
CHANGED