peoplegroup-connectors 0.1.26 → 0.1.27

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: af55cdf2e86d5eb632c397ba7b67b0580aa1ced948006795a5983846f8c3a558
4
- data.tar.gz: 4ddde46c0504d7ef17a390ff6331a685ac543c7f9590c7e16d14029f97b86ac9
3
+ metadata.gz: 5d75a768e48cbc915cd653e500736160f081ccb4ae5f0a9c974b444028245346
4
+ data.tar.gz: 7c1bb07d0b7218319b91133b8ed799b88d8354f7beedd2102295305605b2acbc
5
5
  SHA512:
6
- metadata.gz: 6b344ea96bd3bb6e40f7a5c94df47f52be8850b1fcd7a6887b938e0c49efd332f41953bbb7f47f20fe8b03c8e07e88865f80bcecf89898c34fcfdeaafa3db5f0
7
- data.tar.gz: 7d9c28962044fe7e4cdbedfe88a26f5c5a7f958d9e29ccf016b1d15ce6b14f20eb58d5f45762ed15b767dd2157f08c9f9ac3cd8b519a9c5383de047b4a3b4de2
6
+ metadata.gz: 10090f999bfa39337629672c26fe816a55475fd53cff8021273eb9eff5229237e89ce476176ff6212e1e1d1f06dea61325a8b713899265f836e5fd8628a433c1
7
+ data.tar.gz: 859d0f1fb5ac3249d7d70b74420fa3627e151669e5111aa2413026c07e20f022b83e4c149a65434e1d9666f3235bae60d7440ba5dde2d299957dd9b3aa76fcf4
@@ -24,6 +24,21 @@ module PeopleGroup
24
24
  end
25
25
  end
26
26
 
27
+ def find_gitlabber_on(field, query, group)
28
+ return if !query || query.empty?
29
+
30
+ possible_members = retry_on_error { @client.group_members(group, query: query) }
31
+ if field === :email
32
+ possible_members.first
33
+ else
34
+ possible_members.find { |team_member| team_member.public_send(field) === query }
35
+ end
36
+ end
37
+
38
+ def remove_group_member(group, user_id)
39
+ retry_on_error { @client.remove_group_member(group, user_id) }
40
+ end
41
+
27
42
  def create_issue(project, title, options = {})
28
43
  retry_on_error do
29
44
  @client.create_issue(project, title, options)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module PeopleGroup
4
4
  module Connectors
5
- VERSION = '0.1.26'
5
+ VERSION = '0.1.27'
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.26
4
+ version: 0.1.27
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-03-03 00:00:00.000000000 Z
11
+ date: 2021-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab