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 CHANGED
@@ -1 +1 @@
1
- 1.5.0.a
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 string with the Response module
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
@@ -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 equal(204)
512
+ response.code.should == 204
513
513
  end
514
514
  end
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 1
7
7
  - 5
8
8
  - 0
9
- - a
10
- version: 1.5.0.a
9
+ - b
10
+ version: 1.5.0.b
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Wiggins