paychex_api 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ module PaychexAPI
2
+ class Client
3
+ module Associations
4
+ def get_association_companies(association_id, params = {})
5
+ connection.headers[:accept] = "application/json;profile='https://api.paychex.com/profiles/association_companies/v1"
6
+ get("#{API_PATH}#{COMPANIES_PATH}?association_id=#{association_id}", params)
7
+ end
8
+ end
9
+ end
10
+ end
@@ -1,24 +1,27 @@
1
1
  module PaychexAPI
2
2
  class Client
3
3
  module Companies
4
-
5
4
  def get_company(company_id, params = {})
6
5
  get("#{API_PATH}#{COMPANIES_PATH}/#{company_id}", params)
7
6
  end
8
7
 
8
+ def get_company_associations(company_id, params = {})
9
+ connection.headers[:accept] = "application/json;profile='https://api.paychex.com/profiles/company_associations/v1"
10
+ get("#{API_PATH}#{COMPANIES_PATH}/#{company_id}", params)
11
+ end
12
+
9
13
  def get_company_by_display_id(display_id, params = {})
10
- params = params.merge({displayid: display_id})
14
+ params = params.merge(displayid: display_id)
11
15
  get("#{API_PATH}#{COMPANIES_PATH}", params)
12
16
  end
13
17
 
14
- def get_organizations(company_id, organization_id, params = {})
18
+ def get_organizations(company_id, _organization_id, params = {})
15
19
  get("#{API_PATH}#{COMPANIES_PATH}/#{company_id}#{ORGANIZATIONS_PATH}", params)
16
20
  end
17
21
 
18
22
  def get_organization(company_id, organization_id, params = {})
19
23
  get("#{API_PATH}#{COMPANIES_PATH}/#{company_id}#{ORGANIZATIONS_PATH}/#{organization_id}", params)
20
24
  end
21
-
22
25
  end
23
26
  end
24
27
  end
@@ -1,7 +1,6 @@
1
1
  module PaychexAPI
2
2
  class Client
3
3
  module Workers
4
-
5
4
  def get_all_workers(company_id, params = {})
6
5
  get("#{API_PATH}#{COMPANIES_PATH}/#{company_id}#{WORKERS_PATH}", params)
7
6
  end
@@ -29,7 +28,6 @@ module PaychexAPI
29
28
  def delete_communication(worker_id, communication_id, params = {})
30
29
  delete("#{API_PATH}#{WORKERS_PATH}/#{worker_id}#{COMMUNICATIONS_PATH}/#{communication_id}", params)
31
30
  end
32
-
33
31
  end
34
32
  end
35
33
  end
@@ -1,3 +1,3 @@
1
1
  module PaychexAPI
2
- VERSION = '0.0.2' unless defined?(PaychexAPI::VERSION)
2
+ VERSION = '0.0.3'.freeze unless defined?(PaychexAPI::VERSION)
3
3
  end
data/paychex_api.gemspec CHANGED
@@ -1,34 +1,36 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
1
+
2
+ $LOAD_PATH.push File.expand_path('lib', __dir__)
3
3
  require 'paychex_api/version'
4
4
 
5
5
  Gem::Specification.new do |gem|
6
- gem.authors = ["Jay Shaffer"]
7
- gem.email = ["jshaffer@instructure.com"]
8
- gem.description = %q{Interface for interacting with the paychex enterprise API}
9
- gem.summary = %q{Paychex API}
10
- gem.homepage = ""
6
+ gem.authors = ['Jay Shaffer']
7
+ gem.email = ['jshaffer@instructure.com']
8
+ gem.description = 'Interface for interacting with the paychex enterprise API'
9
+ gem.summary = 'Paychex API'
10
+ gem.homepage = ''
11
11
  gem.license = 'MIT'
12
12
 
13
13
  gem.files = `git ls-files`.split("\n")
14
- gem.files += Dir.glob("lib/**/*.rb")
15
- gem.files += Dir.glob("spec/**/*")
16
- gem.test_files = Dir.glob("spec/**/*")
17
- gem.name = "paychex_api"
18
- gem.require_paths = ["lib"]
14
+ gem.files += Dir.glob('lib/**/*.rb')
15
+ gem.files += Dir.glob('spec/**/*')
16
+ gem.test_files = Dir.glob('spec/**/*')
17
+ gem.name = 'paychex_api'
18
+ gem.require_paths = ['lib']
19
19
  gem.version = PaychexAPI::VERSION
20
20
 
21
- gem.add_development_dependency 'rake', '~> 0'
22
21
  gem.add_development_dependency 'bundler', '~> 1.0', '>= 1.0.0'
23
- gem.add_development_dependency 'rspec', '~> 2.6'
24
- gem.add_development_dependency 'webmock', '~>1.22.6'
22
+ gem.add_development_dependency 'byebug', '~> 8.2.2'
23
+ gem.add_development_dependency 'gergich', '~> 0.2.2'
25
24
  gem.add_development_dependency 'pry', '~> 0'
26
- gem.add_development_dependency 'tilt', '>= 1.3.4', '~> 1.3'
25
+ gem.add_development_dependency 'rake', '~> 0'
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'
27
29
  gem.add_development_dependency 'sinatra', '~> 1.0'
28
- gem.add_development_dependency 'byebug', '~> 8.2.2'
30
+ gem.add_development_dependency 'tilt', '>= 1.3.4', '~> 1.3'
31
+ gem.add_development_dependency 'webmock', '~>1.22.6'
29
32
 
33
+ gem.add_dependency 'faraday', '~> 0.9.2'
34
+ gem.add_dependency 'faraday_middleware', '~> 0.9.2'
30
35
  gem.add_dependency 'footrest', '>= 0.5.1'
31
- gem.add_dependency 'faraday', '~> 0.9.0'
32
- gem.add_dependency 'faraday_middleware', '~> 0.9.0'
33
-
34
36
  end
@@ -0,0 +1,54 @@
1
+ require 'test_helper'
2
+ require 'byebug'
3
+
4
+ describe PaychexAPI::ApiArray do
5
+ before(:each) do
6
+ @client = PaychexAPI::Client.new(
7
+ prefix: 'https://www.fake.com', client_id: 'client_id', client_secret: 'client_secret'
8
+ )
9
+ end
10
+
11
+ it 'should check the length of a response' do
12
+ workers = @client.get_all_workers('1')
13
+ expect(workers.length).to eq(1)
14
+ end
15
+
16
+ it 'should have an array indexer' do
17
+ workers = @client.get_all_workers('1')
18
+ expect(workers[0]['workerId']).to eq('00Z5V9BTIHRQF2CF7BTH')
19
+ end
20
+
21
+ it 'should have a pages check' do
22
+ workers = @client.get_all_workers('1')
23
+ expect(workers.pages?).to eq(true)
24
+ end
25
+
26
+ it 'should have a last accessor' do
27
+ workers = @client.get_all_workers('1')
28
+ expect(workers.last['workerId']).to eq('00Z5V9BTIHRQF2CF7BTH')
29
+ end
30
+
31
+ it 'should have a next page accessor' do
32
+ workers = @client.get_all_workers('1')
33
+ expect(workers.next_page.length).to eq(1)
34
+ end
35
+
36
+ it 'should have an each page generator' do
37
+ workers = @client.get_all_workers('1')
38
+ result = []
39
+ expect(result.size).to eq(0)
40
+ counter = 0
41
+ workers.each_page do |page|
42
+ result.concat page
43
+ workers.next_page = nil if counter > 2
44
+ counter += 1
45
+ end
46
+ expect(result.size).to eq(4)
47
+ end
48
+
49
+ it 'should have an all pages function' do
50
+ workers = @client.get_all_workers('1')
51
+ results = workers.all_pages!
52
+ expect(results.length).to eq(103)
53
+ end
54
+ end
@@ -0,0 +1,13 @@
1
+ require 'test_helper'
2
+ describe PaychexAPI::Client::Associations 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 a association companies' do
10
+ response = @client.get_association_companies(1)
11
+ expect(response.first['companyId']).to(eq('99Z5V9BTI8J2FCGESC05'))
12
+ end
13
+ end
@@ -1,23 +1,28 @@
1
1
  require 'test_helper'
2
2
  describe PaychexAPI::Client::Companies do
3
-
4
3
  before do
5
- @client = PaychexAPI::Client.new(prefix: "http://test.paychex.com", client_id: "client_id", client_secret: 'client_secret')
4
+ @client = PaychexAPI::Client.new(
5
+ prefix: 'http://test.paychex.com', client_id: 'client_id', client_secret: 'client_secret'
6
+ )
6
7
  end
7
8
 
8
9
  it 'should get a company' do
