peoplegroup-connectors 0.1.16 → 0.1.21
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/slack.rb +8 -4
- 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: a7c2cd36966b5ee976f81e53150257aecb72cf423ca7b45ea90e0a24ec45e2e8
|
4
|
+
data.tar.gz: 4dae4fecfd2e942bfd39775e3f32fb1875e9f4b4a6e107148ccac9c047e48c31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d637c670afa1999c55401d0bba8ba93000a8ee93c5402ac29e4486541206bd26ab1a6c42afb9d2c5ae44b6e820874ea01d839bf5336c61ee40dd18cb5a7b00b8
|
7
|
+
data.tar.gz: bf02e6c981836a92dbf937251b85c6ece2b39942be0495c8293452d3e5241a616140ed855bdc5185ca8bbf1667fb524822e04a207cbbbbfeceef6a5d8ffb0eb1
|
@@ -29,12 +29,16 @@ module PeopleGroup
|
|
29
29
|
channels.reject(&:is_private)&.map(:name)
|
30
30
|
end
|
31
31
|
|
32
|
-
def
|
33
|
-
@client.
|
32
|
+
def link_for_message(channel:, timestamp:)
|
33
|
+
@client.chat_getPermalink(channel: channel, message_ts: timestamp)
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
37
|
-
@client.
|
36
|
+
def send_message(channel:, text:, as_user: true, attachments: [], thread_ts: nil, reply_broadcast: false)
|
37
|
+
@client.chat_postMessage(channel: channel, text: text, as_user: true, attachments: attachments, unfurl_links: false, thread_ts: thread_ts, reply_broadcast: reply_broadcast)
|
38
|
+
end
|
39
|
+
|
40
|
+
def update_message(channel:, timestamp:, text:, attachments: [])
|
41
|
+
@client.chat_update(channel: channel, text: text, ts: timestamp, as_user: true, attachments: attachments)
|
38
42
|
end
|
39
43
|
|
40
44
|
def send_modal_message(trigger:, view:)
|
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.21
|
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-02-
|
11
|
+
date: 2021-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitlab
|