slack-ruby-bot-server-events 0.3.0 → 0.3.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d0e403f4b2548d945763435c50d45563cc9ec4f787afcae0520e556b5f6413f
|
4
|
+
data.tar.gz: 9b558f4fb785cf277e335cf9b8aa6b8a2ce39d01caec646729ee9d0b894c33ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2086aa75a40d2db9ba4aa4c602d07494bd186771ab73b6403198afa5c03e39fa4085a16305e15a739ff56f6c88862f9f2fe67a2cca7f535a806c364c8294912
|
7
|
+
data.tar.gz: b411e00809301b63d27b0afd430b39756d0bfd6ddbeaa6e0195e6d39dff2b4f534ec6201edc13dcf4026f9afd61a2461eef6ba2cee1258e95bbe2b0e42604ab1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
### Changelog
|
2
2
|
|
3
|
+
#### 0.3.1 (2/4/2021)
|
4
|
+
|
5
|
+
* [#9](https://github.com/slack-ruby/slack-ruby-bot-server-events/pull/9): Provide default value when actions are missing in payload - [@nijave](https://github.com/nijave).
|
6
|
+
|
3
7
|
#### 0.3.0 (12/30/2020)
|
4
8
|
|
5
9
|
* [#6](https://github.com/slack-ruby/slack-ruby-bot-server-events/pull/6): Add support for block_actions interaction type - [@CrazyOptimist](https://github.com/CrazyOptimist).
|
@@ -73,7 +73,7 @@ module SlackRubyBotServer
|
|
73
73
|
action = SlackRubyBotServer::Events::Requests::Action.new(params, request)
|
74
74
|
payload_type = params[:payload][:type]
|
75
75
|
callback_id = params[:payload][:callback_id]
|
76
|
-
action_ids = params[:payload]
|
76
|
+
action_ids = params[:payload].fetch(:actions, []).map { |entity| entity[:action_id] }
|
77
77
|
SlackRubyBotServer::Events.config.run_callbacks(
|
78
78
|
:action,
|
79
79
|
([payload_type, callback_id] + action_ids).compact,
|
@@ -16,5 +16,5 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
|
17
17
|
spec.require_paths = ['lib']
|
18
18
|
|
19
|
-
spec.add_dependency 'slack-ruby-bot-server', '>=
|
19
|
+
spec.add_dependency 'slack-ruby-bot-server', '>= 0.12.0'
|
20
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack-ruby-bot-server-events
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Doubrovkine
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slack-ruby-bot-server
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.12.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.12.0
|
27
27
|
description:
|
28
28
|
email:
|
29
29
|
- dblock@dblock.org
|