sinatra-slack 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9064aff79dee088edcdfd96da33ded34cf4e259c4e07cf68368cd7224f1ac903
4
- data.tar.gz: '0587a095b8661c6db382e65ad7cd1a2403ad7d151afd7536b9f638e0087e95e3'
3
+ metadata.gz: dfbe651691603b59ae0c5199e4a6626c7fedf487dd84a2f7e00460e227c2cb50
4
+ data.tar.gz: 341bc9d84746891fa3cda53170d701aa2f267fb1abfb5526c0db75ca92785c19
5
5
  SHA512:
6
- metadata.gz: 240c87518280fdf1fd55f76953731b061747d4b2989c8dbf38f20650ae469864945297ab695e923effb29f42d9ea94180c163fbd4ec2693bb6ceac1fd067c0c6
7
- data.tar.gz: 2dba2ea99440f3d79ab358ca576694bef7dfbd8b5c74663199bc6a022669be169f06aec548d7a0f3c971ee602b11cf687d0d9e9bc821b3f77302c5575dc2cb86
6
+ metadata.gz: a23b60318e3a4312f11b8d1ea278e2490d02340abb174bcfe4388ce0c89f9bc8431881cbbd2a4fabeb74feaa2c0204fb63ace536b6485f3979fd78596fe942eb
7
+ data.tar.gz: 9059334430c6c1ae10e5527d9bb0b3941b582158105da951bdf95d361c7053da396fb4ab1421e15f432e26a9af810cd5773b1b594a371a6d56bd7fa912ea5610
@@ -7,7 +7,7 @@ module Sinatra
7
7
  module Helpers
8
8
  # Represents a message sent to the Slack Channel.
9
9
  class SlackResponse
10
- attr_accessor :text, :replace_original, :mrkdwn, :response_type
10
+ attr_accessor :text, :replace_original, :mrkdwn, :response_type, :delete_original
11
11
 
12
12
  def initialize(callback_id)
13
13
  @callback_id = callback_id
@@ -15,6 +15,7 @@ module Sinatra
15
15
  @attachments = []
16
16
  @replace_original = true
17
17
  @response_type = 'ephemeral'
18
+ @delete_original = false
18
19
  @mrkdwn = false
19
20
  end
20
21
 
@@ -33,6 +34,7 @@ module Sinatra
33
34
  response[:mrkdwn] = @mrkdwn
34
35
  response[:replace_original] = @replace_original
35
36
  response[:response_type] = @response_type
37
+ response[:delete_original] = @delete_original
36
38
 
37
39
  response[:attachments] = @attachments.map(&:to_json) unless @attachments.empty?
38
40
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sinatra
4
4
  module Slack
5
- VERSION = '0.9.0'
5
+ VERSION = '0.10.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-slack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nuno Namorado
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-17 00:00:00.000000000 Z
11
+ date: 2019-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry