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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: e5bad6df044aa263a6276061ebf35bfeb44b28e7f4052ace6913f1cd736e6501
4
- data.tar.gz: 71a7fe4a4d9150f31b8939c60a06655650768075193d00f8c73f2678e037fdb4
2
+ SHA1:
3
+ metadata.gz: 2d8ade0b830a95d33def6b1986391cf3df0c1080
4
+ data.tar.gz: d7906d32fc2bdfa9ceb034954b43ba1b56b8c81f
5
5
  SHA512:
6
- metadata.gz: a42893066259a98b677ce76ac7f34f962229ff88087e1f54158dbcde2b5f4a86ceb31ac670d938bdace44077fcca5179f89ab1b0b160a09f92ccb4c02ab7e5e6
7
- data.tar.gz: eccf155b6cb2698547c5867cc5fec937374216d4a6657cfb1255a794eb0bc28e3c9d7ebacd7efdfef52f6948ed388c445e539b14cae79f993045bbd522e922ee
6
+ metadata.gz: 6dc7f9ea81b340f0ce5dd2d84d3908e9d06aecef6e6775798ec9f0deb1afd5bf2f0e75b1731e2095b8bad8e102b6d14ced02c82efee85cb08c3050b60d0fc68e
7
+ data.tar.gz: b5955885231d3c8a352a7c5ede2f5709a7c417f0a5c25c1e9ef8f90a9013fcf6d5daed898893cbe2242f22632c3aa52af647448ef95519547f0a4e935e7a5828
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paychex_api (0.0.11)
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.1)
31
+ footrest (0.5.3)
32
32
  activesupport (>= 3.0.0)
33
- faraday (~> 0.9.0)
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
- return [] unless response.body.is_a?(Hash)
114
- content = response.body['content']
115
- return content unless content.empty?
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}?association_id=#{association_id}", params)
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
@@ -1,3 +1,3 @@
1
1
  module PaychexAPI
2
- VERSION = '0.0.12'.freeze unless defined?(PaychexAPI::VERSION)
2
+ VERSION = '0.0.13'.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.12
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-06 00:00:00.000000000 Z
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.7.3
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: