cobot_client 2.1.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80e9caaf8daba5d9a8235e5d2da33179305937ec
4
- data.tar.gz: 4f9812a75eb45d699154073f235285edc3028192
3
+ metadata.gz: 385453cc971469ee0aa77b629caad121b0bac713
4
+ data.tar.gz: 3bdf837bdbf70114b6388de7de4964acdf118113
5
5
  SHA512:
6
- metadata.gz: 398c69595b6c05efe247628453ebe731a6d43ff2e7f03e8e34a7da3835ea6449d07f78a774520d01a8ed549359544dc5890c97c75ae8e6c24140dc033b081b54
7
- data.tar.gz: c4e1e0d442c71e021e51a88c5f539807904fa51fbe6240d1a72f3b0145ec759f6d1806f2edf1a8a90226c6d20649a44beaf57135a5575e23ee84eceb05bfcaa3
6
+ metadata.gz: 011aa0946233946fa5d88f9b797220baee3062cc072d672ffd00a775e54d5d8f00cae22fc14bda213a65f5ee8d5cb6111da4e415c18cb93f382201915ab08400
7
+ data.tar.gz: c11c2109aa6162dc63d5e2e75e585c64640c0c94949348bcf6f90315882143d32a55df751eceb815b928124781cc51661523259ec49688126e930151f0a4f1d9
data/.travis.yml CHANGED
@@ -1,3 +1,4 @@
1
1
  rvm:
2
2
  - 2.2.4
3
3
  - 2.3.0
4
+ - 2.4.0
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ # 3.0.0
2
+
3
+ * bumps rest-client to ~2.0.1, which results in CobotClient::ResourceNotFound to be renamed to CobotClient::NotFound (FrauBienenstich)
data/cobot_client.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
 
19
19
  gem.add_dependency 'virtus', '~>1.0'
20
20
  gem.add_dependency 'oauth2', '~>1.0'
21
- gem.add_dependency 'rest-client', '~>1.7'
21
+ gem.add_dependency 'rest-client', '~>2.0.1'
22
22
  gem.add_dependency 'json', '~>2.0'
23
23
  gem.add_development_dependency 'rspec', '~>3.0'
24
24
  gem.add_development_dependency 'rake', '~>10.0'
@@ -1,3 +1,3 @@
1
1
  module CobotClient
2
- VERSION = '2.1.0'
2
+ VERSION = '3.0.0'
3
3
  end
@@ -245,11 +245,11 @@ describe CobotClient::ApiClient do
245
245
  end
246
246
 
247
247
  it 'converts a rest-client error into a cobot error' do
248
- allow(RestClient).to receive(:get).and_raise(RestClient::ResourceNotFound)
248
+ allow(RestClient).to receive(:get).and_raise(RestClient::NotFound)
249
249
 
250
250
  expect do
251
251
  api_client.get('co-up', '/invoices')
252
- end.to raise_error(CobotClient::ResourceNotFound)
252
+ end.to raise_error(CobotClient::NotFound)
253
253
  end
254
254
 
255
255
  it 'retries a RestClient::RequestTimeout' do
@@ -278,12 +278,12 @@ describe CobotClient::ApiClient do
278
278
 
279
279
  it 'includes the response, http code and http body in the exception' do
280
280
  response = double(:response, code: 404, body: 'boom')
281
- error = RestClient::ResourceNotFound.new(response)
281
+ error = RestClient::NotFound.new(response)
282
282
  allow(RestClient).to receive(:get).and_raise(error)
283
283
 
284
284
  begin
285
285
  api_client.get('co-up', '/invoices')
286
- rescue CobotClient::ResourceNotFound => e
286
+ rescue CobotClient::NotFound => e
287
287
  expect(e.response).to eql(response)
288
288
  expect(e.http_code).to eql(404)
289
289
  expect(e.http_body).to eql('boom')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cobot_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Lang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-02 00:00:00.000000000 Z
11
+ date: 2018-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.7'
47
+ version: 2.0.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.7'
54
+ version: 2.0.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: json
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -103,6 +103,7 @@ extra_rdoc_files: []
103
103
  files:
104
104
  - ".gitignore"
105
105
  - ".travis.yml"
106
+ - CHANGELOG.md
106
107
  - Gemfile
107
108
  - LICENSE
108
109
  - README.md