httparty 0.15.2 → 0.15.3
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.
Potentially problematic release.
This version of httparty might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/{History.md → Changelog.md} +7 -0
- data/lib/httparty/request.rb +1 -1
- data/lib/httparty/response/headers.rb +2 -0
- data/lib/httparty/version.rb +1 -1
- data/spec/httparty/request_spec.rb +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79fe2cddc91ec18f47159ed37d6f30b7a87b12ca
|
4
|
+
data.tar.gz: 6cbcf133a62890a8ce58667478b7c1f3e5a449fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38a54d1d643875d108d1f77f3d7d6a8f1132eec84048e3eed2f44dacec6b5aeea360581496dc22c3d3d4cea375c4616cd51cf4e68e8f317f482ce1120e151424
|
7
|
+
data.tar.gz: 0200edc00c38b810a16dd5ff25bd5342d941fd7f6b38df2308414ad5dc16249fa79a013fe307e0496951ec07069e554c99fb50ff554669532bc158e0ef64cc4e
|
data/{History.md → Changelog.md}
RENAMED
data/lib/httparty/request.rb
CHANGED
data/lib/httparty/version.rb
CHANGED
@@ -485,6 +485,13 @@ RSpec.describe HTTParty::Request do
|
|
485
485
|
expect(resp.body.encoding).to eq(Encoding.find("UTF-8"))
|
486
486
|
end
|
487
487
|
|
488
|
+
it "should process response with a nil body" do
|
489
|
+
response = stub_response nil
|
490
|
+
response.initialize_http_header("Content-Type" => "text/html;charset=UTF-8")
|
491
|
+
resp = @request.perform
|
492
|
+
expect(resp.body).to be_nil
|
493
|
+
end
|
494
|
+
|
488
495
|
it "should process utf-16 charset with little endian bom correctly" do
|
489
496
|
@request.options[:assume_utf16_is_big_endian] = true
|
490
497
|
|
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.15.
|
4
|
+
version: 0.15.3
|
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: 2017-05-
|
12
|
+
date: 2017-05-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_xml
|
@@ -39,9 +39,9 @@ files:
|
|
39
39
|
- ".simplecov"
|
40
40
|
- ".travis.yml"
|
41
41
|
- CONTRIBUTING.md
|
42
|
+
- Changelog.md
|
42
43
|
- Gemfile
|
43
44
|
- Guardfile
|
44
|
-
- History.md
|
45
45
|
- MIT-LICENSE
|
46
46
|
- README.md
|
47
47
|
- Rakefile
|