paychex_api 0.0.12 → 0.0.13
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.
- checksums.yaml +5 -5
- data/Gemfile.lock +3 -3
- data/lib/paychex_api/api_array.rb +7 -4
- data/lib/paychex_api/client/associations.rb +2 -2
- data/lib/paychex_api/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 2d8ade0b830a95d33def6b1986391cf3df0c1080
|
|
4
|
+
data.tar.gz: d7906d32fc2bdfa9ceb034954b43ba1b56b8c81f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6dc7f9ea81b340f0ce5dd2d84d3908e9d06aecef6e6775798ec9f0deb1afd5bf2f0e75b1731e2095b8bad8e102b6d14ced02c82efee85cb08c3050b60d0fc68e
|
|
7
|
+
data.tar.gz: b5955885231d3c8a352a7c5ede2f5709a7c417f0a5c25c1e9ef8f90a9013fcf6d5daed898893cbe2242f22632c3aa52af647448ef95519547f0a4e935e7a5828
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
paychex_api (0.0.
|
|
4
|
+
paychex_api (0.0.12)
|
|
5
5
|
faraday (~> 0.9.2)
|
|
6
6
|
faraday_middleware (~> 0.9.2)
|
|
7
7
|
footrest (>= 0.5.1)
|
|
@@ -28,9 +28,9 @@ GEM
|
|
|
28
28
|
multipart-post (>= 1.2, < 3)
|
|
29
29
|
faraday_middleware (0.9.2)
|
|
30
30
|
faraday (>= 0.7.4, < 0.10)
|
|
31
|
-
footrest (0.5.
|
|
31
|
+
footrest (0.5.3)
|
|
32
32
|
activesupport (>= 3.0.0)
|
|
33
|
-
faraday (
|
|
33
|
+
faraday (>= 0.9.0, < 1)
|
|
34
34
|
link_header (>= 0.0.7)
|
|
35
35
|
gergich (0.2.2)
|
|
36
36
|
httparty (~> 0.6)
|
|
@@ -110,10 +110,13 @@ module PaychexAPI
|
|
|
110
110
|
end
|
|
111
111
|
|
|
112
112
|
def get_response_content(response)
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
body = response.body
|
|
114
|
+
return [] unless body.is_a?(Hash)
|
|
115
|
+
if body.key?('content')
|
|
116
|
+
body['content'] || []
|
|
117
|
+
else
|
|
118
|
+
body.present? ? body : []
|
|
119
|
+
end
|
|
117
120
|
end
|
|
118
121
|
|
|
119
122
|
def apply_response_metadata(response, concat = true)
|
|
@@ -2,8 +2,8 @@ module PaychexAPI
|
|
|
2
2
|
class Client
|
|
3
3
|
module Associations
|
|
4
4
|
def get_association_companies(association_id, params = {})
|
|
5
|
-
connection.headers[:accept] = "application/json;profile='http://api.paychex.com/profiles/association_companies/v1"
|
|
6
|
-
get("#{API_PATH}#{COMPANIES_PATH}?
|
|
5
|
+
connection.headers[:accept] = "application/json;profile='http://api.paychex.com/profiles/association_companies/v1'"
|
|
6
|
+
get("#{API_PATH}#{COMPANIES_PATH}?associationid=#{association_id}", params)
|
|
7
7
|
end
|
|
8
8
|
end
|
|
9
9
|
end
|
data/lib/paychex_api/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.0.13
|
|
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-07-
|
|
11
|
+
date: 2018-07-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -285,7 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
285
285
|
version: '0'
|
|
286
286
|
requirements: []
|
|
287
287
|
rubyforge_project:
|
|
288
|
-
rubygems_version: 2.
|
|
288
|
+
rubygems_version: 2.6.14
|
|
289
289
|
signing_key:
|
|
290
290
|
specification_version: 4
|
|
291
291
|
summary: Paychex API
|
|
@@ -310,3 +310,4 @@ test_files:
|
|
|
310
310
|
- spec/paychex_api/paychex_api_spec.rb
|
|
311
311
|
- spec/support/fake_paychex.rb
|
|
312
312
|
- spec/test_helper.rb
|
|
313
|
+
has_rdoc:
|