paychex_api 0.0.20 → 0.0.25

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: a8ffb1114431bb76c64cf47da490946cec62329249293a87e11b61f4efaa35bc
4
- data.tar.gz: '08a4b3f161bc09036eb6fc73ddce4ef318a98835838cac194997f66938c37379'
3
+ metadata.gz: 28e5713e53b656a1ea003fffa4ea22e249beed79b88b65efebe0c63365c0e36c
4
+ data.tar.gz: 77b3c66897ee0b9dab9661aa0d7d3505198d585f05ba8394f36d2af121dbdae1
5
5
  SHA512:
6
- metadata.gz: acea12799fc9d3db54d68dcd4aead74bab8ee48e30028e80e475bb8c7c0bf14654ef0208165d6d49f5497dff9ec1f6241c15a372b27e3f2e59c571af644f0c94
7
- data.tar.gz: f4a884fe4f68c24c9218dc63ceaf74153a6715b36fae4d9384189e56df141ee4f2ae8740f27df0c192bbdf35ea658e61169e5fb56b54d4813feac065c7f38c5a
6
+ metadata.gz: 40ae78528ac7ef837ca25006124397dd99dd5bfda4d4f765d7a39c75e5b8c1dda6a0216ece16c203101a01153836601842290b8054f909fc71d242d40fcc3c07
7
+ data.tar.gz: 2dcead30a08cfb0e4d445b9b467154473bdb0d0dec41ac857253ab1bc89a4c74863938dc91ab389404383e60c5739f0913b5bd6e6ce3cec2674abe22c697a67d
@@ -1,64 +1,71 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paychex_api (0.0.19)
5
- faraday (~> 0.9.2)
6
- faraday_middleware (~> 0.9.2)
4
+ paychex_api (0.0.25)
5
+ faraday (~> 0.9)
6
+ faraday_middleware (>= 0.12.2)
7
7
  footrest (>= 0.5.1)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (5.2.0)
12
+ activesupport (6.0.3.2)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
14
  i18n (>= 0.7, < 2)
15
15
  minitest (~> 5.1)
16
16
  tzinfo (~> 1.1)
17
- addressable (2.5.2)
18
- public_suffix (>= 2.0.2, < 4.0)
19
- ast (2.4.0)
20
- byebug (8.2.5)
21
- coderay (1.1.2)
22
- concurrent-ruby (1.0.5)
17
+ zeitwerk (~> 2.2, >= 2.2.2)
18
+ addressable (2.7.0)
19
+ public_suffix (>= 2.0.2, < 5.0)
20
+ ast (2.4.1)
21
+ byebug (11.1.3)
22
+ coderay (1.1.3)
23
+ concurrent-ruby (1.1.6)
23
24
  crack (0.4.3)
24
25
  safe_yaml (~> 1.0.0)
25
- diff-lcs (1.3)
26
- docile (1.3.0)
27
- faraday (0.9.2)
26
+ diff-lcs (1.4.4)
27
+ docile (1.3.2)
28
+ faraday (0.17.3)
28
29
  multipart-post (>= 1.2, < 3)
29
- faraday_middleware (0.9.2)
30
- faraday (>= 0.7.4, < 0.10)
30
+ faraday_middleware (0.14.0)
31
+ faraday (>= 0.7.4, < 1.0)
31
32
  footrest (0.5.3)
32
33
  activesupport (>= 3.0.0)
33
34
  faraday (>= 0.9.0, < 1)
34
35
  link_header (>= 0.0.7)
35
- gergich (0.2.2)
36
- httparty (~> 0.6)
37
- sqlite3 (~> 1.3)
38
- hashdiff (0.3.7)
39
- httparty (0.16.2)
36
+ gergich (1.2.0)
37
+ httparty (~> 0.17)
38
+ sqlite3 (~> 1.4)
39
+ hashdiff (1.0.1)
40
+ httparty (0.18.1)
41
+ mime-types (~> 3.0)
40
42
  multi_xml (>= 0.5.2)
41
- i18n (1.0.1)
43
+ i18n (1.8.5)
42
44
  concurrent-ruby (~> 1.0)
43
- json (2.1.0)
44
45
  link_header (0.0.8)
45
- method_source (0.9.0)
46
- minitest (5.11.3)
46
+ method_source (1.0.0)
47
+ mime-types (3.3.1)
48
+ mime-types-data (~> 3.2015)
49
+ mime-types-data (3.2020.0512)
50
+ minitest (5.14.1)
47
51
  multi_xml (0.6.0)
48
- multipart-post (2.0.0)
49
- parallel (1.12.1)
50
- parser (2.5.1.0)
51
- ast (~> 2.4.0)
52
- powerpack (0.1.1)
53
- pry (0.11.3)
54
- coderay (~> 1.1.0)
55
- method_source (~> 0.9.0)
56
- public_suffix (3.0.1)
57
- rack (1.6.8)
58
- rack-protection (1.5.3)
52
+ multipart-post (2.1.1)
53
+ mustermann (1.1.1)
54
+ ruby2_keywords (~> 0.0.1)
55
+ parallel (1.19.2)
56
+ parser (2.7.1.4)
57
+ ast (~> 2.4.1)
58
+ pry (0.13.1)
59
+ coderay (~> 1.1)
60
+ method_source (~> 1.0)
61
+ public_suffix (4.0.5)
62
+ rack (2.2.3)
63
+ rack-protection (2.0.8.1)
59
64
  rack
60
65
  rainbow (3.0.0)
61
- rake (0.9.6)
66
+ rake (13.0.1)
67
+ regexp_parser (1.7.1)
68
+ rexml (3.2.4)
62
69
  rspec (2.99.0)
63
70
  rspec-core (~> 2.99.0)
64
71
  rspec-expectations (~> 2.99.0)
@@ -67,51 +74,56 @@ GEM
67
74
  rspec-expectations (2.99.2)
68
75
  diff-lcs (>= 1.1.3, < 2.0)
69
76
  rspec-mocks (2.99.4)
70
- rubocop (0.54.0)
77
+ rubocop (0.88.0)
71
78
  parallel (~> 1.10)
72
- parser (>= 2.5)
73
- powerpack (~> 0.1)
79
+ parser (>= 2.7.1.1)
74
80
  rainbow (>= 2.2.2, < 4.0)
81
+ regexp_parser (>= 1.7)
82
+ rexml
83
+ rubocop-ast (>= 0.1.0, < 1.0)
75
84
  ruby-progressbar (~> 1.7)
76
- unicode-display_width (~> 1.0, >= 1.0.1)
77
- ruby-progressbar (1.9.0)
78
- safe_yaml (1.0.4)
79
- simplecov (0.16.1)
85
+ unicode-display_width (>= 1.4.0, < 2.0)
86
+ rubocop-ast (0.2.0)
87
+ parser (>= 2.7.0.1)
88
+ ruby-progressbar (1.10.1)
89
+ ruby2_keywords (0.0.2)
90
+ safe_yaml (1.0.5)
91
+ simplecov (0.18.5)
80
92
  docile (~> 1.1)
81
- json (>= 1.8, < 3)
82
- simplecov-html (~> 0.10.0)
83
- simplecov-html (0.10.2)
84
- sinatra (1.4.8)
85
- rack (~> 1.5)
86
- rack-protection (~> 1.4)
87
- tilt (>= 1.3, < 3)
88
- sqlite3 (1.3.13)
93
+ simplecov-html (~> 0.11)
94
+ simplecov-html (0.12.2)
95
+ sinatra (2.0.8.1)
96
+ mustermann (~> 1.0)
97
+ rack (~> 2.0)
98
+ rack-protection (= 2.0.8.1)
99
+ tilt (~> 2.0)
100
+ sqlite3 (1.4.2)
89
101
  thread_safe (0.3.6)
90
- tilt (1.4.1)
91
- tzinfo (1.2.5)
102
+ tilt (2.0.10)
103
+ tzinfo (1.2.7)
92
104
  thread_safe (~> 0.1)
93
- unicode-display_width (1.3.2)
94
- webmock (1.22.6)
105
+ unicode-display_width (1.7.0)
106
+ webmock (3.8.3)
95
107
  addressable (>= 2.3.6)
96
108
  crack (>= 0.3.2)
97
- hashdiff
109
+ hashdiff (>= 0.4.0, < 2.0.0)
110
+ zeitwerk (2.4.0)
98
111
 
99
112
  PLATFORMS
100
113
  ruby
101
114
 
102
115
  DEPENDENCIES
103
- bundler (~> 1.0, >= 1.0.0)
104
- byebug (~> 8.2.2)
105
- gergich (~> 0.2.2)
116
+ bundler (>= 1.0)
117
+ byebug (>= 8.2)
118
+ gergich (~> 1.0)
106
119
  paychex_api!
107
- pry (~> 0)
108
- rake (~> 0)
120
+ pry (>= 0.12)
121
+ rake (>= 1.0)
109
122
  rspec (~> 2.6)
110
- rubocop (~> 0.54.0)
111
- simplecov (~> 0.16.1)
112
- sinatra (~> 1.0)
113
- tilt (~> 1.3, >= 1.3.4)
114
- webmock (~> 1.22.6)
123
+ rubocop (~> 0.54)
124
+ simplecov (~> 0.16)
125
+ sinatra (>= 1.0, < 3)
126
+ webmock (>= 1.22)
115
127
 
116
128
  BUNDLED WITH
117
- 1.16.1
129
+ 1.17.3
@@ -0,0 +1 @@
1
+ # paychex-api [![Build Status](https://semaphoreci.com/api/v1/projects/4e099653-8dee-49ac-9842-99cc0d62d29c/3343193/badge.svg)](https://semaphoreci.com/neomind/paychex-api)
@@ -94,14 +94,24 @@ module PaychexAPI
94
94
  @members.concat(get_response_content(response))
95
95
  end
96
96
 
97
- def get_page(url, params = {})
97
+ def get_page(url, params = {}, tries=0)
98
98
  query = URI.parse(url).query
99
99
  p = CGI.parse(query).merge(params)
100
100
  u = url.gsub("?#{query}", '')
101
101
  p.each { |k, v| p[k] = v.first if v.is_a?(Array) }
102
- @api_client.connection.send(:get) do |r|
102
+ resp = @api_client.connection.send(:get) do |r|
103
103
  r.url(u, p)
104
104
  end
105
+ tries = 0 if status == 200
106
+ resp
107
+ rescue Footrest::HttpError::Unauthorized => e
108
+ if tries == 0
109
+ # token may have expired for long running pagination requests, refresh and try again
110
+ @api_client.refresh_token!
111
+ get_page(url, params, (tries +1))
112
+ else
113
+ raise e
114
+ end
105
115
  end
106
116
 
107
117
  def load_page(url)
@@ -13,6 +13,7 @@ require 'paychex_api/api_array'
13
13
  module PaychexAPI
14
14
  class Client < Footrest::Client
15
15
  API_PATH = ''.freeze
16
+ STATUS_PATH = '/status'.freeze
16
17
  COMPANIES_PATH = '/companies'.freeze
17
18
  ASSOCIATIONS_PATH = '/'.freeze
18
19
  ORGANIZATIONS_PATH = '/organizations'.freeze
@@ -49,6 +50,12 @@ module PaychexAPI
49
50
  authorize if @authorization.blank? || @authorization['expiration'] <= Time.now - 30.seconds
50
51
  @authorization['access_token']
51
52
  end
53
+
54
+ def refresh_token!
55
+ config.delete(:token)
56
+ authorize
57
+ connection.headers[:authorization] = "Bearer #{token}"
58
+ end
52
59
 
53
60
  def authorize
54
61
  response = faraday_auth.post(
@@ -106,7 +113,7 @@ module PaychexAPI
106
113
  end
107
114
 
108
115
  def faraday_proxy(faraday)
109
- faraday.proxy PaychexAPI.proxy if PaychexAPI.proxy
116
+ faraday.proxy = PaychexAPI.proxy if PaychexAPI.proxy
110
117
  faraday
111
118
  end
112
119
 
@@ -19,7 +19,7 @@ module PaychexAPI
19
19
 
20
20
  def get_company_workers(company_id, params = {})
21
21
  connection.headers[:accept] = "application/json;profile='http://api.paychex.com/profiles/workers_users/nonpii/v1'"
22
- get("#{API_PATH}#{COMPANIES_PATH}/#{company_id}/#{WORKERS_PATH}", params)
22
+ get("#{API_PATH}#{COMPANIES_PATH}/#{company_id}#{WORKERS_PATH}", params)
23
23
  end
24
24
 
25
25
  def get_company_by_display_id(display_id, params = {})
@@ -2,7 +2,7 @@ module PaychexAPI
2
2
  class Client
3
3
  module Notifications
4
4
  def send_notification(notification_id, params = {})
5
- post("#{API_PATH}#{NOTIFICATIONS_PATH}/#{notification_id}", params)
5
+ post("#{API_PATH}#{NOTIFICATIONS_PATH}/#{URI.escape(notification_id)}", params)
6
6
  end
7
7
  end
8
8
  end
@@ -0,0 +1,17 @@
1
+ module PaychexAPI
2
+ class Client
3
+ module Statuses
4
+ def company_status(params={})
5
+ get("#{API_PATH}#{STATUS_PATH}/company", params)
6
+ end
7
+
8
+ def user_status(params={})
9
+ get("#{API_PATH}#{STATUS_PATH}/user", params)
10
+ end
11
+
12
+ def worker_status(params={})
13
+ get("#{API_PATH}#{STATUS_PATH}/worker", params)
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module PaychexAPI
2
- VERSION = '0.0.20'.freeze unless defined?(PaychexAPI::VERSION)
2
+ VERSION = '0.0.25'.freeze unless defined?(PaychexAPI::VERSION)
3
3
  end
@@ -18,19 +18,18 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ['lib']
19
19
  gem.version = PaychexAPI::VERSION
20
20
 
21
- gem.add_development_dependency 'bundler', '~> 1.0', '>= 1.0.0'
22
- gem.add_development_dependency 'byebug', '~> 8.2.2'
23
- gem.add_development_dependency 'gergich', '~> 0.2.2'
24
- gem.add_development_dependency 'pry', '~> 0'
25
- gem.add_development_dependency 'rake', '~> 0'
21
+ gem.add_development_dependency 'bundler', '>= 1.0'
22
+ gem.add_development_dependency 'byebug', '>= 8.2'
23
+ gem.add_development_dependency 'gergich', '~> 1.0'
24
+ gem.add_development_dependency 'pry', '>= 0.12'
25
+ gem.add_development_dependency 'rake', '>= 1.0'
26
26
  gem.add_development_dependency 'rspec', '~> 2.6'
27
- gem.add_development_dependency 'rubocop', '~> 0.54.0'
28
- gem.add_development_dependency 'simplecov', '~> 0.16.1'
29
- gem.add_development_dependency 'sinatra', '~> 1.0'
30
- gem.add_development_dependency 'tilt', '>= 1.3.4', '~> 1.3'
31
- gem.add_development_dependency 'webmock', '~>1.22.6'
27
+ gem.add_development_dependency 'rubocop', '~> 0.54'
28
+ gem.add_development_dependency 'simplecov', '~> 0.16'
29
+ gem.add_development_dependency 'sinatra', '>= 1.0', '< 3'
30
+ gem.add_development_dependency 'webmock', '>= 1.22'
32
31
 
33
- gem.add_dependency 'faraday', '~> 0.9.2'
32
+ gem.add_dependency 'faraday', '~> 0.9'
34
33
  gem.add_dependency 'faraday_middleware', '>= 0.12.2'
35
34
  gem.add_dependency 'footrest', '>= 0.5.1'
36
35
  end
@@ -0,0 +1,5 @@
1
+ {
2
+ "health": {
3
+ "status": "UP"
4
+ }
5
+ }
@@ -10,4 +10,11 @@ describe PaychexAPI::Client::Notifications do
10
10
  response = @client.send_notification('f7f9c815-0d4c-46e5-9434-5cc19470d1ed-3520000031155394')
11
11
  expect(response.status).to(eq(200))
12
12
  end
13
+
14
+ it 'should URI escape a notification id' do
15
+ expect_any_instance_of(PaychexAPI::Client::Notifications)
16
+ .to receive(:post)
17
+ .with("/notifications/f7f9c815-0d4c-46e5-9434-5cc1%209470d1ed-3520000031155394", {})
18
+ @client.send_notification('f7f9c815-0d4c-46e5-9434-5cc1 9470d1ed-3520000031155394')
19
+ end
13
20
  end
@@ -0,0 +1,23 @@
1
+ require 'test_helper'
2
+ describe PaychexAPI::Client::Statuses do
3
+ before do
4
+ @client = PaychexAPI::Client.new(
5
+ prefix: 'http://test.paychex.com', client_id: 'client_id', client_secret: 'client_secret'
6
+ )
7
+ end
8
+
9
+ it 'should get company status' do
10
+ response = @client.company_status
11
+ expect(response['health']['status']).to(eq('UP'))
12
+ end
13
+
14
+ it 'should get user status' do
15
+ response = @client.user_status
16
+ expect(response['health']['status']).to(eq('UP'))
17
+ end
18
+
19
+ it 'should get worker status' do
20
+ response = @client.worker_status
21
+ expect(response['health']['status']).to(eq('UP'))
22
+ end
23
+ end
@@ -3,25 +3,25 @@ require 'tilt'
3
3
 
4
4
  class FakePaychex < Sinatra::Base
5
5
  # auth
6
- post %r{/auth/oauth/v2/token$} do
6
+ post %r{/auth/oauth/v2/token} do
7
7
  get_json_data 200, 'auth.json'
8
8
  end
9
9
 
10
10
  # workers
11
- get %r{/companies/.*/workers.*$} do
11
+ get %r{/companies/.*/workers.*} do
12
12
  get_json_data 200, 'workers.json'
13
13
  end
14
14
 
15
15
  # workers
16
- get %r{/companies/.*/workers/\+d+$} do
16
+ get %r{/companies/.*/workers/\+d+} do
17
17
  get_json_data 200, 'workers.json'
18
18
  end
19
19
 
20
- get %r{/workers/\d+$} do
20
+ get %r{/workers/\d+} do
21
21
  get_json_data 200, 'workers.json'
22
22
  end
23
23
 
24
- get %r{/workers/\d+/users$} do
24
+ get %r{/workers/\d+/users} do
25
25
  case request.env['HTTP_ACCEPT']
26
26
  when "application/json;profile='http://api.paychex.com/profiles/users/v1'"
27
27
  get_json_data 200, 'users.json'
@@ -30,29 +30,29 @@ class FakePaychex < Sinatra::Base
30
30
  end
31
31
  end
32
32
 
33
- get %r{/workers/\d+/communications$} do
33
+ get %r{/workers/\d+/communications} do
34
34
  get_json_data 200, 'communications.json'
35
35
  end
36
36
 
37
- get %r{/workers/\d+/communications/\d+$} do
37
+ get %r{/workers/\d+/communications/\d+} do
38
38
  get_json_data 200, 'communications.json'
39
39
  end
40
40
 
41
- post %r{/workers/\d+/communications$} do
41
+ post %r{/workers/\d+/communications} do
42
42
  get_json_data 200, 'communications.json'
43
43
  end
44
44
 
45
- put %r{/workers/\d+/communications/\d+$} do
45
+ put %r{/workers/\d+/communications/\d+} do
46
46
  get_json_data 200, 'communications.json'
47
47
  end
48
48
 
49
- delete %r{/workers/\d+/communications/\d+$} do
49
+ delete %r{/workers/\d+/communications/\d+} do
50
50
  get_json_data 200, 'communications.json'
51
51
  end
52
52
 
53
53
  # companies
54
54
 
55
- get %r{/companies/[A-Za-z0-9]+$} do
55
+ get %r{/companies/[A-Za-z0-9]+} do
56
56
  case request.env['HTTP_ACCEPT']
57
57
  when "application/json;profile='http://api.paychex.com/profiles/company_associations/v1'"
58
58
  get_json_data 200, 'companies_associations.json'
@@ -61,38 +61,43 @@ class FakePaychex < Sinatra::Base
61
61
  end
62
62
  end
63
63
 
64
- get %r{/companies$} do
64
+ get %r{/companies} do
65
65
  get_json_data 200, 'companies.json'
66
66
  end
67
67
 
68
- get %r{/companies/[A-Za-z0-9]+/organizations+$} do
68
+ get %r{/companies/[A-Za-z0-9]+/organizations+} do
69
69
  get_json_data 200, 'organizations.json'
70
70
  end
71
71
 
72
- post %r{/companies/[A-Za-z0-9]+/purchases+$} do
72
+ post %r{/companies/[A-Za-z0-9]+/purchases+} do
73
73
  get_json_data 200, 'organizations.json'
74
74
  end
75
75
 
76
76
  # Notifications
77
77
 
78
- post %r{/notifications/\S+$} do
78
+ post %r{/notifications/\S+} do
79
79
  get_json_data 200, 'communications.json'
80
80
  end
81
81
 
82
82
  # Messages
83
83
 
84
- post %r{/messages$} do
84
+ post %r{/messages} do
85
85
  get_json_data 201, 'messages.json'
86
86
  end
87
87
 
88
- get %r{/users.*$} do
88
+ get %r{/users.*} do
89
89
  get_json_data 200, 'users.json'
90
90
  end
91
91
 
92
- get %r{/users/\S/workers+$} do
92
+ get %r{/users/\S/workers+} do
93
93
  get_json_data 200, 'workers.json'
94
94
  end
95
95
 
96
+ # Statuses
97
+ get %r{/status.*} do
98
+ get_json_data 200, 'status.json'
99
+ end
100
+
96
101
  private
97
102
 
98
103
  def get_json_data(response_code, file_name)
metadata CHANGED
@@ -1,91 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paychex_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Shaffer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-05 00:00:00.000000000 Z
11
+ date: 2020-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.0'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
- version: 1.0.0
19
+ version: '1.0'
23
20
  type: :development
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '1.0'
30
24
  - - ">="
31
25
  - !ruby/object:Gem::Version
32
- version: 1.0.0
26
+ version: '1.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: byebug
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
- - - "~>"
31
+ - - ">="
38
32
  - !ruby/object:Gem::Version
39
- version: 8.2.2
33
+ version: '8.2'
40
34
  type: :development
41
35
  prerelease: false
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
- - - "~>"
38
+ - - ">="
45
39
  - !ruby/object:Gem::Version
46
- version: 8.2.2
40
+ version: '8.2'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: gergich
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
45
  - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: 0.2.2
47
+ version: '1.0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
51
  requirements:
58
52
  - - "~>"
59
53
  - !ruby/object:Gem::Version
60
- version: 0.2.2
54
+ version: '1.0'
61
55
  - !ruby/object:Gem::Dependency
62
56
  name: pry
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
- - - "~>"
59
+ - - ">="
66
60
  - !ruby/object:Gem::Version
67
- version: '0'
61
+ version: '0.12'
68
62
  type: :development
69
63
  prerelease: false
70
64
  version_requirements: !ruby/object:Gem::Requirement
71
65
  requirements:
72
- - - "~>"
66
+ - - ">="
73
67
  - !ruby/object:Gem::Version
74
- version: '0'
68
+ version: '0.12'
75
69
  - !ruby/object:Gem::Dependency
76
70
  name: rake
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
- - - "~>"
73
+ - - ">="
80
74
  - !ruby/object:Gem::Version
81
- version: '0'
75
+ version: '1.0'
82
76
  type: :development
83
77
  prerelease: false
84
78
  version_requirements: !ruby/object:Gem::Requirement
85
79
  requirements:
86
- - - "~>"
80
+ - - ">="
87
81
  - !ruby/object:Gem::Version
88
- version: '0'
82
+ version: '1.0'
89
83
  - !ruby/object:Gem::Dependency
90
84
  name: rspec
91
85
  requirement: !ruby/object:Gem::Requirement
@@ -106,90 +100,76 @@ dependencies:
106
100
  requirements:
107
101
  - - "~>"
108
102
  - !ruby/object:Gem::Version
109
- version: 0.54.0
103
+ version: '0.54'
110
104
  type: :development
111
105
  prerelease: false
112
106
  version_requirements: !ruby/object:Gem::Requirement
113
107
  requirements:
114
108
  - - "~>"
115
109
  - !ruby/object:Gem::Version
116
- version: 0.54.0
110
+ version: '0.54'
117
111
  - !ruby/object:Gem::Dependency
118
112
  name: simplecov
119
113
  requirement: !ruby/object:Gem::Requirement
120
114
  requirements:
121
115
  - - "~>"
122
116
  - !ruby/object:Gem::Version
123
- version: 0.16.1
117
+ version: '0.16'
124
118
  type: :development
125
119
  prerelease: false
126
120
  version_requirements: !ruby/object:Gem::Requirement
127
121
  requirements:
128
122
  - - "~>"
129
123
  - !ruby/object:Gem::Version
130
- version: 0.16.1
124
+ version: '0.16'
131
125
  - !ruby/object:Gem::Dependency
132
126
  name: sinatra
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: '1.0'
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: '1.0'
145
- - !ruby/object:Gem::Dependency
146
- name: tilt
147
127
  requirement: !ruby/object:Gem::Requirement
148
128
  requirements:
149
129
  - - ">="
150
130
  - !ruby/object:Gem::Version
151
- version: 1.3.4
152
- - - "~>"
131
+ version: '1.0'
132
+ - - "<"
153
133
  - !ruby/object:Gem::Version
154
- version: '1.3'
134
+ version: '3'
155
135
  type: :development
156
136
  prerelease: false
157
137
  version_requirements: !ruby/object:Gem::Requirement
158
138
  requirements:
159
139
  - - ">="
160
140
  - !ruby/object:Gem::Version
161
- version: 1.3.4
162
- - - "~>"
141
+ version: '1.0'
142
+ - - "<"
163
143
  - !ruby/object:Gem::Version
164
- version: '1.3'
144
+ version: '3'
165
145
  - !ruby/object:Gem::Dependency
166
146
  name: webmock
167
147
  requirement: !ruby/object:Gem::Requirement
168
148
  requirements:
169
- - - "~>"
149
+ - - ">="
170
150
  - !ruby/object:Gem::Version
171
- version: 1.22.6
151
+ version: '1.22'
172
152
  type: :development
173
153
  prerelease: false
174
154
  version_requirements: !ruby/object:Gem::Requirement
175
155
  requirements:
176
- - - "~>"
156
+ - - ">="
177
157
  - !ruby/object:Gem::Version
178
- version: 1.22.6
158
+ version: '1.22'
179
159
  - !ruby/object:Gem::Dependency
180
160
  name: faraday
181
161
  requirement: !ruby/object:Gem::Requirement
182
162
  requirements:
183
163
  - - "~>"
184
164
  - !ruby/object:Gem::Version
185
- version: 0.9.2
165
+ version: '0.9'
186
166
  type: :runtime
187
167
  prerelease: false
188
168
  version_requirements: !ruby/object:Gem::Requirement
189
169
  requirements:
190
170
  - - "~>"
191
171
  - !ruby/object:Gem::Version
192
- version: 0.9.2
172
+ version: '0.9'
193
173
  - !ruby/object:Gem::Dependency
194
174
  name: faraday_middleware
195
175
  requirement: !ruby/object:Gem::Requirement
@@ -231,6 +211,7 @@ files:
231
211
  - Dockerfile
232
212
  - Gemfile
233
213
  - Gemfile.lock
214
+ - README.md
234
215
  - bin/jenkins
235
216
  - build.sh
236
217
  - docker-compose.yml
@@ -242,6 +223,7 @@ files:
242
223
  - lib/paychex_api/client/messages.rb
243
224
  - lib/paychex_api/client/notifications.rb
244
225
  - lib/paychex_api/client/purchases.rb
226
+ - lib/paychex_api/client/statuses.rb
245
227
  - lib/paychex_api/client/users.rb
246
228
  - lib/paychex_api/client/workers.rb
247
229
  - lib/paychex_api/version.rb
@@ -253,6 +235,7 @@ files:
253
235
  - spec/fixtures/companies_associations.json
254
236
  - spec/fixtures/messages.json
255
237
  - spec/fixtures/organizations.json
238
+ - spec/fixtures/status.json
256
239
  - spec/fixtures/users.json
257
240
  - spec/fixtures/workers.json
258
241
  - spec/paychex_api/api_array_spec.rb
@@ -261,6 +244,7 @@ files:
261
244
  - spec/paychex_api/client/messages_spec.rb
262
245
  - spec/paychex_api/client/notifications_spec.rb
263
246
  - spec/paychex_api/client/purchases_spec.rb
247
+ - spec/paychex_api/client/statuses_spec.rb
264
248
  - spec/paychex_api/client/users_spec.rb
265
249
  - spec/paychex_api/client/workers_spec.rb
266
250
  - spec/paychex_api/client_spec.rb
@@ -271,7 +255,7 @@ homepage: ''
271
255
  licenses:
272
256
  - MIT
273
257
  metadata: {}
274
- post_install_message:
258
+ post_install_message:
275
259
  rdoc_options: []
276
260
  require_paths:
277
261
  - lib
@@ -286,30 +270,31 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
270
  - !ruby/object:Gem::Version
287
271
  version: '0'
288
272
  requirements: []
289
- rubyforge_project:
290
- rubygems_version: 2.7.3
291
- signing_key:
273
+ rubygems_version: 3.0.3
274
+ signing_key:
292
275
  specification_version: 4
293
276
  summary: Paychex API
294
277
  test_files:
295
- - spec/fixtures/association_companies.json
296
- - spec/fixtures/auth.json
297
- - spec/fixtures/communications.json
298
- - spec/fixtures/companies.json
299
- - spec/fixtures/companies_associations.json
300
- - spec/fixtures/messages.json
301
- - spec/fixtures/organizations.json
302
- - spec/fixtures/users.json
303
- - spec/fixtures/workers.json
278
+ - spec/paychex_api/paychex_api_spec.rb
279
+ - spec/paychex_api/client_spec.rb
304
280
  - spec/paychex_api/api_array_spec.rb
305
- - spec/paychex_api/client/associations_spec.rb
306
281
  - spec/paychex_api/client/companies_spec.rb
307
- - spec/paychex_api/client/messages_spec.rb
308
- - spec/paychex_api/client/notifications_spec.rb
282
+ - spec/paychex_api/client/associations_spec.rb
309
283
  - spec/paychex_api/client/purchases_spec.rb
284
+ - spec/paychex_api/client/statuses_spec.rb
310
285
  - spec/paychex_api/client/users_spec.rb
286
+ - spec/paychex_api/client/messages_spec.rb
311
287
  - spec/paychex_api/client/workers_spec.rb
312
- - spec/paychex_api/client_spec.rb
313
- - spec/paychex_api/paychex_api_spec.rb
288
+ - spec/paychex_api/client/notifications_spec.rb
314
289
  - spec/support/fake_paychex.rb
290
+ - spec/fixtures/messages.json
291
+ - spec/fixtures/organizations.json
292
+ - spec/fixtures/users.json
293
+ - spec/fixtures/companies.json
294
+ - spec/fixtures/workers.json
295
+ - spec/fixtures/auth.json
296
+ - spec/fixtures/communications.json
297
+ - spec/fixtures/association_companies.json
298
+ - spec/fixtures/status.json
299
+ - spec/fixtures/companies_associations.json
315
300
  - spec/test_helper.rb