slack-ruby-block-kit 0.25.0 → 0.26.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/.github/workflows/ci.yml +1 -8
- data/CHANGELOG.md +8 -1
- data/Gemfile.lock +1 -1
- data/lib/slack/block_kit/layout/input.rb +22 -0
- data/lib/slack/block_kit/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bff614ab4eb7e814b32e1eeac46e89f8383b4ab7c97e26dd7cc4e38f929ab444
|
4
|
+
data.tar.gz: dad0918655dd75ed41246ad89f9af4ea4ef8164be47394c3bbbd3a65e5ca8d46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fff0e229bbcdcc1a3d145a92b86fe019f3b87e63d37c2ae64cec1912676a329d83f24dc599ddb53727b17462aefa0445211cc5e6afde9ef3f36af8e148bb049c
|
7
|
+
data.tar.gz: 3c1c1da220ea96f8c04e38ef86d3fac3ad4c408470b997bf077f04ebea5289eb4bb377571a1032eb04281bd7f868ed24a0d23d0ddf93b992f97a2e3b54fd2b99
|
data/.github/workflows/ci.yml
CHANGED
@@ -8,16 +8,12 @@ on:
|
|
8
8
|
|
9
9
|
jobs:
|
10
10
|
build:
|
11
|
-
permissions:
|
12
|
-
contents: write
|
13
|
-
id-token: write
|
14
|
-
|
15
11
|
runs-on: ubuntu-latest
|
16
12
|
continue-on-error: ${{ matrix.experimental }}
|
17
13
|
strategy:
|
18
14
|
fail-fast: false
|
19
15
|
matrix:
|
20
|
-
ruby: [ '
|
16
|
+
ruby: [ '3.1', '3.2', '3.3' ]
|
21
17
|
experimental: [ false ]
|
22
18
|
name: Ruby ${{ matrix.ruby }}
|
23
19
|
steps:
|
@@ -26,8 +22,5 @@ jobs:
|
|
26
22
|
with:
|
27
23
|
ruby-version: ${{ matrix.ruby }}
|
28
24
|
bundler-cache: true
|
29
|
-
- uses: codecov/codecov-action@v4
|
30
|
-
with:
|
31
|
-
use_oidc: true
|
32
25
|
- run: bundle exec rspec --format progress
|
33
26
|
- run: bundle exec rubocop
|
data/CHANGELOG.md
CHANGED
@@ -25,6 +25,12 @@ 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.26.0] - 2025-02-24
|
29
|
+
|
30
|
+
### Added
|
31
|
+
|
32
|
+
- Add Slack::BlockKit::Layout::Input#number_input (#197 by @070bex424pankaj)
|
33
|
+
|
28
34
|
## [0.25.0] - 2024-11-22
|
29
35
|
|
30
36
|
### Added
|
@@ -197,7 +203,8 @@ This release contains a breaking change on the `Layout::Actions` interface.
|
|
197
203
|
- Fixed initial options in multi select blocks (#46 by @caalberts)
|
198
204
|
|
199
205
|
|
200
|
-
[Unreleased]: https://github.com/CGA1123/slack-ruby-block-kit/compare/v0.
|
206
|
+
[Unreleased]: https://github.com/CGA1123/slack-ruby-block-kit/compare/v0.26.0...HEAD
|
207
|
+
[0.26.0]: https://github.com/CGA1123/slack-ruby-block-kit/compare/v0.25.0...v0.26.0
|
201
208
|
[0.25.0]: https://github.com/CGA1123/slack-ruby-block-kit/compare/v0.24.0...v0.25.0
|
202
209
|
[0.24.0]: https://github.com/CGA1123/slack-ruby-block-kit/compare/v0.23.0...v0.24.0
|
203
210
|
[0.23.0]: https://github.com/CGA1123/slack-ruby-block-kit/compare/v0.22.0...v0.23.0
|
data/Gemfile.lock
CHANGED
@@ -216,6 +216,28 @@ module Slack
|
|
216
216
|
self
|
217
217
|
end
|
218
218
|
|
219
|
+
def number_input(
|
220
|
+
action_id:,
|
221
|
+
is_decimal_allowed:,
|
222
|
+
placeholder: nil,
|
223
|
+
initial_value: nil,
|
224
|
+
min_value: nil,
|
225
|
+
max_value: nil,
|
226
|
+
focus_on_load: nil
|
227
|
+
)
|
228
|
+
@element = Element::NumberInput.new(
|
229
|
+
action_id: action_id,
|
230
|
+
is_decimal_allowed: is_decimal_allowed,
|
231
|
+
placeholder: placeholder,
|
232
|
+
initial_value: initial_value,
|
233
|
+
min_value: min_value,
|
234
|
+
max_value: max_value,
|
235
|
+
focus_on_load: focus_on_load
|
236
|
+
)
|
237
|
+
|
238
|
+
self
|
239
|
+
end
|
240
|
+
|
219
241
|
def url_text_input(
|
220
242
|
action_id:,
|
221
243
|
placeholder: nil,
|
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.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Gregg
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.6'
|
27
|
-
description:
|
27
|
+
description:
|
28
28
|
email:
|
29
29
|
- c_arlt@hotmail.com
|
30
30
|
executables: []
|
@@ -120,7 +120,7 @@ licenses:
|
|
120
120
|
- MIT
|
121
121
|
metadata:
|
122
122
|
rubygems_mfa_required: 'true'
|
123
|
-
post_install_message:
|
123
|
+
post_install_message:
|
124
124
|
rdoc_options: []
|
125
125
|
require_paths:
|
126
126
|
- lib
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
138
|
rubygems_version: 3.5.22
|
139
|
-
signing_key:
|
139
|
+
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: A ruby wrapper for Slack's Block Kit
|
142
142
|
test_files: []
|