sevenwire-rest-client 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 9
4
- :patch: 4
4
+ :patch: 5
@@ -36,13 +36,6 @@ module RestClient
36
36
  end
37
37
 
38
38
  def execute
39
- execute_inner
40
- rescue Redirect => e
41
- @url = e.url
42
- execute
43
- end
44
-
45
- def execute_inner
46
39
  uri = parse_url_with_auth(url)
47
40
  transmit uri, net_http_request_class(method).new(uri.request_uri, make_headers(headers)), payload
48
41
  end
data/spec/request_spec.rb CHANGED
@@ -116,7 +116,7 @@ describe RestClient::Request do
116
116
  @request.should_receive(:net_http_request_class).with(:put).and_return(klass)
117
117
  klass.should_receive(:new).and_return('result')
118
118
  @request.should_receive(:transmit).with(@uri, 'result', 'payload')
119
- @request.execute_inner
119
+ @request.execute
120
120
  end
121
121
 
122
122
  it "transmits the request with Net::HTTP" do
@@ -194,11 +194,6 @@ describe RestClient::Request do
194
194
  lambda { @request.transmit(@uri, 'req', nil) }.should raise_error(RestClient::ServerBrokeConnection)
195
195
  end
196
196
 
197
- it "execute calls execute_inner" do
198
- @request.should_receive(:execute_inner)
199
- @request.execute
200
- end
201
-
202
197
  it "class method execute wraps constructor" do
203
198
  req = mock("rest request")
204
199
  RestClient::Request.should_receive(:new).with(1 => 2).and_return(req)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sevenwire-rest-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Wiggins