curlyrest 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c362bdedaa3523b085c1c85a566d1b4cbaefbe84
4
- data.tar.gz: 1156b2fa806226824c715ea4368a5a100fa6e385
3
+ metadata.gz: c529834b3c7b199d5e8ca8e4ab06d7278e6c1cdc
4
+ data.tar.gz: b265bb10ffc9eb4562e418c2e6b8965e89c28574
5
5
  SHA512:
6
- metadata.gz: ec71c9ffebea0ffc2285e40832773bc6f03483ffb4ff1210a9573f55a467ea62ead8cd1895a8a15c8abaff826a7eedf5c7168862b90499bd78baab39988165d0
7
- data.tar.gz: abb74de66b5520301ce42516f5daa0ca154173fda78eeefe8c1c68a6243c25284693a3482cab25ed91fb5341f333aa01ccb13c9ecd330d2669831da692aa5816
6
+ metadata.gz: e1f4a897c1b7a1ea63fff081f1fe6f362e4aaa4e8a0e60da2a020c295272a1bdd32095e2cd102f697b6b1a021d4dd63270a6bcc1dd89eec1a4a096714202a4ae
7
+ data.tar.gz: 1836b29df991b2dfb994684b7da91b66b22efb0a389028c6d188cca62dbf765ef053387640137227d04b45c715c83f602ae5b59a8a712677e4bb7754564fb60a
@@ -1,3 +1,3 @@
1
1
  module Curlyrest
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/curlyrest.rb CHANGED
@@ -44,8 +44,10 @@ module Curlyrest
44
44
  body << l
45
45
  end
46
46
  end
47
- if n.to_hash['content-encoding'].include?('gzip')
48
- n.unzip_body(body)
47
+ byebug
48
+ if n.to_hash.keys && n.to_hash.keys.include?('content-encoding') &&
49
+ n.to_hash['content-encoding'].include?('gzip')
50
+ n.unzip_body(body)
49
51
  else
50
52
  n.body = (body)
51
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: curlyrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Williams
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-17 00:00:00.000000000 Z
11
+ date: 2018-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler