slack-ruby-block-kit 0.15.0 → 0.16.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 +4 -4
- data/CHANGELOG.md +20 -2
- data/Gemfile.lock +2 -2
- data/lib/slack/block_kit/layout/actions.rb +11 -1
- data/lib/slack/block_kit/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: 3e3c462f9ce5026a4b9121b70e19a956af86b3920635cc88499c3f4ee0b49c8d
|
4
|
+
data.tar.gz: c7a671b81c0f5653ad7d81f1e4c6e19e2464c79e8159ae8dd910e6690aad3d4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9a94934add60e950ac68cf1e00186e3cb9811a35d8a6f3d37b80afb09f0772075956941587030cbfe1ae6d4735582f0a1a7904482ff84b7dc694bae4624dbef
|
7
|
+
data.tar.gz: 9205b0d1d67a2e82b518f39b4cf056960bd71adc9d756592dfe2a803268017eb629f8f5fe63d6eed4f5abbf395a02ed395d453c673bd20e04085e472f0019051
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# Changelog
|
2
|
+
|
2
3
|
All notable changes to this project will be documented in this file.
|
3
4
|
|
4
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
@@ -7,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
8
|
## [Unreleased]
|
8
9
|
|
9
10
|
### Added
|
10
|
-
-
|
11
|
+
- Added new `Layout::Actions#checkboxes` method (#96 by @ryanwilsonperkin)
|
11
12
|
|
12
13
|
### Changed
|
13
14
|
- N/A
|
@@ -25,7 +26,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
25
26
|
- N/A
|
26
27
|
|
27
28
|
|
28
|
-
[Unreleased]: https://github.com/CGA1123/slack-ruby-block-kit/compare/v0.
|
29
|
+
[Unreleased]: https://github.com/CGA1123/slack-ruby-block-kit/compare/v0.16.0...HEAD
|
30
|
+
|
31
|
+
|
32
|
+
---
|
33
|
+
|
34
|
+
|
35
|
+
## [0.16.0] - 2021-06-23
|
36
|
+
|
37
|
+
This release contains a breaking change on the `Layout::Actions` interface.
|
38
|
+
|
39
|
+
### Removed
|
40
|
+
- `Layout::Actions#converstation_select` (use `#conversation_select` instead) (#97 by @ryanwilsonperkin)
|
41
|
+
|
42
|
+
### Fixed
|
43
|
+
- Fixed name of method in `Layout::Actions` to be `conversation_select` (#97 by @ryanwilsonperkin)
|
44
|
+
|
45
|
+
|
46
|
+
[0.16.0]: https://github.com/CGA1123/slack-ruby-block-kit/compare/v0.15.0...v0.16.0
|
29
47
|
|
30
48
|
|
31
49
|
---
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
slack-ruby-block-kit (0.
|
4
|
+
slack-ruby-block-kit (0.16.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -53,7 +53,7 @@ GEM
|
|
53
53
|
rspec-support (3.10.2)
|
54
54
|
rspec_junit_formatter (0.4.1)
|
55
55
|
rspec-core (>= 2, < 4, != 2.12.0)
|
56
|
-
rubocop (1.
|
56
|
+
rubocop (1.17.0)
|
57
57
|
parallel (~> 1.10)
|
58
58
|
parser (>= 3.0.0.0)
|
59
59
|
rainbow (>= 2.2.2, < 4.0)
|
@@ -46,7 +46,7 @@ module Slack
|
|
46
46
|
append(element)
|
47
47
|
end
|
48
48
|
|
49
|
-
def
|
49
|
+
def conversation_select(placeholder:, action_id:, initial: nil, emoji: nil)
|
50
50
|
element = Element::ConversationsSelect.new(
|
51
51
|
placeholder: placeholder,
|
52
52
|
action_id: action_id,
|
@@ -119,6 +119,16 @@ module Slack
|
|
119
119
|
append(element)
|
120
120
|
end
|
121
121
|
|
122
|
+
def checkboxes(action_id:)
|
123
|
+
element = Element::Checkboxes.new(
|
124
|
+
action_id: action_id
|
125
|
+
)
|
126
|
+
|
127
|
+
yield(element) if block_given?
|
128
|
+
|
129
|
+
append(element)
|
130
|
+
end
|
131
|
+
|
122
132
|
def append(element)
|
123
133
|
@elements << element
|
124
134
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack-ruby-block-kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Gregg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|