cb-api 21.3.3 → 21.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/lib/cb/utils/validator.rb +1 -7
- data/lib/cb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96f07221761eb8d26f5a578a475f5930c01f91e2
|
4
|
+
data.tar.gz: 662997446c34ca5817cb36a38a47293fdb2bbede
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7e84d05a1ba7d756366cf37ee1977f784a014e37c10f5654d42b8807de47ba45ae59bc84065a0864bdaf698a0bc62a3ab876b3899931c9110bfc946fb0272e4
|
7
|
+
data.tar.gz: a83010a54604ce2e581dabdc33e9c1e3f2b011f171aada594c73de7db56e39a02f91ebc8cbdc742f8355c6a3e36d5c43be21914e1e4cc3dd8398d05fe5b227ca
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,7 @@ Version History
|
|
2
2
|
====
|
3
3
|
* All Version bumps are required to update this file as well!!
|
4
4
|
----
|
5
|
+
* 21.3.4 Code cleanup - no change in functionality
|
5
6
|
* 21.3.3 Get whole error node, not just first. Check for 'Errors' instead of just 'errors'
|
6
7
|
* 21.3.2 Follow style guide more closely and use `.first` + return empty string when no errors node
|
7
8
|
* 21.3.1 Add error message to error raised from API
|
data/lib/cb/utils/validator.rb
CHANGED
@@ -65,13 +65,7 @@ module Cb
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def error_message(processed_response)
|
68
|
-
|
69
|
-
processed_response['errors']
|
70
|
-
elsif processed_response['Errors']
|
71
|
-
processed_response['Errors']
|
72
|
-
else
|
73
|
-
''
|
74
|
-
end
|
68
|
+
processed_response.fetch('errors', processed_response.fetch('Errors', ''))
|
75
69
|
end
|
76
70
|
end
|
77
71
|
end
|
data/lib/cb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cb-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 21.3.
|
4
|
+
version: 21.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The CareerBuilder.com Niche and Consumer Development teams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|