slack-ruby-block-kit 0.7.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +27 -0
- data/.rubocop.yml +19 -0
- data/.rubocop_todo.yml +10 -0
- data/CHANGELOG.md +79 -0
- data/Gemfile +3 -1
- data/Gemfile.lock +25 -14
- data/README.md +1 -1
- data/lib/slack/block_kit.rb +44 -2
- data/lib/slack/block_kit/composition/confirmation_dialog.rb +16 -0
- data/lib/slack/block_kit/composition/conversation_filter.rb +33 -0
- data/lib/slack/block_kit/composition/option.rb +6 -1
- data/lib/slack/block_kit/composition/option_group.rb +2 -2
- data/lib/slack/block_kit/element/button.rb +3 -11
- data/lib/slack/block_kit/element/channels_select.rb +3 -11
- data/lib/slack/block_kit/element/checkboxes.rb +53 -0
- data/lib/slack/block_kit/element/conversations_select.rb +13 -7
- data/lib/slack/block_kit/element/date_picker.rb +3 -9
- data/lib/slack/block_kit/element/external_select.rb +3 -12
- data/lib/slack/block_kit/element/multi_channels_select.rb +5 -14
- data/lib/slack/block_kit/element/multi_conversations_select.rb +16 -11
- data/lib/slack/block_kit/element/multi_external_select.rb +5 -14
- data/lib/slack/block_kit/element/multi_static_select.rb +18 -25
- data/lib/slack/block_kit/element/multi_users_select.rb +5 -14
- data/lib/slack/block_kit/element/overflow_menu.rb +4 -11
- data/lib/slack/block_kit/element/radio_buttons.rb +53 -0
- data/lib/slack/block_kit/element/static_select.rb +20 -25
- data/lib/slack/block_kit/element/users_select.rb +3 -11
- data/lib/slack/block_kit/layout/header.rb +29 -0
- data/lib/slack/block_kit/layout/image.rb +1 -4
- data/lib/slack/block_kit/layout/section.rb +21 -1
- data/lib/slack/block_kit/version.rb +7 -0
- data/lib/slack/surfaces/home.rb +35 -0
- data/lib/slack/surfaces/message.rb +34 -0
- data/lib/slack/surfaces/modal.rb +76 -0
- data/slack-ruby-block-kit.gemspec +1 -8
- metadata +17 -9
- data/.circleci/config.yml +0 -49
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.12.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: 2020-
|
11
|
+
date: 2020-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -136,19 +136,20 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
-
description:
|
139
|
+
description:
|
140
140
|
email:
|
141
141
|
- c_arlt@hotmail.com
|
142
142
|
executables: []
|
143
143
|
extensions: []
|
144
144
|
extra_rdoc_files: []
|
145
145
|
files:
|
146
|
-
- ".circleci/config.yml"
|
147
146
|
- ".github/dependabot.yml"
|
147
|
+
- ".github/workflows/ci.yml"
|
148
148
|
- ".gitignore"
|
149
149
|
- ".rspec"
|
150
150
|
- ".rubocop.yml"
|
151
151
|
- ".rubocop_todo.yml"
|
152
|
+
- CHANGELOG.md
|
152
153
|
- Gemfile
|
153
154
|
- Gemfile.lock
|
154
155
|
- LICENSE.txt
|
@@ -159,12 +160,14 @@ files:
|
|
159
160
|
- lib/slack/block_kit.rb
|
160
161
|
- lib/slack/block_kit/blocks.rb
|
161
162
|
- lib/slack/block_kit/composition/confirmation_dialog.rb
|
163
|
+
- lib/slack/block_kit/composition/conversation_filter.rb
|
162
164
|
- lib/slack/block_kit/composition/mrkdwn.rb
|
163
165
|
- lib/slack/block_kit/composition/option.rb
|
164
166
|
- lib/slack/block_kit/composition/option_group.rb
|
165
167
|
- lib/slack/block_kit/composition/plain_text.rb
|
166
168
|
- lib/slack/block_kit/element/button.rb
|
167
169
|
- lib/slack/block_kit/element/channels_select.rb
|
170
|
+
- lib/slack/block_kit/element/checkboxes.rb
|
168
171
|
- lib/slack/block_kit/element/conversations_select.rb
|
169
172
|
- lib/slack/block_kit/element/date_picker.rb
|
170
173
|
- lib/slack/block_kit/element/external_select.rb
|
@@ -176,22 +179,27 @@ files:
|
|
176
179
|
- lib/slack/block_kit/element/multi_users_select.rb
|
177
180
|
- lib/slack/block_kit/element/overflow_menu.rb
|
178
181
|
- lib/slack/block_kit/element/plain_text_input.rb
|
182
|
+
- lib/slack/block_kit/element/radio_buttons.rb
|
179
183
|
- lib/slack/block_kit/element/static_select.rb
|
180
184
|
- lib/slack/block_kit/element/users_select.rb
|
181
185
|
- lib/slack/block_kit/layout/actions.rb
|
182
186
|
- lib/slack/block_kit/layout/context.rb
|
183
187
|
- lib/slack/block_kit/layout/divider.rb
|
188
|
+
- lib/slack/block_kit/layout/header.rb
|
184
189
|
- lib/slack/block_kit/layout/image.rb
|
185
190
|
- lib/slack/block_kit/layout/input.rb
|
186
191
|
- lib/slack/block_kit/layout/section.rb
|
187
192
|
- lib/slack/block_kit/layout/section/multi_select_elements.rb
|
193
|
+
- lib/slack/block_kit/version.rb
|
194
|
+
- lib/slack/surfaces/home.rb
|
195
|
+
- lib/slack/surfaces/message.rb
|
196
|
+
- lib/slack/surfaces/modal.rb
|
188
197
|
- slack-ruby-block-kit.gemspec
|
189
198
|
homepage: https://github.com/CGA1123/slack-ruby-block-kit
|
190
199
|
licenses:
|
191
200
|
- MIT
|
192
|
-
metadata:
|
193
|
-
|
194
|
-
post_install_message:
|
201
|
+
metadata: {}
|
202
|
+
post_install_message:
|
195
203
|
rdoc_options: []
|
196
204
|
require_paths:
|
197
205
|
- lib
|
@@ -207,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
215
|
version: '0'
|
208
216
|
requirements: []
|
209
217
|
rubygems_version: 3.1.2
|
210
|
-
signing_key:
|
218
|
+
signing_key:
|
211
219
|
specification_version: 4
|
212
220
|
summary: A ruby wrapper for Slack's Block Kit
|
213
221
|
test_files: []
|
data/.circleci/config.yml
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
version: 2
|
2
|
-
jobs:
|
3
|
-
build:
|
4
|
-
docker:
|
5
|
-
- image: circleci/ruby:2.7
|
6
|
-
|
7
|
-
working_directory: ~/repo
|
8
|
-
|
9
|
-
steps:
|
10
|
-
- checkout
|
11
|
-
- restore_cache:
|
12
|
-
keys:
|
13
|
-
- v1-dependencies-{{ checksum "Gemfile.lock" }}
|
14
|
-
- v1-dependencies-
|
15
|
-
|
16
|
-
- run:
|
17
|
-
name: bundle
|
18
|
-
command: |
|
19
|
-
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
20
|
-
|
21
|
-
- save_cache:
|
22
|
-
paths:
|
23
|
-
- ./vendor/bundle
|
24
|
-
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
25
|
-
|
26
|
-
- run:
|
27
|
-
name: rspec
|
28
|
-
command: |
|
29
|
-
mkdir /tmp/test-results
|
30
|
-
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | \
|
31
|
-
circleci tests split --split-by=timings)"
|
32
|
-
|
33
|
-
bundle exec rspec \
|
34
|
-
--format progress \
|
35
|
-
--format RspecJunitFormatter \
|
36
|
-
--out /tmp/test-results/rspec.xml \
|
37
|
-
--format progress \
|
38
|
-
$TEST_FILES
|
39
|
-
|
40
|
-
# collect reports
|
41
|
-
- store_test_results:
|
42
|
-
path: /tmp/test-results
|
43
|
-
- store_artifacts:
|
44
|
-
path: /tmp/test-results
|
45
|
-
destination: test-results
|
46
|
-
|
47
|
-
- run:
|
48
|
-
name: rubocop
|
49
|
-
command: bundle exec rubocop -p
|