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 +4 -4
- data/lib/httparty.rb +1 -0
- data/lib/httparty/response.rb +1 -1
- data/lib/httparty/version.rb +1 -1
- data/spec/httparty/response_spec.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a6b1d5f5b4dfe131cddcf36948fb9102b93f67d
|
4
|
+
data.tar.gz: 10206b7de3285e93f767f7578a77600256892b82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa60eff289622231ce78d3ec3edcc1a6945deb42ede5ba814534117f57b768bcbcb64c2baae1bc1abe3918c15f9af3bc175789a6d63d940357630aed60809255
|
7
|
+
data.tar.gz: 8e4240d4b726486e591c2dc33943aba90aafbc9bb26ba79417e0ce8481b30f97b34df171619b16229cd895565bbc180666cc5481597705a5a401ebef08c6ee81
|
data/lib/httparty.rb
CHANGED
data/lib/httparty/response.rb
CHANGED
@@ -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
|
|
data/lib/httparty/version.rb
CHANGED
@@ -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
|
+
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-
|
12
|
+
date: 2015-05-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|