peoplegroup-connectors 0.1.35 → 0.1.36

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: a25f593d76b85e7532fb74e0632837615afd293b5c71a8b15c8aba8c4d5aa62d
4
- data.tar.gz: b3c761fab0a3a61a323b0d955fe9bdf07d74ac8588efa1ff52633f2f204c2689
3
+ metadata.gz: 8611752b4ca5e726cc88207388a89cb90a7ad49cfa57681409b857ee13d59c8e
4
+ data.tar.gz: adb086e3c860033292caff493bf483967223b11b534828b11db5a9f3ffca7ac0
5
5
  SHA512:
6
- metadata.gz: 6aa52434151d5f2b944eeb138e5c2c8686d8b11e22b7bf28b532df5b0ea1b85493e52e589b4036795ea5f93805d9fcba0d6000f739e669d024217e2d68c5c80e
7
- data.tar.gz: 29dc6122c7f7c8c5bc48a9cc1f3aa79565b46b98f0d2139b3709e69ab037ab54a5dba648b626bf08d484eb3ccbaff476942d6b63d7d702f6e46cf179699436ff
6
+ metadata.gz: c4e1c9ab9341dc9731695024237f6f2d9f7febc87821926c5205dd345725affcfcc66732787fdf12bf3bcfaddbc01c27ff3409b38a900738980d187771219a66
7
+ data.tar.gz: b05f29c43918c58229fa3486b2935f0945355b31a925fc55fa1e0f38f10df45321548611ed34f50f715560da04ebd2b2f6ea85ce3a450d275885e66a996dbe3a
@@ -87,7 +87,7 @@ module PeopleGroup
87
87
 
88
88
  begin
89
89
  if @use_report
90
- @employees ||= @client.report.find(@use_report, 'JSON', true)
90
+ @employees ||= @client.report.find(@use_report, 'JSON', true).reject { |employee| employee['lastName'] == 'Test-Gitlab' }
91
91
  else
92
92
  @employees ||= @client.report.custom(fields, 'JSON').reject { |employee| employee['lastName'] == 'Test-Gitlab' }
93
93
  end
@@ -200,6 +200,10 @@ module PeopleGroup
200
200
  @client.employee.add_table_row(team_member_id, 'customBonus', data)
201
201
  end
202
202
 
203
+ def has_direct_reports?(id)
204
+ active_team_members.any? { |team_member| team_member['supervisorEId'] == id.to_s }
205
+ end
206
+
203
207
  private
204
208
 
205
209
  def meta_fields
@@ -2,6 +2,6 @@
2
2
 
3
3
  module PeopleGroup
4
4
  module Connectors
5
- VERSION = '0.1.35'
5
+ VERSION = '0.1.36'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peoplegroup-connectors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.35
4
+ version: 0.1.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - lien van den steen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-15 00:00:00.000000000 Z
11
+ date: 2021-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab