slack-ruby-block-kit 0.22.0 → 0.23.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: 0bc7d017312a1b9050129594164e9b4eff6516df696e52a72eeced5b434a862d
4
- data.tar.gz: c6b04c9e520b33be39ef4efcf492b798e70558ae61024e137eb71ecac3fdb9d8
3
+ metadata.gz: 0c1823b83c807b7c74ed6dc2a6c9adfd1945de04ab0cc6728d2d0864e0e6ed2e
4
+ data.tar.gz: 2b90261eac6e5b840d92b9d6492ef59c7a98558104c95c3b0cd3821fe8a00619
5
5
  SHA512:
6
- metadata.gz: 5aa13638ce2aad5b93175bd66b16320533693e81e20f3ec95df4f6c916f85da31c47d15aec93933b79b2d3d34da320588036e32666baa5b18bb5c81f3c4cd89d
7
- data.tar.gz: 6a2c6f5fbb5e7447069d421e1ec9cb99d44b4eec3f62b49a6df34e31b27336e2a12fd7f870398baafbdabc87b50d881d9c2537e121164d7e7ed7adbbe6249c14
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
- ## [0.22.0] - 2023-08-5
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.22.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.0)
56
+ rspec-core (3.12.2)
57
57
  rspec-support (~> 3.12.0)
58
- rspec-expectations (3.12.0)
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.0)
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.0)
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.2.3
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Slack
4
4
  module BlockKit
5
- VERSION = '0.22.0'
5
+ VERSION = '0.23.0'
6
6
  end
7
7
  end
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.22.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-05 00:00:00.000000000 Z
11
+ date: 2023-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zeitwerk