cb-api 21.3.1 → 21.3.2

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: e49f5df0c2a9d5555243e2f782648536d739f8d3
4
- data.tar.gz: 7eaa6c5b60e25efe0a968a0ee07242b9b3d4da06
3
+ metadata.gz: 7b3d3467a541fe01fbf677fa7c6c21b6dc1e7530
4
+ data.tar.gz: f312799f899a88f53a5bb1b62ea5a8100fdedf6a
5
5
  SHA512:
6
- metadata.gz: 15a4cae232d431d1cfe5fcca86b39e8f60fee53d641b5357fc93c06b70b5163b3c2ae0f1024b178958fd6dec07e95c05c6a3512508ce69c0c7cb50953448e20f
7
- data.tar.gz: 3044d9860482c013e23154bb456ee195fc3154242cdbdebe59a6590ad8f3690290e88df4e042adcadae520d9400ec2ee045ae4c5c2643a56e294356d7364e6f2
6
+ metadata.gz: 1425f28549f07ce7e5c2bc59a7de9baab6f4163b64c54644fdaae821fedc8acf8d78c0c4a37b85148b2b5c9e66674d8b05f12db70785b6397201240a7f067f64
7
+ data.tar.gz: 1aefdd8c9981287f2e361ae7ef7c8fb87beb4cc7b1048c4c062e47919c6011e6ce02121b6d87b0027f8b922aa16fed9dc283027e6f73a730236a371e5ee7264b
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.2 Follow style guide more closely and use `.first` + return empty string when no errors node
5
6
  * 21.3.1 Add error message to error raised from API
6
7
  * 21.3.0 Add better error message to MissingRequiredField error in api_response
7
8
  * 21.2.0 Add User Profile API (/consumer/user-profile)
@@ -32,7 +32,7 @@ module Cb
32
32
 
33
33
  def fail_with_error_details(response, error_type)
34
34
  processed_response = process_response_body(response)
35
- error_message = processed_response['errors'] ? processed_response['errors'][0] : nil
35
+ error_message = processed_response['errors'] ? processed_response['errors'].first : ''
36
36
  error = error_type.new(error_message)
37
37
  error.code = response.code rescue nil
38
38
  error.raw_response = response
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.1'
12
+ VERSION = '21.3.2'
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cb-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 21.3.1
4
+ version: 21.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - The CareerBuilder.com Niche and Consumer Development teams