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: 43c5fbc5296102a8b2118e79f806b9ba7d655c3af099efd82e5b76f7e8e6c68a
4
- data.tar.gz: 93362081e74a6a60f356feb93ae4fae9768832b530f231c16f5a3f2d987886d6
3
+ metadata.gz: 5d0e403f4b2548d945763435c50d45563cc9ec4f787afcae0520e556b5f6413f
4
+ data.tar.gz: 9b558f4fb785cf277e335cf9b8aa6b8a2ce39d01caec646729ee9d0b894c33ea
5
5
  SHA512:
6
- metadata.gz: 1248508f228df67ecc1fff934a812fc9514129dcdbb5fe3d38529c43c6fa4e337ac5884d3a1f4c94d5d775f48fb8fa94ee9f37104ac0f69e4cba434dc744b9cd
7
- data.tar.gz: 349b80b69c44546ce9355af267e63edd1a2e06c4c6a1babd5a6a1811dd05e430ec4bcace07a58b990f5b1805f3e655af33a23a12a81569037d573aa8abb0a30c
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][:actions]&.map { |entity| entity[:action_id] }
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,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SlackRubyBotServer
4
4
  module Events
5
- VERSION = '0.3.0'
5
+ VERSION = '0.3.1'
6
6
  end
7
7
  end
@@ -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', '>= 1.2.0'
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.0
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: 2020-12-30 00:00:00.000000000 Z
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: 1.2.0
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: 1.2.0
26
+ version: 0.12.0
27
27
  description:
28
28
  email:
29
29
  - dblock@dblock.org