dtk-common-core 0.5.13 → 0.6.0

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.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MTQxZWIxMWFhNzdiOTFmOGYyZGRjNGM2OWI0NjZkM2Q5ZTZiMTQyNw==
5
- data.tar.gz: !binary |-
6
- YzMwZTg5YmI5MzY5ZTY2ZWUzNDQ0MTQxYzEzY2Q3Y2NjNWE5N2M3OQ==
2
+ SHA1:
3
+ metadata.gz: 761da1d3c760eee2118d0682cb863f96ae6d25d0
4
+ data.tar.gz: 6c982e3b942de922d81da8c433b2bc4a5c547b1e
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MTI4ZjhiNzY0MTY2OTU2ZDdkYjM0ODNhNDM4NmQ2NmEyZmY1MmRjYzYyMGIy
10
- OWQ1ZmExMWVmYjQ2OTUzZjA4YmFiNTI3YjU3NTlkNjI0OWFlODZhMzRlNGVj
11
- OGY1ZTlkMjQ0NjExZWMyNjM1ZmEyMjMyOWIwNzhkMTc5MDgxNmM=
12
- data.tar.gz: !binary |-
13
- NGZlNGU1NzlkNzNjZWM3MTNhNGM2ZjhjM2ZiMGFiMTFhM2FmNjc0ZjBkNzQy
14
- ZTZhOThhNWQ3MzBiNGNlMjliMDQ4ZGNiYzEyODIwYzA2NzZkOTFmZmVlZDEw
15
- MDYxYzk0Mjk4ZWY3NmU3MGM5MGFlMGQ1MmI0ZWZkY2I1NDNiOTg=
6
+ metadata.gz: b26b22ed5b094f5f8d4681b64daff7c516f3b45bc551e08f12ee195490c8264fadcb0dd44d2f26c31ec6d415555cb38258b3d4a0448eca0563f541f7dec7aa3f
7
+ data.tar.gz: d1914134f33715cba988e56aa107dfa8d04b17086729737f855bf0729b1404cc56960447df2c833d031795de30774a4d531de0ea096dd6b5967f6fe39e45995b
@@ -1,3 +1,3 @@
1
1
  module DtkCommonCore
2
- VERSION = "0.5.13"
2
+ VERSION = "0.6.0"
3
3
  end
data/lib/response.rb CHANGED
@@ -197,7 +197,7 @@ module DTK
197
197
  rescue ::RestClient::ServerBrokeConnection,::RestClient::RequestTimeout, Errno::ECONNREFUSED => e
198
198
  error_response({ErrorsSubFieldCode => RestClientErrors[e.class.to_s]||GenericError, ErrorsOriginalException => e},opts)
199
199
  rescue Exception => e
200
- error_response({ErrorsSubFieldCode => e.class.to_s, ErrorsOriginalException => e},opts)
200
+ error_response({ErrorsSubFieldCode => RestClientErrors[e.class.to_s], ErrorsOriginalException => e},opts)
201
201
  end
202
202
  end
203
203
 
@@ -210,6 +210,7 @@ module DTK
210
210
  "RestClient::Forbidden" => "forbidden",
211
211
  "RestClient::ServerBrokeConnection" => "broken",
212
212
  "RestClient::Request::Unauthorized" => "unauthorized",
213
+ "RestClient::ServiceUnavailable" => "unavailable",
213
214
  "RestClient::InternalServerError" => "internal_server_error",
214
215
  "RestClient::RequestTimeout" => "timeout",
215
216
  "RestClient::ResourceNotFound" => "resource_not_found",
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtk-common-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.13
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich PELAVIN
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-19 00:00:00.000000000 Z
11
+ date: 2014-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.6.7
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.6.7
27
27
  description: DTK Common Core is a shared library used by several DTK components.
@@ -31,7 +31,7 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - .gitignore
34
+ - ".gitignore"
35
35
  - Gemfile
36
36
  - LICENSE
37
37
  - README.md
@@ -55,17 +55,17 @@ require_paths:
55
55
  - lib
56
56
  required_ruby_version: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ! '>='
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
- - - ! '>='
63
+ - - ">="
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  requirements: []
67
67
  rubyforge_project:
68
- rubygems_version: 2.2.2
68
+ rubygems_version: 2.4.1
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: Common libraries used for DTK CLI client.