paychex_api 0.0.6 → 0.0.7

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
  SHA256:
3
- metadata.gz: fc00ec5a8405825185829380f0df8d122a491f61a867bcbb3b726197cace5fa8
4
- data.tar.gz: acd90fb4babca071be0b146aff187da6fbe8c10f2c958d9fb5fc9c92f945d420
3
+ metadata.gz: '09da23ef04fa2ed51fcbacbeeb403ee7b1ebd80d34315f7250ef0df4466396a4'
4
+ data.tar.gz: 867ef32e611a72e51927b735127e22e2e92b04d8155d95c7d293e503254945fa
5
5
  SHA512:
6
- metadata.gz: 2358dff6c297109a76ae2718b3cf6cfe435eb55e0106f4163114f92e143c343a59f0b43727d5fddb04803731bfcb3a4b44157ee10771793292f4c54f6bf2bf7a
7
- data.tar.gz: 2a4a3dfa007b7af1435ef604562253da7d105fa083e8efe2e33760cf18d3e0288485099479f47883a6f388c3e919d9e88ec274090e9acb80b4a00bcb24c3e053
6
+ metadata.gz: dc317ce455b82ec78c5149af7add45e2b1c49279e19d1732cfca6e87f72437f24727ab8784d08248f19ea361058432e4ecee61a86ff35a29db1c3d1f478d6afd
7
+ data.tar.gz: 5b7e5225ce91f61400188f6d6f04d843ae85e8e2f3821d72f13b20de2b841fd301c9c5b34b577b879f693fbfbd3c430e4d142686c5b5f143aa8d05d454369e9e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paychex_api (0.0.5)
4
+ paychex_api (0.0.7)
5
5
  faraday (~> 0.9.2)
6
6
  faraday_middleware (~> 0.9.2)
7
7
  footrest (>= 0.5.1)
@@ -20,7 +20,7 @@ module PaychexAPI
20
20
  @api_client = api_client
21
21
  @links = []
22
22
  @metadata = {}
23
- @errors = response.body['errors'] if response.body && response.body.key?('errors')
23
+ @errors = response.body['errors'] if response.body.is_a?(Hash) && response.body.key?('errors')
24
24
  case response.status
25
25
  when *((200..206).to_a + [302])
26
26
  apply_response_metadata(response)
@@ -1,3 +1,3 @@
1
1
  module PaychexAPI
2
- VERSION = '0.0.6'.freeze unless defined?(PaychexAPI::VERSION)
2
+ VERSION = '0.0.7'.freeze unless defined?(PaychexAPI::VERSION)
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paychex_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Shaffer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-18 00:00:00.000000000 Z
11
+ date: 2018-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler