httparty 0.13.4 → 0.13.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of httparty might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5784f9133ce53f44315b798fa193aa60a6e4984
4
- data.tar.gz: 98998538307e0526d580c90fe14c77f42b2d14c4
3
+ metadata.gz: 1a6b1d5f5b4dfe131cddcf36948fb9102b93f67d
4
+ data.tar.gz: 10206b7de3285e93f767f7578a77600256892b82
5
5
  SHA512:
6
- metadata.gz: 4624b824e95e17884925e53db69f34aa722ab98a9edc3e3a3210bb4417d6106b8619485dca07a430ed223c8c8c62f9be11ff3651ca88070ef524d8db12cdc3f8
7
- data.tar.gz: 73b4f6af1037ee6ace8d7a88013dbe4d5d1371fb48440552b644526789ade291ee2f1d055be0adad47ec5682f792f50cd330d8fc28a4d70446aa518715273cc5
6
+ metadata.gz: aa60eff289622231ce78d3ec3edcc1a6945deb42ede5ba814534117f57b768bcbcb64c2baae1bc1abe3918c15f9af3bc175789a6d63d940357630aed60809255
7
+ data.tar.gz: 8e4240d4b726486e591c2dc33943aba90aafbc9bb26ba79417e0ce8481b30f97b34df171619b16229cd895565bbc180666cc5481597705a5a401ebef08c6ee81
@@ -6,6 +6,7 @@ require 'zlib'
6
6
  require 'multi_xml'
7
7
  require 'json'
8
8
  require 'csv'
9
+ require 'erb'
9
10
 
10
11
  require 'httparty/module_inheritable_attributes'
11
12
  require 'httparty/cookie_hash'
@@ -37,7 +37,7 @@ module HTTParty
37
37
  end
38
38
 
39
39
  def inspect
40
- inspect_id = format "%x", (object_id * 2)
40
+ inspect_id = ::Kernel::format "%x", (object_id * 2)
41
41
  %(#<#{self.class}:0x#{inspect_id} parsed_response=#{parsed_response.inspect}, @response=#{response.inspect}, @headers=#{headers.inspect}>)
42
42
  end
43
43
 
@@ -1,3 +1,3 @@
1
1
  module HTTParty
2
- VERSION = "0.13.4"
2
+ VERSION = "0.13.5"
3
3
  end
@@ -226,4 +226,16 @@ RSpec.describe HTTParty::Response do
226
226
  expect(result).to eq @response
227
227
  end
228
228
  end
229
+
230
+ describe "#inspect" do
231
+ it "works" do
232
+ inspect = @response.inspect
233
+ expect(inspect).to include("HTTParty::Response:0x")
234
+ expect(inspect).to include("parsed_response={\"foo\"=>\"bar\"}")
235
+ expect(inspect).to include("@response=#<Net::HTTPOK 200 OK readbody=false>")
236
+ expect(inspect).to include("@headers={")
237
+ expect(inspect).to include("last-modified")
238
+ expect(inspect).to include("content-length")
239
+ end
240
+ end
229
241
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httparty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.4
4
+ version: 0.13.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-13 00:00:00.000000000 Z
12
+ date: 2015-05-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json