paychex 0.3.0 → 0.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
  SHA256:
3
- metadata.gz: 171053f3e759cd8a55b1ed442d838abd6ec038eeaa600c3476776dcd188af09e
4
- data.tar.gz: 6e1057927e3c8605d8892044ef6173ba140ec5dc0732968a8a6ae824776c4bbe
3
+ metadata.gz: 0d8c1e76ce3d290af931da10dff2ce1626232c07aa6262746ae02dc645bf0658
4
+ data.tar.gz: c65d3c9ebe541977fdf6cbb7cda77f64bd211a9c7100af9672eaf91ada68a50f
5
5
  SHA512:
6
- metadata.gz: cd1b46a147af931d70566f1ef948ffa420e9f194e0f79e3dc8c417d2c4f746ad55d48d8d3950d482e8db9165c4fb3e3277ec7120b8ed1c0a13e9d4220989119b
7
- data.tar.gz: 93ca764cd7bb16ecb65f2945fd824bbf6a00236051259d21e5b9eba0fbc467ab1541690cbdd37d9bfa0adb9c035f402681aceac50a8348da69ae5bc4300f7406
6
+ metadata.gz: 541b9c7761bca34390e6f442c7cfb681ac05a16af176a85354ead21c473c0c63e1dae6125ec32e5475f94c8f8ca1f16c1074e2cfb457b54bb91336fe22c463cf
7
+ data.tar.gz: cde1202bb0cbff066f77d5a58049baca171d19125bab7673fc7f73f22472722c0a4a3061cb0d4b440c0155422647297d7e8974e48420a52b7434eaaa0b100ea7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paychex (0.3.0)
4
+ paychex (0.3.2)
5
5
  addressable
6
6
  faraday
7
7
  faraday_middleware
@@ -40,12 +40,17 @@ module Paychex
40
40
  company = content[0]
41
41
  return {
42
42
  "company": company,
43
- "message": company.nil? ? 'not-found' : 'found'
43
+ "message": 'found'
44
+ }
45
+ rescue Paychex::NotFound => e
46
+ return {
47
+ "company": nil,
48
+ "message": 'not-found'
44
49
  }
45
50
  rescue Paychex::NoAccess => e
46
51
  return {
47
52
  "company": nil,
48
- "message": 'unknown'
53
+ "message": 'not-found'
49
54
  }
50
55
  rescue StandardError => e
51
56
  p 'Paychex Gem: Handle more errors'
@@ -1,3 +1,3 @@
1
1
  module Paychex
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paychex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mayank Dedhia
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-18 00:00:00.000000000 Z
11
+ date: 2023-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler