rest-client 1.5.0.a → 1.5.0.b
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 rest-client might be problematic. Click here for more details.
- data/VERSION +1 -1
- data/history.md +1 -1
- data/spec/abstract_response_spec.rb +1 -2
- data/spec/request_spec.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.0.
|
1
|
+
1.5.0.b
|
data/history.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# 1.5.0
|
2
2
|
|
3
|
-
- the response is now a
|
3
|
+
- the response is now a String with the Response module a.k.a. the change in 1.4.0 was a mistake (Response.body is returning self for compatability)
|
4
4
|
- added AbstractResponse.to_i to improve semantic
|
5
5
|
- multipart Payloads ignores the name attribute if it's not set (patch provided by Tekin Suleyman)
|
6
6
|
- correctly takes into account user headers whose keys are strings (path provided by Cyril Rohr)
|
@@ -13,7 +13,6 @@ describe RestClient::AbstractResponse do
|
|
13
13
|
@args = args
|
14
14
|
end
|
15
15
|
|
16
|
-
|
17
16
|
end
|
18
17
|
|
19
18
|
before do
|
@@ -27,7 +26,7 @@ describe RestClient::AbstractResponse do
|
|
27
26
|
end
|
28
27
|
|
29
28
|
it "has a nice description" do
|
30
|
-
@net_http_res.should_receive(:to_hash).and_return({'Content-Type' => 'application/pdf'})
|
29
|
+
@net_http_res.should_receive(:to_hash).and_return({'Content-Type' => ['application/pdf']})
|
31
30
|
@net_http_res.should_receive(:code).and_return('200')
|
32
31
|
@response.description == '200 OK | application/pdf bytes\n'
|
33
32
|
end
|
data/spec/request_spec.rb
CHANGED
@@ -509,6 +509,6 @@ describe RestClient::Request do
|
|
509
509
|
@http.should_receive(:request).and_return(@request.fetch_body(net_http_res))
|
510
510
|
response = @request.transmit(@uri, 'req', 'payload')
|
511
511
|
response.should_not be_nil
|
512
|
-
response.code.should
|
512
|
+
response.code.should == 204
|
513
513
|
end
|
514
514
|
end
|