slack-ruby-block-kit 0.6.1 → 0.11.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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +9 -0
  3. data/.github/workflows/ci.yml +31 -0
  4. data/.rubocop.yml +46 -1
  5. data/.rubocop_todo.yml +8 -0
  6. data/CHANGELOG.md +56 -0
  7. data/Gemfile +0 -1
  8. data/Gemfile.lock +33 -28
  9. data/lib/slack/block_kit.rb +49 -5
  10. data/lib/slack/block_kit/composition/confirmation_dialog.rb +20 -0
  11. data/lib/slack/block_kit/composition/conversation_filter.rb +33 -0
  12. data/lib/slack/block_kit/composition/option.rb +1 -1
  13. data/lib/slack/block_kit/element/button.rb +3 -11
  14. data/lib/slack/block_kit/element/channels_select.rb +3 -11
  15. data/lib/slack/block_kit/element/checkboxes.rb +55 -0
  16. data/lib/slack/block_kit/element/conversations_select.rb +13 -7
  17. data/lib/slack/block_kit/element/date_picker.rb +3 -9
  18. data/lib/slack/block_kit/element/external_select.rb +3 -11
  19. data/lib/slack/block_kit/element/multi_channels_select.rb +42 -0
  20. data/lib/slack/block_kit/element/multi_conversations_select.rb +57 -0
  21. data/lib/slack/block_kit/element/multi_external_select.rb +52 -0
  22. data/lib/slack/block_kit/element/multi_static_select.rb +82 -0
  23. data/lib/slack/block_kit/element/multi_users_select.rb +42 -0
  24. data/lib/slack/block_kit/element/overflow_menu.rb +4 -10
  25. data/lib/slack/block_kit/element/plain_text_input.rb +1 -1
  26. data/lib/slack/block_kit/element/radio_buttons.rb +48 -0
  27. data/lib/slack/block_kit/element/static_select.rb +4 -10
  28. data/lib/slack/block_kit/element/users_select.rb +3 -11
  29. data/lib/slack/block_kit/layout/context.rb +1 -0
  30. data/lib/slack/block_kit/layout/image.rb +1 -4
  31. data/lib/slack/block_kit/layout/section.rb +29 -1
  32. data/lib/slack/block_kit/layout/section/multi_select_elements.rb +92 -0
  33. data/lib/slack/surfaces/home.rb +35 -0
  34. data/lib/slack/surfaces/message.rb +34 -0
  35. data/lib/slack/surfaces/modal.rb +76 -0
  36. metadata +21 -7
  37. 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.6.1
4
+ version: 0.11.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-05-19 00:00:00.000000000 Z
11
+ date: 2020-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -136,18 +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"
146
+ - ".github/dependabot.yml"
147
+ - ".github/workflows/ci.yml"
147
148
  - ".gitignore"
148
149
  - ".rspec"
149
150
  - ".rubocop.yml"
150
151
  - ".rubocop_todo.yml"
152
+ - CHANGELOG.md
151
153
  - Gemfile
152
154
  - Gemfile.lock
153
155
  - LICENSE.txt
@@ -158,18 +160,26 @@ files:
158
160
  - lib/slack/block_kit.rb
159
161
  - lib/slack/block_kit/blocks.rb
160
162
  - lib/slack/block_kit/composition/confirmation_dialog.rb
163
+ - lib/slack/block_kit/composition/conversation_filter.rb
161
164
  - lib/slack/block_kit/composition/mrkdwn.rb
162
165
  - lib/slack/block_kit/composition/option.rb
163
166
  - lib/slack/block_kit/composition/option_group.rb
164
167
  - lib/slack/block_kit/composition/plain_text.rb
165
168
  - lib/slack/block_kit/element/button.rb
166
169
  - lib/slack/block_kit/element/channels_select.rb
170
+ - lib/slack/block_kit/element/checkboxes.rb
167
171
  - lib/slack/block_kit/element/conversations_select.rb
168
172
  - lib/slack/block_kit/element/date_picker.rb
169
173
  - lib/slack/block_kit/element/external_select.rb
170
174
  - lib/slack/block_kit/element/image.rb
175
+ - lib/slack/block_kit/element/multi_channels_select.rb
176
+ - lib/slack/block_kit/element/multi_conversations_select.rb
177
+ - lib/slack/block_kit/element/multi_external_select.rb
178
+ - lib/slack/block_kit/element/multi_static_select.rb
179
+ - lib/slack/block_kit/element/multi_users_select.rb
171
180
  - lib/slack/block_kit/element/overflow_menu.rb
172
181
  - lib/slack/block_kit/element/plain_text_input.rb
182
+ - lib/slack/block_kit/element/radio_buttons.rb
173
183
  - lib/slack/block_kit/element/static_select.rb
174
184
  - lib/slack/block_kit/element/users_select.rb
175
185
  - lib/slack/block_kit/layout/actions.rb
@@ -178,13 +188,17 @@ files:
178
188
  - lib/slack/block_kit/layout/image.rb
179
189
  - lib/slack/block_kit/layout/input.rb
180
190
  - lib/slack/block_kit/layout/section.rb
191
+ - lib/slack/block_kit/layout/section/multi_select_elements.rb
192
+ - lib/slack/surfaces/home.rb
193
+ - lib/slack/surfaces/message.rb
194
+ - lib/slack/surfaces/modal.rb
181
195
  - slack-ruby-block-kit.gemspec
182
196
  homepage: https://github.com/CGA1123/slack-ruby-block-kit
183
197
  licenses:
184
198
  - MIT
185
199
  metadata:
186
200
  allowed_push_host: https://rubygems.org
187
- post_install_message:
201
+ post_install_message:
188
202
  rdoc_options: []
189
203
  require_paths:
190
204
  - lib
@@ -200,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
214
  version: '0'
201
215
  requirements: []
202
216
  rubygems_version: 3.1.2
203
- signing_key:
217
+ signing_key:
204
218
  specification_version: 4
205
219
  summary: A ruby wrapper for Slack's Block Kit
206
220
  test_files: []
@@ -1,49 +0,0 @@
1
- version: 2
2
- jobs:
3
- build:
4
- docker:
5
- - image: circleci/ruby:2.5.3
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