splicer-dynect 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,8 +32,6 @@ module Splicer
32
32
  headers: @headers,
33
33
  max_redirects: 20
34
34
  })
35
- rescue RestClient::Exception => error
36
- raise Splicer::Errors::RequestError.new(error)
37
35
  end
38
36
 
39
37
  # @param [String] resource
@@ -46,8 +44,6 @@ module Splicer
46
44
  headers: @headers,
47
45
  max_redirects: 20
48
46
  })
49
- rescue RestClient::Exception => error
50
- raise Splicer::Errors::RequestError.new(error)
51
47
  end
52
48
 
53
49
  # @param [String] resource
@@ -61,8 +57,6 @@ module Splicer
61
57
  payload: payload.to_json,
62
58
  headers: @headers
63
59
  })
64
- rescue RestClient::Exception => error
65
- raise Splicer::Errors::RequestError.new(error)
66
60
  end
67
61
 
68
62
  # @param [String] resource
@@ -74,8 +68,6 @@ module Splicer
74
68
  url: resource_url(resource),
75
69
  headers: @headers
76
70
  })
77
- rescue RestClient::Exception => error
78
- raise Splicer::Errors::RequestError.new(error)
79
71
  end
80
72
 
81
73
  # Creates a client's session
@@ -1,5 +1,5 @@
1
1
  module Splicer
2
2
  module Dynect
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
@@ -19,7 +19,7 @@ describe Splicer::Dynect::Client do
19
19
  end
20
20
 
21
21
  context 'when Dynect returns with an error' do
22
- before { client.stub(:execute).and_raise(RestClient::Exception.new) }
22
+ before { client.stub(:execute).and_raise(Splicer::Errors::RequestError) }
23
23
  it 'should raise a Splicer::Errors::RequestError' do
24
24
  expect { subject }.to raise_error(Splicer::Errors::RequestError)
25
25
  end
@@ -35,7 +35,7 @@ describe Splicer::Dynect::Client do
35
35
  end
36
36
 
37
37
  context 'when Dynect returns with an error' do
38
- before { client.stub(:execute).and_raise(RestClient::Exception.new) }
38
+ before { client.stub(:execute).and_raise(Splicer::Errors::RequestError) }
39
39
  it 'should raise a Splicer::Errors::RequestError' do
40
40
  expect { subject }.to raise_error(Splicer::Errors::RequestError)
41
41
  end
@@ -51,7 +51,7 @@ describe Splicer::Dynect::Client do
51
51
  end
52
52
 
53
53
  context 'when Dynect returns with an error' do
54
- before { client.stub(:execute).and_raise(RestClient::Exception.new) }
54
+ before { client.stub(:execute).and_raise(Splicer::Errors::RequestError) }
55
55
  it 'should raise a Splicer::Errors::RequestError' do
56
56
  expect { subject }.to raise_error(Splicer::Errors::RequestError)
57
57
  end
@@ -67,7 +67,7 @@ describe Splicer::Dynect::Client do
67
67
  end
68
68
 
69
69
  context 'when Dynect returns with an error' do
70
- before { client.stub(:execute).and_raise(RestClient::Exception.new) }
70
+ before { client.stub(:execute).and_raise(Splicer::Errors::RequestError) }
71
71
  it 'should raise a Splicer::Errors::RequestError' do
72
72
  expect { subject }.to raise_error(Splicer::Errors::RequestError)
73
73
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splicer-dynect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -131,7 +131,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  segments:
133
133
  - 0
134
- hash: -696349607672345343
134
+ hash: -2750849641139883288
135
135
  required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  none: false
137
137
  requirements:
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  segments:
142
142
  - 0
143
- hash: -696349607672345343
143
+ hash: -2750849641139883288
144
144
  requirements: []
145
145
  rubyforge_project:
146
146
  rubygems_version: 1.8.25