slack-ruby-block-kit 0.22.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/Gemfile.lock +6 -6
- data/lib/slack/block_kit/blocks.rb +3 -2
- data/lib/slack/block_kit/element/radio_buttons.rb +3 -2
- 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: 0c1823b83c807b7c74ed6dc2a6c9adfd1945de04ab0cc6728d2d0864e0e6ed2e
|
4
|
+
data.tar.gz: 2b90261eac6e5b840d92b9d6492ef59c7a98558104c95c3b0cd3821fe8a00619
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41292e69ae30c232a9363259bc393cad93bac9b795a2e1bfc96c378f439072cb60947df3992c1f5a62a551bfa40c140a8f0b65fbfe659497355f524ad105bae0
|
7
|
+
data.tar.gz: fed6537c6e306897a06b34a676fef07289694c36350e097cbe5f7f45abe2493c92f0175c5d5a7d7f7e6e9b410aa43bb1f0a226f7540de59f3fe37acd8911a208
|
data/CHANGELOG.md
CHANGED
@@ -25,7 +25,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
25
25
|
### Security
|
26
26
|
- N/A
|
27
27
|
|
28
|
-
|
28
|
+
|
29
|
+
## [0.23.0] - 2023-08-07
|
30
|
+
|
31
|
+
### Added
|
32
|
+
|
33
|
+
- Added ability to set `emoji` property via `Slack::BlockKit::Blocks#input` (#175 by @bmorton)
|
34
|
+
- Added ability to set `emoji` property via `Slack::BlockKit::Element::RadioButtons#option` (#175 by @bmorton)
|
35
|
+
|
36
|
+
## [0.22.0] - 2023-08-05
|
29
37
|
|
30
38
|
### Added
|
31
39
|
- Added `Slack::BlockKit::Element::NumberInput` (#169 by @CGA1123)
|
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.23.0)
|
5
5
|
zeitwerk (~> 2.6)
|
6
6
|
|
7
7
|
GEM
|
@@ -53,15 +53,15 @@ GEM
|
|
53
53
|
rspec-core (~> 3.12.0)
|
54
54
|
rspec-expectations (~> 3.12.0)
|
55
55
|
rspec-mocks (~> 3.12.0)
|
56
|
-
rspec-core (3.12.
|
56
|
+
rspec-core (3.12.2)
|
57
57
|
rspec-support (~> 3.12.0)
|
58
|
-
rspec-expectations (3.12.
|
58
|
+
rspec-expectations (3.12.3)
|
59
59
|
diff-lcs (>= 1.2.0, < 2.0)
|
60
60
|
rspec-support (~> 3.12.0)
|
61
|
-
rspec-mocks (3.12.
|
61
|
+
rspec-mocks (3.12.6)
|
62
62
|
diff-lcs (>= 1.2.0, < 2.0)
|
63
63
|
rspec-support (~> 3.12.0)
|
64
|
-
rspec-support (3.12.
|
64
|
+
rspec-support (3.12.1)
|
65
65
|
rspec_junit_formatter (0.6.0)
|
66
66
|
rspec-core (>= 2, < 4, != 2.12.0)
|
67
67
|
rubocop (1.28.2)
|
@@ -110,4 +110,4 @@ DEPENDENCIES
|
|
110
110
|
slack-ruby-block-kit!
|
111
111
|
|
112
112
|
BUNDLED WITH
|
113
|
-
2.
|
113
|
+
2.4.18
|
@@ -76,13 +76,14 @@ module Slack
|
|
76
76
|
append(block)
|
77
77
|
end
|
78
78
|
|
79
|
-
def input(label:, hint: nil, block_id: nil, dispatch_action: nil, optional: nil)
|
79
|
+
def input(label:, hint: nil, block_id: nil, dispatch_action: nil, optional: nil, emoji: nil)
|
80
80
|
block = Layout::Input.new(
|
81
81
|
label: label,
|
82
82
|
hint: hint,
|
83
83
|
block_id: block_id,
|
84
84
|
dispatch_action: dispatch_action,
|
85
|
-
optional: optional
|
85
|
+
optional: optional,
|
86
|
+
emoji: emoji
|
86
87
|
)
|
87
88
|
|
88
89
|
yield(block) if block_given?
|
@@ -21,11 +21,12 @@ module Slack
|
|
21
21
|
yield(self) if block_given?
|
22
22
|
end
|
23
23
|
|
24
|
-
def option(value:, text:, initial: false)
|
24
|
+
def option(value:, text:, initial: false, emoji: nil)
|
25
25
|
option = Composition::Option.new(
|
26
26
|
value: value,
|
27
27
|
text: text,
|
28
|
-
initial: initial
|
28
|
+
initial: initial,
|
29
|
+
emoji: emoji
|
29
30
|
)
|
30
31
|
|
31
32
|
@options << option
|
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.23.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: 2023-08-
|
11
|
+
date: 2023-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|