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 +4 -4
- data/lib/peoplegroup/connectors/gitlab.rb +15 -0
- data/lib/peoplegroup/connectors/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d75a768e48cbc915cd653e500736160f081ccb4ae5f0a9c974b444028245346
|
4
|
+
data.tar.gz: 7c1bb07d0b7218319b91133b8ed799b88d8354f7beedd2102295305605b2acbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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.
|
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-
|
11
|
+
date: 2021-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitlab
|