payroll_hero-api 1.2.4 → 1.2.5

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
  SHA1:
3
- metadata.gz: 53e109e0e51fac4eeba7477018451805879f5896
4
- data.tar.gz: 82bd20c1fe3727bdcdb6e968f0ee86f4f3247eea
3
+ metadata.gz: d2b1948b1411e95606e94c00944dc3388944767e
4
+ data.tar.gz: 0cbded8b068c8cd35804af6282538750146d83d1
5
5
  SHA512:
6
- metadata.gz: 6dbb9a6298112ec281425b10d96b3eaa5abcde8a0b01e9fc534009c1e3f039b100f6e734dabcc6001a6ee8d3019c9777c31bdb0a0cbf554a949b69ba6b12b6df
7
- data.tar.gz: e9cab251e8bd17130842337d92f7ccb61700be1e57467ff5b856adf3e1a2605b10cab4574fdba6cd3d3316335793418547761e952595fb6c1635fc0ce76d6b64
6
+ metadata.gz: 14313e09c9f7953cc85134329acc5854487be8a0794cbac87bfeb42cdee1b6528be012b150792b02f8767287ad54f831dbfc64fb2afb8e1c08246b34e65014b0
7
+ data.tar.gz: aef2f9459ea4abacf872ee03e7a779c4ab6aedfa894a9706311302fe5565fe8d48cbe8384778f5381cb625385327bcdfb41d1722cbddfc2362970c3c4bb561c1
@@ -10,13 +10,16 @@ module PayrollHero
10
10
  # @param [Array|Symbol] except - Attribute names to be excluded on the response
11
11
  # @param [Array|Symbol] include - Association names to be included in the response
12
12
  def list(only: [], except: [], include: [], page: nil, per_page: nil, **params)
13
- combined_params = params.merge only: Array(only),
14
- except: Array(except),
15
- include: Array(include),
16
- page: page,
17
- per_page: per_page
13
+ combined_params = params.merge(
14
+ remove_empty_values_from!(
15
+ only: Array(only),
16
+ except: Array(except),
17
+ include: Array(include),
18
+ page: page,
19
+ per_page: per_page
20
+ )
21
+ )
18
22
 
19
- remove_empty_values_from! combined_params
20
23
  client.get "/api/v4/employees", combined_params
21
24
  end
22
25
 
@@ -56,13 +59,16 @@ module PayrollHero
56
59
  private
57
60
 
58
61
  def fetch(identifier, only:, except:, include:, page: nil, per_page: nil, **params)
59
- combined_params = params.merge only: Array(only),
60
- except: Array(except),
61
- include: Array(include),
62
- page: page,
63
- per_page: per_page
62
+ combined_params = params.merge(
63
+ remove_empty_values_from!(
64
+ only: Array(only),
65
+ except: Array(except),
66
+ include: Array(include),
67
+ page: page,
68
+ per_page: per_page
69
+ )
70
+ )
64
71
 
65
- remove_empty_values_from! combined_params
66
72
  client.get "/api/v4/employees/#{identifier}", combined_params
67
73
  end
68
74
  end
@@ -1,5 +1,5 @@
1
1
  module PayrollHero
2
2
  module Api
3
- VERSION = "1.2.4"
3
+ VERSION = "1.2.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payroll_hero-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Banasik