9
- response = @client.get_company(1)
10
- expect(response.first['companyId']).to(eq("99Z5V9BTI8J2FCGESC05"))
10
+ response = @client.get_company(1, something: 'something')
11
+ expect(response.first['companyId']).to(eq('99Z5V9BTI8J2FCGESC05'))
12
+ end
13
+
14
+ it 'should get company associations' do
15
+ response = @client.get_company_associations(1, something: 'something')
16
+ expect(response.first['companyId']).to(eq('99Z5V9BTI8J2FCGESC05'))
11
17
  end
12
18
 
13
19
  it 'should get a company by display id' do
14
20
  response = @client.get_company_by_display_id(1)
15
- expect(response.first['companyId']).to(eq("99Z5V9BTI8J2FCGESC05"))
21
+ expect(response.first['companyId']).to(eq('99Z5V9BTI8J2FCGESC05'))
16
22
  end
17
23
 
18
24
  it 'should get organizations' do
19
25
  response = @client.get_organizations(1, 2)
20
- expect(response.first['organizationId']).to(eq("970000055981384"))
26
+ expect(response.first['organizationId']).to(eq('970000055981384'))
21
27
  end
22
-
23
28
  end
@@ -1,33 +1,38 @@
1
1
  require 'test_helper'
2
2
  describe PaychexAPI::Client::Workers do
3
-
4
3
  before do
5
- @client = PaychexAPI::Client.new(prefix: "http://test.paychex.com", client_id: "client_id", client_secret: 'client_secret')
4
+ @client = PaychexAPI::Client.new(
5
+ prefix: 'http://test.paychex.com', client_id: 'client_id', client_secret: 'client_secret'
6
+ )
6
7
  end
7
8
 
8
9
  it 'should get all workers' do
9
- response = @client.get_all_workers("1")
10
- expect(response.first['workerId']).to(eq("00Z5V9BTIHRQF2CF7BTH"))
10
+ response = @client.get_all_workers('1')
11
+ expect(response.first['workerId']).to(eq('00Z5V9BTIHRQF2CF7BTH'))
12
+ end
13
+
14
+ it 'should get a single worker' do
15
+ response = @client.get_worker('1')
16
+ expect(response.first['workerId']).to(eq('00Z5V9BTIHRQF2CF7BTH'))
11
17
  end
12
18
 
13
19
  it 'should get all communications' do
14
20
  response = @client.get_communications(1)
15
- expect(response.first['communicationId']).to(eq("00Z5V9BTINBT97UMERCA"))
21
+ expect(response.first['communicationId']).to(eq('00Z5V9BTINBT97UMERCA'))
16
22
  end
17
23
 
18
24
  it 'should get a communication' do
19
25
  response = @client.get_communication(1, 1)
20
- expect(response.first['communicationId']).to(eq("00Z5V9BTINBT97UMERCA"))
26
+ expect(response.first['communicationId']).to(eq('00Z5V9BTINBT97UMERCA'))
21
27
  end
22
28
 
23
29
  it 'should get create a communication' do
24
30
  response = @client.create_communication(1)
25
- expect(response.first['communicationId']).to(eq("00Z5V9BTINBT97UMERCA"))
31
+ expect(response.first['communicationId']).to(eq('00Z5V9BTINBT97UMERCA'))
26
32
  end
27
33
 
28
34
  it 'should update a communication' do
29
- response = @client.update_communication(1, 1, {something: 'something'})
30
- expect(response.first['communicationId']).to(eq("00Z5V9BTINBT97UMERCA"))
35
+ response = @client.update_communication(1, 1, something: 'something')
36
+ expect(response.first['communicationId']).to(eq('00Z5V9BTINBT97UMERCA'))
31
37
  end
32
-
33
38
  end
@@ -1,26 +1,26 @@
1
1
  require 'test_helper'
2
2
 
3
3
  describe PaychexAPI::Client do
4
-
4
+ before(:each) do
5
+ @client = PaychexAPI::Client.new(
6
+ prefix: 'https://www.fake.com', client_id: 'client_id', client_secret: 'client_secret'
7
+ )
8
+ end
5
9
  it 'should pull the auth token' do
6
- client = PaychexAPI::Client.new(prefix: "https://www.fake.com", client_id: "client_id", client_secret: 'client_secret')
7
- client.get_all_workers("1")
8
- expect(client.authorization['access_token']).to(eq('99f9c30a-8134-4a30-a789-7c7665add41e'))
10
+ @client.get_all_workers('1')
11
+ expect(@client.authorization['access_token']).to(eq('99f9c30a-8134-4a30-a789-7c7665add41e'))
9
12
  end
10
13
 
11
14
  it 'should skip pulling the auth token' do
12
- client = PaychexAPI::Client.new(prefix: "https://www.fake.com", client_id: "client_id", client_secret: 'client_secret')
13
- expect(client.authorization).to(eq(nil))
14
- client.get_all_workers("1")
15
- expect(client.authorization['access_token']).to(eq('99f9c30a-8134-4a30-a789-7c7665add41e'))
15
+ expect(@client.authorization).to(eq(nil))
16
+ @client.get_all_workers('1')
17
+ expect(@client.authorization['access_token']).to(eq('99f9c30a-8134-4a30-a789-7c7665add41e'))
16
18
  expect_any_instance_of(Faraday).not_to receive(:post)
17
- client.get_all_workers("1")
19
+ @client.get_all_workers('1')
18
20
  end
19
21
 
20
22
  it 'should set the auth header to bearer auth' do
21
- client = PaychexAPI::Client.new(prefix: "https://www.fake.com", client_id: "client_id", client_secret: 'client_secret')
22
- client.get_all_workers("1")
23
- expect(client.connection.headers['Authorization']).to(eq("Bearer 99f9c30a-8134-4a30-a789-7c7665add41e"))
23
+ @client.get_all_workers('1')
24
+ expect(@client.connection.headers['Authorization']).to(eq('Bearer 99f9c30a-8134-4a30-a789-7c7665add41e'))
24
25
  end
25
-
26
26
  end
@@ -0,0 +1,16 @@
1
+ require 'test_helper'
2
+
3
+ describe PaychexAPI do
4
+ it 'should set a proxy for the client' do
5
+ client = PaychexAPI::Client.new(
6
+ prefix: 'http://test.paychex.com', client_id: 'client_id', client_secret: 'client_secret'
7
+ )
8
+ expect(PaychexAPI.proxy).to eq(nil)
9
+ PaychexAPI.configure do |config|
10
+ config.proxy = 'http://google.com'
11
+ end
12
+ expect(PaychexAPI.proxy).to eq('http://google.com')
13
+ response = client.get_communications(1)
14
+ expect(response.first['communicationId']).to(eq('00Z5V9BTINBT97UMERCA'))
15
+ end
16
+ end
@@ -2,14 +2,22 @@ require 'sinatra/base'
2
2
  require 'tilt'
3
3
 
4
4
  class FakePaychex < Sinatra::Base
5
-
6
- #auth
5
+ # auth
7
6
  post %r{/auth/oauth/v2/token$} do
8
7
  get_json_data 200, 'auth.json'
9
8
  end
10
9
 
11
- #workers
12
- get %r{/companies/\d+/workers$} do
10
+ # workers
11
+ get %r{/companies/.*/workers.*$} do
12
+ get_json_data 200, 'workers.json'
13
+ end
14
+
15
+ # workers
16
+ get %r{/companies/.*/workers/\+d+$} do
17
+ get_json_data 200, 'workers.json'
18
+ end
19
+
20
+ get %r{/workers/\d+$} do
13
21
  get_json_data 200, 'workers.json'
14
22
  end
15
23
 
@@ -33,7 +41,7 @@ class FakePaychex < Sinatra::Base
33
41
  get_json_data 200, 'communications.json'
34
42
  end
35
43
 
36
- #companies
44
+ # companies
37
45
  get %r{/companies/\d+$} do
38
46
  get_json_data 200, 'companies.json'
39
47
  end
@@ -51,11 +59,10 @@ class FakePaychex < Sinatra::Base
51
59
  def get_json_data(response_code, file_name)
52
60
  content_type :json
53
61
  status response_code
54
- unless file_name.nil?
55
- File.open(File.dirname(__FILE__) + '/../fixtures/' + file_name).read
56
- else
62
+ if file_name.nil?
57
63
  {}
64
+ else
65
+ File.open(File.dirname(__FILE__) + '/../fixtures/' + file_name).read
58
66
  end
59
67
  end
60
-
61
68
  end
data/spec/test_helper.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'simplecov'
1
2
  require 'paychex_api'
2
3
  require 'rspec'
3
4
  require 'webmock/rspec'
@@ -6,15 +7,13 @@ require 'pry'
6
7
  require 'byebug'
7
8
 
8
9
  RSpec.configure do |config|
9
- Dir["./spec/support/**/*.rb"].sort.each {|f| require f}
10
-
10
+ Dir['./spec/support/**/*.rb'].sort.each { |f| require f }
11
11
  config.before(:each) do
12
12
  WebMock.disable_net_connect!
13
13
  WebMock.stub_request(:any, /.*/).to_rack(FakePaychex)
14
14
  end
15
15
  end
16
16
 
17
-
18
17
  def fixture(*file)
19
- File.new(File.join(File.expand_path("../fixtures", __FILE__), *file))
18
+ File.new(File.join(File.expand_path('fixtures', __dir__), *file))
20
19
  end
metadata CHANGED
@@ -1,79 +1,79 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paychex_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
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-01-17 00:00:00.000000000 Z
11
+ date: 2018-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rake
14
+ name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.0.0
20
23
  type: :development
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: '0'
29
+ version: '1.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.0
27
33
  - !ruby/object:Gem::Dependency
28
- name: bundler
34
+ name: byebug
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '1.0'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 1.0.0
39
+ version: 8.2.2
37
40
  type: :development
38
41
  prerelease: false
39
42
  version_requirements: !ruby/object:Gem::Requirement
40
43
  requirements:
41
44
  - - "~>"
42
45
  - !ruby/object:Gem::Version
43
- version: '1.0'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 1.0.0
46
+ version: 8.2.2
47
47
  - !ruby/object:Gem::Dependency
48
- name: rspec
48
+ name: gergich
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '2.6'
53
+ version: 0.2.2
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '2.6'
60
+ version: 0.2.2
61
61
  - !ruby/object:Gem::Dependency
62
- name: webmock
62
+ name: pry
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: 1.22.6
67
+ version: '0'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: 1.22.6
74
+ version: '0'
75
75
  - !ruby/object:Gem::Dependency
76
- name: pry
76
+ name: rake
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
@@ -87,25 +87,47 @@ dependencies:
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  - !ruby/object:Gem::Dependency
90
- name: tilt
90
+ name: rspec
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ">="
93
+ - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: 1.3.4
95
+ version: '2.6'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
96
100
  - - "~>"
97
101
  - !ruby/object:Gem::Version
98
- version: '1.3'
102
+ version: '2.6'
103
+ - !ruby/object:Gem::Dependency
104
+ name: rubocop
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: 0.54.0
99
110
  type: :development
100
111
  prerelease: false
101
112
  version_requirements: !ruby/object:Gem::Requirement
102
113
  requirements:
103
- - - ">="
114
+ - - "~>"
104
115
  - !ruby/object:Gem::Version
105
- version: 1.3.4
116
+ version: 0.54.0
117
+ - !ruby/object:Gem::Dependency
118
+ name: simplecov
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
106
121
  - - "~>"
107
122
  - !ruby/object:Gem::Version
108
- version: '1.3'
123
+ version: 0.16.1
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: 0.16.1
109
131
  - !ruby/object:Gem::Dependency
110
132
  name: sinatra
111
133
  requirement: !ruby/object:Gem::Requirement
@@ -121,61 +143,81 @@ dependencies:
121
143
  - !ruby/object:Gem::Version
122
144
  version: '1.0'
123
145
  - !ruby/object:Gem::Dependency
124
- name: byebug
146
+ name: tilt
125
147
  requirement: !ruby/object:Gem::Requirement
126
148
  requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: 1.3.4
127
152
  - - "~>"
128
153
  - !ruby/object:Gem::Version
129
- version: 8.2.2
154
+ version: '1.3'
130
155
  type: :development
131
156
  prerelease: false
132
157
  version_requirements: !ruby/object:Gem::Requirement
133
158
  requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ version: 1.3.4
134
162
  - - "~>"
135
163
  - !ruby/object:Gem::Version
136
- version: 8.2.2
164
+ version: '1.3'
137
165
  - !ruby/object:Gem::Dependency
138
- name: footrest
166
+ name: webmock
139
167
  requirement: !ruby/object:Gem::Requirement
140
168
  requirements:
141
- - - ">="
169
+ - - "~>"
142
170
  - !ruby/object:Gem::Version
143
- version: 0.5.1
144
- type: :runtime
171
+ version: 1.22.6
172
+ type: :development
145
173
  prerelease: false
146
174
  version_requirements: !ruby/object:Gem::Requirement
147
175
  requirements:
148
- - - ">="
176
+ - - "~>"
149
177
  - !ruby/object:Gem::Version
150
- version: 0.5.1
178
+ version: 1.22.6
151
179
  - !ruby/object:Gem::Dependency
152
180
  name: faraday
153
181
  requirement: !ruby/object:Gem::Requirement
154
182
  requirements:
155
183
  - - "~>"
156
184
  - !ruby/object:Gem::Version
157
- version: 0.9.0
185
+ version: 0.9.2
158
186
  type: :runtime
159
187
  prerelease: false
160
188
  version_requirements: !ruby/object:Gem::Requirement
161
189
  requirements:
162
190
  - - "~>"
163
191
  - !ruby/object:Gem::Version
164
- version: 0.9.0
192
+ version: 0.9.2
165
193
  - !ruby/object:Gem::Dependency
166
194
  name: faraday_middleware
167
195
  requirement: !ruby/object:Gem::Requirement
168
196
  requirements:
169
197
  - - "~>"
170
198
  - !ruby/object:Gem::Version
171
- version: 0.9.0
199
+ version: 0.9.2
172
200
  type: :runtime
173
201
  prerelease: false
174
202
  version_requirements: !ruby/object:Gem::Requirement
175
203
  requirements:
176
204
  - - "~>"
177
205
  - !ruby/object:Gem::Version
178
- version: 0.9.0
206
+ version: 0.9.2
207
+ - !ruby/object:Gem::Dependency
208
+ name: footrest
209
+ requirement: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ version: 0.5.1
214
+ type: :runtime
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - ">="
219
+ - !ruby/object:Gem::Version
220
+ version: 0.5.1
179
221
  description: Interface for interacting with the paychex enterprise API
180
222
  email:
181
223
  - jshaffer@instructure.com
@@ -184,11 +226,18 @@ extensions: []
184
226
  extra_rdoc_files: []
185
227
  files:
186
228
  - ".gitignore"
229
+ - ".rubocop.yml"
230
+ - ".simplecov"
231
+ - Dockerfile
187
232
  - Gemfile
188
233
  - Gemfile.lock
234
+ - bin/jenkins
235
+ - build.sh
236
+ - docker-compose.yml
189
237
  - lib/paychex_api.rb
190
238
  - lib/paychex_api/api_array.rb
191
239
  - lib/paychex_api/client.rb
240
+ - lib/paychex_api/client/associations.rb
192
241
  - lib/paychex_api/client/companies.rb
193
242
  - lib/paychex_api/client/workers.rb
194
243
  - lib/paychex_api/version.rb
@@ -198,9 +247,12 @@ files:
198
247
  - spec/fixtures/companies.json
199
248
  - spec/fixtures/organizations.json
200
249
  - spec/fixtures/workers.json
250
+ - spec/paychex_api/api_array_spec.rb
251
+ - spec/paychex_api/client/associations_spec.rb
201
252
  - spec/paychex_api/client/companies_spec.rb
202
253
  - spec/paychex_api/client/workers_spec.rb
203
254
  - spec/paychex_api/client_spec.rb
255
+ - spec/paychex_api/paychex_api_spec.rb
204
256
  - spec/support/fake_paychex.rb
205
257
  - spec/test_helper.rb
206
258
  homepage: ''
@@ -223,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
275
  version: '0'
224
276
  requirements: []
225
277
  rubyforge_project:
226
- rubygems_version: 2.7.3
278
+ rubygems_version: 2.6.14
227
279
  signing_key:
228
280
  specification_version: 4
229
281
  summary: Paychex API
@@ -233,8 +285,12 @@ test_files:
233
285
  - spec/fixtures/companies.json
234
286
  - spec/fixtures/organizations.json
235
287
  - spec/fixtures/workers.json
288
+ - spec/paychex_api/api_array_spec.rb
289
+ - spec/paychex_api/client/associations_spec.rb
236
290
  - spec/paychex_api/client/companies_spec.rb
237
291
  - spec/paychex_api/client/workers_spec.rb
238
292
  - spec/paychex_api/client_spec.rb
293
+ - spec/paychex_api/paychex_api_spec.rb
239
294
  - spec/support/fake_paychex.rb
240
295
  - spec/test_helper.rb
296
+ has_rdoc: