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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8847d05d5e51183ec2a4d92c80e87c33da93d78784550f28408187a4190253b
4
- data.tar.gz: 2cb11bd6247f69133e5965025460e4b969ed9dd3f82125f10b2e4ab851e5b7fd
3
+ metadata.gz: a7c2cd36966b5ee976f81e53150257aecb72cf423ca7b45ea90e0a24ec45e2e8
4
+ data.tar.gz: 4dae4fecfd2e942bfd39775e3f32fb1875e9f4b4a6e107148ccac9c047e48c31
5
5
  SHA512:
6
- metadata.gz: 004abace3f43d42ae71370a648db2c025a30c41d8ddf4f55a76d59950b6609c23769f00d6f39e7ef29009d9530209253a855cb76c0cd9fd64ee1d60ed34f75c1
7
- data.tar.gz: 7685f31b08d82817c0eb66e8494bd12401add246a2f4a2d3a5e3705a3f17a695e83ea8f75688509fd92b64d7b3737514fa6d9265d74e95c9113e686fce06136b
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 send_message(channel:, text:, as_user: true, attachments: [])
33
- @client.chat_postMessage(channel: channel, text: text, as_user: true, attachments: attachments, unfurl_links: false)
32
+ def link_for_message(channel:, timestamp:)
33
+ @client.chat_getPermalink(channel: channel, message_ts: timestamp)
34
34
  end
35
35
 
36
- def update_message(channel:, timestamp:, text:)
37
- @client.chat_update(channel: channel, text: text, ts: timestamp, as_user: true, attachments: [])
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:)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module PeopleGroup
4
4
  module Connectors
5
- VERSION = '0.1.16'
5
+ VERSION = '0.1.21'
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.16
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 00:00:00.000000000 Z
11
+ date: 2021-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab