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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb66474bc41c0a30280586d8d8fe9b1482b0afc3
4
- data.tar.gz: e01c0d2eb6bce7d2664be227cbd0ff498b790969
3
+ metadata.gz: 74973e40159e66d29f50055d6db5c8af6f9361e3
4
+ data.tar.gz: f3fdce64c3f484515e6b25b28233cad8f2b11ffa
5
5
  SHA512:
6
- metadata.gz: c0d1a7b303ef9932e666b6faa5f03555aa428ba82d2f77ea654a41ae4650631ff67519587a3c7193598dab87740160913e9086a0a6bd2d6cd54e9f2ef96c5f17
7
- data.tar.gz: e40ac5cf384fe6ad9c33713a112c8abb8f930c41a4b810533445bd367277f88bac8619d63c8b20251c4db9d546723f5639f80e41da3cced6c2408260b14f71ad
6
+ metadata.gz: 350953602563824e074a487bc1a2f5f2a3b353ebcfccc635c1d2859af7b196f2ddb298b46a55dd588ae9a097fcf70023b26073ce0a68eba5c52c8d8ccffa8eea
7
+ data.tar.gz: f8d8ab5c37e1aefb3dc769806654d6d628757f12b0522f944d28898f3b9c6141b317bac7e0606b25e1ea173448cf0b80940472b5c76b4eba0365fa83fc3184af
@@ -40,7 +40,8 @@ module Pebblebed
40
40
  class Response
41
41
  def initialize(easy)
42
42
  @body = easy.body_str
43
- @status = easy.status.to_i
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
 
@@ -1,3 +1,3 @@
1
1
  module Pebblebed
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pebblebed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katrina Owen