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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b3345f6917865639b2895b89958aca0b88cdd96
4
- data.tar.gz: d9d26b5a3eef9e0c28606b67d95c467806bef032
3
+ metadata.gz: 96f07221761eb8d26f5a578a475f5930c01f91e2
4
+ data.tar.gz: 662997446c34ca5817cb36a38a47293fdb2bbede
5
5
  SHA512:
6
- metadata.gz: 02eff17bccaa49fec2b0a58d16e30bdfd77fe978385c8f0831cb32682f5f5572174fcef790cff635b98cad7231bc06c11e34a05d8be81082fd50a8f054dfa193
7
- data.tar.gz: f1e4fe5cb7329a214cbf206dae0791bdc44b2fbc1a60b5f9a0dd1b849e6a3b98f50070c32fa50d2d21d8b87fdbec9ec3844420b5087784c14f459f7c16ab4000
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
@@ -65,13 +65,7 @@ module Cb
65
65
  end
66
66
 
67
67
  def error_message(processed_response)
68
- if processed_response['errors']
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
@@ -9,5 +9,5 @@
9
9
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
10
  # See the License for the specific language governing permissions and limitations under the License.
11
11
  module Cb
12
- VERSION = '21.3.3'
12
+ VERSION = '21.3.4'
13
13
  end
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.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-02 00:00:00.000000000 Z
11
+ date: 2016-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty