slack-ruby-client 0.14.6 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (274) hide show
  1. checksums.yaml +4 -4
  2. data/.github/FUNDING.yml +1 -0
  3. data/.rubocop.yml +15 -3
  4. data/.rubocop_todo.yml +110 -38
  5. data/.travis.yml +2 -5
  6. data/CHANGELOG.md +42 -0
  7. data/CONTRIBUTING.md +19 -8
  8. data/Dangerfile +1 -1
  9. data/Gemfile +1 -2
  10. data/LICENSE.md +1 -1
  11. data/README.md +38 -36
  12. data/RELEASING.md +1 -1
  13. data/UPGRADING.md +62 -2
  14. data/bin/commands/admin_analytics.rb +16 -0
  15. data/bin/commands/admin_apps.rb +26 -2
  16. data/bin/commands/admin_apps_requests.rb +1 -0
  17. data/bin/commands/admin_auth_policy.rb +39 -0
  18. data/bin/commands/admin_barriers.rb +47 -0
  19. data/bin/commands/admin_conversations.rb +155 -3
  20. data/bin/commands/admin_conversations_ekm.rb +17 -0
  21. data/bin/commands/admin_conversations_restrictAccess.rb +37 -0
  22. data/bin/commands/admin_conversations_whitelist.rb +37 -0
  23. data/bin/commands/admin_emoji.rb +1 -1
  24. data/bin/commands/admin_teams.rb +1 -1
  25. data/bin/commands/admin_usergroups.rb +48 -0
  26. data/bin/commands/admin_users.rb +3 -2
  27. data/bin/commands/admin_users_session.rb +62 -0
  28. data/bin/commands/api.rb +0 -1
  29. data/bin/commands/apps_connections.rb +13 -0
  30. data/bin/commands/apps_event_authorizations.rb +16 -0
  31. data/bin/commands/apps_manifest.rb +51 -0
  32. data/bin/commands/auth_teams.rb +16 -0
  33. data/bin/commands/bots.rb +1 -0
  34. data/bin/commands/calls.rb +52 -0
  35. data/bin/commands/calls_participants.rb +25 -0
  36. data/bin/commands/channels.rb +1 -155
  37. data/bin/commands/chat.rb +17 -12
  38. data/bin/commands/chat_scheduledMessages.rb +1 -0
  39. data/bin/commands/conversations.rb +71 -3
  40. data/bin/commands/dnd.rb +2 -0
  41. data/bin/commands/files.rb +6 -4
  42. data/bin/commands/files_remote.rb +2 -2
  43. data/bin/commands/groups.rb +1 -162
  44. data/bin/commands/im.rb +1 -63
  45. data/bin/commands/migration.rb +1 -0
  46. data/bin/commands/mpim.rb +1 -61
  47. data/bin/commands/oauth.rb +0 -13
  48. data/bin/commands/oauth_v2.rb +13 -1
  49. data/bin/commands/openid_connect.rb +27 -0
  50. data/bin/commands/pins.rb +2 -4
  51. data/bin/commands/reactions.rb +1 -0
  52. data/bin/commands/reminders.rb +6 -0
  53. data/bin/commands/rtm.rb +2 -2
  54. data/bin/commands/search.rb +4 -0
  55. data/bin/commands/stars.rb +7 -6
  56. data/bin/commands/team.rb +3 -0
  57. data/bin/commands/team_billing.rb +13 -0
  58. data/bin/commands/team_preferences.rb +13 -0
  59. data/bin/commands/tooling_tokens.rb +14 -0
  60. data/bin/commands/usergroups.rb +5 -0
  61. data/bin/commands/usergroups_users.rb +2 -0
  62. data/bin/commands/users.rb +4 -2
  63. data/bin/commands/users_profile.rb +5 -5
  64. data/bin/commands/views.rb +2 -2
  65. data/bin/commands/workflows.rb +38 -0
  66. data/bin/commands.rb +17 -8
  67. data/lib/slack/config.rb +1 -2
  68. data/lib/slack/events/request.rb +10 -4
  69. data/lib/slack/messages/message.rb +0 -4
  70. data/lib/slack/real_time/client.rb +6 -6
  71. data/lib/slack/real_time/concurrency/async.rb +7 -11
  72. data/lib/slack/real_time/concurrency.rb +0 -2
  73. data/lib/slack/real_time/config.rb +5 -14
  74. data/lib/slack/real_time/models/base.rb +0 -4
  75. data/lib/slack/real_time/socket.rb +3 -4
  76. data/lib/slack/real_time/stores/base.rb +4 -7
  77. data/lib/slack/real_time/stores/starter.rb +6 -3
  78. data/lib/slack/real_time/stores/store.rb +5 -0
  79. data/lib/slack/version.rb +1 -1
  80. data/lib/slack/web/api/endpoints/admin_analytics.rb +28 -0
  81. data/lib/slack/web/api/endpoints/admin_apps.rb +42 -6
  82. data/lib/slack/web/api/endpoints/admin_apps_approved.rb +2 -2
  83. data/lib/slack/web/api/endpoints/admin_apps_requests.rb +4 -2
  84. data/lib/slack/web/api/endpoints/admin_apps_restricted.rb +2 -2
  85. data/lib/slack/web/api/endpoints/admin_auth_policy.rb +72 -0
  86. data/lib/slack/web/api/endpoints/admin_barriers.rb +82 -0
  87. data/lib/slack/web/api/endpoints/admin_conversations.rb +234 -4
  88. data/lib/slack/web/api/endpoints/admin_conversations_ekm.rb +35 -0
  89. data/lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb +61 -0
  90. data/lib/slack/web/api/endpoints/admin_conversations_whitelist.rb +64 -0
  91. data/lib/slack/web/api/endpoints/admin_emoji.rb +10 -10
  92. data/lib/slack/web/api/endpoints/admin_inviteRequests.rb +7 -7
  93. data/lib/slack/web/api/endpoints/admin_inviteRequests_approved.rb +3 -3
  94. data/lib/slack/web/api/endpoints/admin_inviteRequests_denied.rb +2 -2
  95. data/lib/slack/web/api/endpoints/admin_teams.rb +7 -7
  96. data/lib/slack/web/api/endpoints/admin_teams_admins.rb +2 -2
  97. data/lib/slack/web/api/endpoints/admin_teams_owners.rb +2 -2
  98. data/lib/slack/web/api/endpoints/admin_teams_settings.rb +5 -5
  99. data/lib/slack/web/api/endpoints/admin_usergroups.rb +77 -0
  100. data/lib/slack/web/api/endpoints/admin_users.rb +23 -23
  101. data/lib/slack/web/api/endpoints/admin_users_session.rb +97 -3
  102. data/lib/slack/web/api/endpoints/api.rb +1 -3
  103. data/lib/slack/web/api/endpoints/apps.rb +2 -2
  104. data/lib/slack/web/api/endpoints/apps_connections.rb +21 -0
  105. data/lib/slack/web/api/endpoints/apps_event_authorizations.rb +34 -0
  106. data/lib/slack/web/api/endpoints/apps_manifest.rb +75 -0
  107. data/lib/slack/web/api/endpoints/auth.rb +1 -1
  108. data/lib/slack/web/api/endpoints/auth_teams.rb +33 -0
  109. data/lib/slack/web/api/endpoints/bots.rb +3 -1
  110. data/lib/slack/web/api/endpoints/calls.rb +83 -0
  111. data/lib/slack/web/api/endpoints/calls_participants.rb +42 -0
  112. data/lib/slack/web/api/endpoints/channels.rb +1 -245
  113. data/lib/slack/web/api/endpoints/chat.rb +76 -66
  114. data/lib/slack/web/api/endpoints/chat_scheduledMessages.rb +5 -3
  115. data/lib/slack/web/api/endpoints/conversations.rb +149 -41
  116. data/lib/slack/web/api/endpoints/dialog.rb +2 -2
  117. data/lib/slack/web/api/endpoints/dnd.rb +6 -3
  118. data/lib/slack/web/api/endpoints/files.rb +21 -17
  119. data/lib/slack/web/api/endpoints/files_comments.rb +1 -1
  120. data/lib/slack/web/api/endpoints/files_remote.rb +23 -23
  121. data/lib/slack/web/api/endpoints/groups.rb +0 -253
  122. data/lib/slack/web/api/endpoints/im.rb +0 -101
  123. data/lib/slack/web/api/endpoints/migration.rb +4 -2
  124. data/lib/slack/web/api/endpoints/mpim.rb +0 -96
  125. data/lib/slack/web/api/endpoints/oauth.rb +5 -30
  126. data/lib/slack/web/api/endpoints/oauth_v2.rb +24 -6
  127. data/lib/slack/web/api/endpoints/openid_connect.rb +42 -0
  128. data/lib/slack/web/api/endpoints/pins.rb +7 -12
  129. data/lib/slack/web/api/endpoints/reactions.rb +16 -14
  130. data/lib/slack/web/api/endpoints/reminders.rb +17 -5
  131. data/lib/slack/web/api/endpoints/rtm.rb +10 -10
  132. data/lib/slack/web/api/endpoints/search.rb +27 -13
  133. data/lib/slack/web/api/endpoints/stars.rb +13 -11
  134. data/lib/slack/web/api/endpoints/team.rb +11 -5
  135. data/lib/slack/web/api/endpoints/team_billing.rb +21 -0
  136. data/lib/slack/web/api/endpoints/team_preferences.rb +21 -0
  137. data/lib/slack/web/api/endpoints/team_profile.rb +1 -1
  138. data/lib/slack/web/api/endpoints/tooling_tokens.rb +24 -0
  139. data/lib/slack/web/api/endpoints/usergroups.rb +26 -16
  140. data/lib/slack/web/api/endpoints/usergroups_users.rb +9 -5
  141. data/lib/slack/web/api/endpoints/users.rb +20 -18
  142. data/lib/slack/web/api/endpoints/users_profile.rb +7 -7
  143. data/lib/slack/web/api/endpoints/views.rb +13 -13
  144. data/lib/slack/web/api/endpoints/workflows.rb +61 -0
  145. data/lib/slack/web/api/endpoints.rb +35 -18
  146. data/lib/slack/web/api/errors/server_error.rb +37 -0
  147. data/lib/slack/web/api/errors/too_many_requests_error.rb +1 -4
  148. data/lib/slack/web/api/errors.rb +486 -12
  149. data/lib/slack/web/api/mixins/{channels.id.rb → conversations.id.rb} +3 -5
  150. data/lib/slack/web/api/mixins/ids.id.rb +3 -5
  151. data/lib/slack/web/api/mixins/users.id.rb +1 -3
  152. data/lib/slack/web/api/mixins.rb +1 -2
  153. data/lib/slack/web/api/patches/{chat.6.block-kit-support.patch → chat.1.patch} +25 -24
  154. data/lib/slack/web/api/templates/endpoints.erb +1 -2
  155. data/lib/slack/web/api/templates/method.erb +4 -1
  156. data/lib/slack/web/api/templates/method_spec.erb +1 -1
  157. data/lib/slack/web/config.rb +2 -0
  158. data/lib/slack/web/faraday/connection.rb +23 -20
  159. data/lib/slack/web/faraday/request.rb +2 -1
  160. data/lib/slack/web/faraday/response/raise_error.rb +12 -1
  161. data/lib/slack/web/faraday/response/wrap_error.rb +24 -0
  162. data/lib/slack/web/pagination/cursor.rb +3 -7
  163. data/lib/slack-ruby-client.rb +4 -4
  164. data/lib/tasks/web.rake +11 -3
  165. data/slack-ruby-client.gemspec +6 -7
  166. data/spec/fixtures/slack/web/429_error.yml +50 -54
  167. data/spec/fixtures/slack/web/auth_test_error.yml +51 -18
  168. data/spec/fixtures/slack/web/auth_test_success.yml +50 -26
  169. data/spec/fixtures/slack/web/conversations_info.yml +167 -0
  170. data/spec/fixtures/slack/web/conversations_setTopic.yml +84 -0
  171. data/spec/fixtures/slack/web/conversations_setTopic_one_page.yml +172 -0
  172. data/spec/fixtures/slack/web/conversations_setTopic_paginated.yml +253 -0
  173. data/spec/fixtures/slack/web/paginated_users_list.yml +501 -69
  174. data/spec/fixtures/slack/web/rtm_connect.yml +267 -30
  175. data/spec/fixtures/slack/web/rtm_start.yml +771 -60
  176. data/spec/fixtures/slack/web/users_info.yml +153 -69
  177. data/spec/fixtures/slack/web/users_list.yml +102 -41
  178. data/spec/fixtures/slack/web/views_open_error.yml +49 -42
  179. data/spec/slack/events/request_spec.rb +13 -8
  180. data/spec/slack/real_time/client_spec.rb +35 -22
  181. data/spec/slack/real_time/concurrency/with_concurrency_spec.rb +10 -0
  182. data/spec/slack/real_time/concurrency/without_concurrency_spec.rb +10 -0
  183. data/spec/slack/real_time/event_handlers/bot_spec.rb +1 -1
  184. data/spec/slack/real_time/event_handlers/channel_spec.rb +1 -1
  185. data/spec/slack/real_time/event_handlers/im_spec.rb +5 -5
  186. data/spec/slack/real_time/event_handlers/user_spec.rb +2 -2
  187. data/spec/slack/real_time/rtm_connect_spec.rb +1 -1
  188. data/spec/slack/real_time/rtm_start_spec.rb +1 -1
  189. data/spec/slack/slack_spec.rb +3 -1
  190. data/spec/slack/web/api/endpoints/admin_analytics_spec.rb +13 -0
  191. data/spec/slack/web/api/endpoints/admin_apps_spec.rb +10 -0
  192. data/spec/slack/web/api/endpoints/admin_auth_policy_spec.rb +35 -0
  193. data/spec/slack/web/api/endpoints/admin_barriers_spec.rb +38 -0
  194. data/spec/slack/web/api/endpoints/{apps_permissions_scopes_spec.rb → admin_conversations_ekm_spec.rb} +1 -1
  195. data/spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb +32 -0
  196. data/spec/slack/web/api/endpoints/admin_conversations_spec.rb +85 -0
  197. data/spec/slack/web/api/endpoints/admin_emoji_spec.rb +6 -6
  198. data/spec/slack/web/api/endpoints/admin_teams_settings_spec.rb +10 -10
  199. data/spec/slack/web/api/endpoints/admin_teams_spec.rb +2 -2
  200. data/spec/slack/web/api/endpoints/admin_usergroups_spec.rb +37 -0
  201. data/spec/slack/web/api/endpoints/admin_users_session_spec.rb +28 -0
  202. data/spec/slack/web/api/endpoints/admin_users_spec.rb +15 -23
  203. data/spec/slack/web/api/endpoints/{apps_permissions_resources_spec.rb → apps_connections_spec.rb} +1 -1
  204. data/spec/slack/web/api/endpoints/apps_event_authorizations_spec.rb +13 -0
  205. data/spec/slack/web/api/endpoints/apps_manifest_spec.rb +36 -0
  206. data/spec/slack/web/api/endpoints/apps_spec.rb +2 -2
  207. data/spec/slack/web/api/endpoints/auth_teams_spec.rb +8 -0
  208. data/spec/slack/web/api/endpoints/calls_participants_spec.rb +24 -0
  209. data/spec/slack/web/api/endpoints/calls_spec.rb +31 -0
  210. data/spec/slack/web/api/endpoints/custom_specs/auth_spec.rb +4 -6
  211. data/spec/slack/web/api/endpoints/custom_specs/conversations_spec.rb +13 -0
  212. data/spec/slack/web/api/endpoints/custom_specs/users_spec.rb +2 -2
  213. data/spec/slack/web/api/endpoints/dnd_spec.rb +0 -5
  214. data/spec/slack/web/api/endpoints/files_comments_spec.rb +2 -2
  215. data/spec/slack/web/api/endpoints/files_remote_spec.rb +3 -3
  216. data/spec/slack/web/api/endpoints/files_spec.rb +4 -4
  217. data/spec/slack/web/api/endpoints/oauth_spec.rb +0 -22
  218. data/spec/slack/web/api/endpoints/oauth_v2_spec.rb +6 -3
  219. data/spec/slack/web/api/endpoints/openid_connect_spec.rb +8 -0
  220. data/spec/slack/web/api/endpoints/pins_spec.rb +1 -4
  221. data/spec/slack/web/api/endpoints/reactions_spec.rb +3 -3
  222. data/spec/slack/web/api/endpoints/reminders_spec.rb +2 -2
  223. data/spec/slack/web/api/endpoints/team_billing_spec.rb +8 -0
  224. data/spec/slack/web/api/endpoints/team_preferences_spec.rb +8 -0
  225. data/spec/slack/web/api/endpoints/tooling_tokens_spec.rb +13 -0
  226. data/spec/slack/web/api/endpoints/usergroups_users_spec.rb +2 -2
  227. data/spec/slack/web/api/endpoints/workflows_spec.rb +26 -0
  228. data/spec/slack/web/api/error_spec.rb +5 -7
  229. data/spec/slack/web/api/errors/slack_error_spec.rb +21 -26
  230. data/spec/slack/web/api/mixins/conversations_list_spec.rb +21 -0
  231. data/spec/slack/web/api/mixins/{channels_spec.rb → conversations_spec.rb} +8 -8
  232. data/spec/slack/web/api/mixins/users_spec.rb +1 -1
  233. data/spec/slack/web/api/pagination/cursor_spec.rb +1 -3
  234. data/spec/slack/web/client_spec.rb +123 -1
  235. data/spec/slack/web/faraday/request_spec.rb +80 -0
  236. data/spec/slack/web/faraday/response/raise_error_spec.rb +8 -6
  237. data/spec/spec_helper.rb +1 -1
  238. data/spec/support/real_time/connected_client.rb +1 -7
  239. data/spec/support/vcr.rb +36 -1
  240. metadata +95 -173
  241. data/examples/hi_real_time/Gemfile +0 -6
  242. data/examples/hi_real_time/hi.gif +0 -0
  243. data/examples/hi_real_time/hi.rb +0 -41
  244. data/examples/hi_real_time_async_celluloid/Gemfile +0 -7
  245. data/examples/hi_real_time_async_celluloid/Procfile +0 -2
  246. data/examples/hi_real_time_async_celluloid/hi.rb +0 -39
  247. data/examples/hi_real_time_async_eventmachine/Gemfile +0 -7
  248. data/examples/hi_real_time_async_eventmachine/Procfile +0 -2
  249. data/examples/hi_real_time_async_eventmachine/hi.rb +0 -39
  250. data/lib/slack/real_time/concurrency/celluloid.rb +0 -142
  251. data/lib/slack/real_time/concurrency/eventmachine.rb +0 -85
  252. data/lib/slack/web/api/mixins/channels.id.json +0 -20
  253. data/lib/slack/web/api/mixins/groups.id.json +0 -20
  254. data/lib/slack/web/api/mixins/groups.id.rb +0 -27
  255. data/lib/slack/web/api/patches/chat.1.text-attachments-required.patch +0 -13
  256. data/lib/slack/web/api/patches/chat.2.attachments-json.patch +0 -17
  257. data/lib/slack/web/api/patches/chat.3.update-attachments-support.patch +0 -21
  258. data/lib/slack/web/api/patches/chat.4.postEphemeral-attachments-support.patch +0 -17
  259. data/lib/slack/web/api/patches/chat.5.postEphemeral-text-or-attachments.patch +0 -15
  260. data/spec/fixtures/slack/web/503_error.yml +0 -14
  261. data/spec/fixtures/slack/web/channels_info.yml +0 -46
  262. data/spec/fixtures/slack/web/groups_info.yml +0 -43
  263. data/spec/slack/real_time/concurrency/celluloid_spec.rb +0 -116
  264. data/spec/slack/real_time/concurrency/eventmachine_spec.rb +0 -57
  265. data/spec/slack/web/api/endpoints/apps_permissions_spec.rb +0 -16
  266. data/spec/slack/web/api/endpoints/apps_permissions_users_spec.rb +0 -19
  267. data/spec/slack/web/api/endpoints/conversations_spec.rb +0 -101
  268. data/spec/slack/web/api/endpoints/custom_specs/channels_spec.rb +0 -13
  269. data/spec/slack/web/api/endpoints/custom_specs/groups_spec.rb +0 -13
  270. data/spec/slack/web/api/endpoints/im_spec.rb +0 -39
  271. data/spec/slack/web/api/endpoints/mpim_spec.rb +0 -39
  272. data/spec/slack/web/api/endpoints/views_spec.rb +0 -29
  273. data/spec/slack/web/api/errors/service_unavailable_spec.rb +0 -17
  274. data/spec/slack/web/api/mixins/groups_spec.rb +0 -43
metadata CHANGED
@@ -1,45 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.6
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Doubrovkine
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-28 00:00:00.000000000 Z
11
+ date: 2021-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: activesupport
14
+ name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: faraday
28
+ name: faraday_middleware
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0.9'
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0.9'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: faraday_middleware
42
+ name: gli
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: gli
56
+ name: hashie
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: hashie
70
+ name: websocket-driver
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,13 +81,13 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: websocket-driver
84
+ name: activesupport
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
- type: :runtime
90
+ type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '10'
131
+ version: '13'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '10'
138
+ version: '13'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -156,42 +156,42 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.73.0
159
+ version: 0.93.1
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.73.0
166
+ version: 0.93.1
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rubocop-performance
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 1.4.1
173
+ version: 1.5.2
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 1.4.1
180
+ version: 1.5.2
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: rubocop-rspec
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 1.34.0
187
+ version: 1.39.0
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 1.34.0
194
+ version: 1.39.0
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: timecop
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -234,13 +234,14 @@ dependencies:
234
234
  - - ">="
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
- description:
237
+ description:
238
238
  email: dblock@dblock.org
239
239
  executables:
240
240
  - slack
241
241
  extensions: []
242
242
  extra_rdoc_files: []
243
243
  files:
244
+ - ".github/FUNDING.yml"
244
245
  - ".gitignore"
245
246
  - ".gitmodules"
246
247
  - ".rspec"
@@ -257,11 +258,17 @@ files:
257
258
  - Rakefile
258
259
  - UPGRADING.md
259
260
  - bin/commands.rb
261
+ - bin/commands/admin_analytics.rb
260
262
  - bin/commands/admin_apps.rb
261
263
  - bin/commands/admin_apps_approved.rb
262
264
  - bin/commands/admin_apps_requests.rb
263
265
  - bin/commands/admin_apps_restricted.rb
266
+ - bin/commands/admin_auth_policy.rb
267
+ - bin/commands/admin_barriers.rb
264
268
  - bin/commands/admin_conversations.rb
269
+ - bin/commands/admin_conversations_ekm.rb
270
+ - bin/commands/admin_conversations_restrictAccess.rb
271
+ - bin/commands/admin_conversations_whitelist.rb
265
272
  - bin/commands/admin_emoji.rb
266
273
  - bin/commands/admin_inviteRequests.rb
267
274
  - bin/commands/admin_inviteRequests_approved.rb
@@ -270,16 +277,23 @@ files:
270
277
  - bin/commands/admin_teams_admins.rb
271
278
  - bin/commands/admin_teams_owners.rb
272
279
  - bin/commands/admin_teams_settings.rb
280
+ - bin/commands/admin_usergroups.rb
273
281
  - bin/commands/admin_users.rb
274
282
  - bin/commands/admin_users_session.rb
275
283
  - bin/commands/api.rb
276
284
  - bin/commands/apps.rb
285
+ - bin/commands/apps_connections.rb
286
+ - bin/commands/apps_event_authorizations.rb
287
+ - bin/commands/apps_manifest.rb
277
288
  - bin/commands/apps_permissions.rb
278
289
  - bin/commands/apps_permissions_resources.rb
279
290
  - bin/commands/apps_permissions_scopes.rb
280
291
  - bin/commands/apps_permissions_users.rb
281
292
  - bin/commands/auth.rb
293
+ - bin/commands/auth_teams.rb
282
294
  - bin/commands/bots.rb
295
+ - bin/commands/calls.rb
296
+ - bin/commands/calls_participants.rb
283
297
  - bin/commands/channels.rb
284
298
  - bin/commands/chat.rb
285
299
  - bin/commands/chat_scheduledMessages.rb
@@ -296,6 +310,7 @@ files:
296
310
  - bin/commands/mpim.rb
297
311
  - bin/commands/oauth.rb
298
312
  - bin/commands/oauth_v2.rb
313
+ - bin/commands/openid_connect.rb
299
314
  - bin/commands/pins.rb
300
315
  - bin/commands/reactions.rb
301
316
  - bin/commands/reminders.rb
@@ -303,7 +318,10 @@ files:
303
318
  - bin/commands/search.rb
304
319
  - bin/commands/stars.rb
305
320
  - bin/commands/team.rb
321
+ - bin/commands/team_billing.rb
322
+ - bin/commands/team_preferences.rb
306
323
  - bin/commands/team_profile.rb
324
+ - bin/commands/tooling_tokens.rb
307
325
  - bin/commands/usergroups.rb
308
326
  - bin/commands/usergroups_users.rb
309
327
  - bin/commands/users.rb
@@ -311,22 +329,14 @@ files:
311
329
  - bin/commands/users_prefs.rb
312
330
  - bin/commands/users_profile.rb
313
331
  - bin/commands/views.rb
332
+ - bin/commands/workflows.rb
314
333
  - bin/slack
315
- - examples/hi_real_time/Gemfile
316
- - examples/hi_real_time/hi.gif
317
- - examples/hi_real_time/hi.rb
318
334
  - examples/hi_real_time_and_web/Gemfile
319
335
  - examples/hi_real_time_and_web/hi.gif
320
336
  - examples/hi_real_time_and_web/hi.rb
321
337
  - examples/hi_real_time_async_async/Gemfile
322
338
  - examples/hi_real_time_async_async/Procfile
323
339
  - examples/hi_real_time_async_async/hi.rb
324
- - examples/hi_real_time_async_celluloid/Gemfile
325
- - examples/hi_real_time_async_celluloid/Procfile
326
- - examples/hi_real_time_async_celluloid/hi.rb
327
- - examples/hi_real_time_async_eventmachine/Gemfile
328
- - examples/hi_real_time_async_eventmachine/Procfile
329
- - examples/hi_real_time_async_eventmachine/hi.rb
330
340
  - examples/hi_web/Gemfile
331
341
  - examples/hi_web/hi.gif
332
342
  - examples/hi_web/hi.rb
@@ -349,8 +359,6 @@ files:
349
359
  - lib/slack/real_time/client.rb
350
360
  - lib/slack/real_time/concurrency.rb
351
361
  - lib/slack/real_time/concurrency/async.rb
352
- - lib/slack/real_time/concurrency/celluloid.rb
353
- - lib/slack/real_time/concurrency/eventmachine.rb
354
362
  - lib/slack/real_time/config.rb
355
363
  - lib/slack/real_time/models.rb
356
364
  - lib/slack/real_time/models/base.rb
@@ -367,11 +375,17 @@ files:
367
375
  - lib/slack/real_time/stores/store.rb
368
376
  - lib/slack/version.rb
369
377
  - lib/slack/web/api/endpoints.rb
378
+ - lib/slack/web/api/endpoints/admin_analytics.rb
370
379
  - lib/slack/web/api/endpoints/admin_apps.rb
371
380
  - lib/slack/web/api/endpoints/admin_apps_approved.rb
372
381
  - lib/slack/web/api/endpoints/admin_apps_requests.rb
373
382
  - lib/slack/web/api/endpoints/admin_apps_restricted.rb
383
+ - lib/slack/web/api/endpoints/admin_auth_policy.rb
384
+ - lib/slack/web/api/endpoints/admin_barriers.rb
374
385
  - lib/slack/web/api/endpoints/admin_conversations.rb
386
+ - lib/slack/web/api/endpoints/admin_conversations_ekm.rb
387
+ - lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb
388
+ - lib/slack/web/api/endpoints/admin_conversations_whitelist.rb
375
389
  - lib/slack/web/api/endpoints/admin_emoji.rb
376
390
  - lib/slack/web/api/endpoints/admin_inviteRequests.rb
377
391
  - lib/slack/web/api/endpoints/admin_inviteRequests_approved.rb
@@ -380,16 +394,23 @@ files:
380
394
  - lib/slack/web/api/endpoints/admin_teams_admins.rb
381
395
  - lib/slack/web/api/endpoints/admin_teams_owners.rb
382
396
  - lib/slack/web/api/endpoints/admin_teams_settings.rb
397
+ - lib/slack/web/api/endpoints/admin_usergroups.rb
383
398
  - lib/slack/web/api/endpoints/admin_users.rb
384
399
  - lib/slack/web/api/endpoints/admin_users_session.rb
385
400
  - lib/slack/web/api/endpoints/api.rb
386
401
  - lib/slack/web/api/endpoints/apps.rb
402
+ - lib/slack/web/api/endpoints/apps_connections.rb
403
+ - lib/slack/web/api/endpoints/apps_event_authorizations.rb
404
+ - lib/slack/web/api/endpoints/apps_manifest.rb
387
405
  - lib/slack/web/api/endpoints/apps_permissions.rb
388
406
  - lib/slack/web/api/endpoints/apps_permissions_resources.rb
389
407
  - lib/slack/web/api/endpoints/apps_permissions_scopes.rb
390
408
  - lib/slack/web/api/endpoints/apps_permissions_users.rb
391
409
  - lib/slack/web/api/endpoints/auth.rb
410
+ - lib/slack/web/api/endpoints/auth_teams.rb
392
411
  - lib/slack/web/api/endpoints/bots.rb
412
+ - lib/slack/web/api/endpoints/calls.rb
413
+ - lib/slack/web/api/endpoints/calls_participants.rb
393
414
  - lib/slack/web/api/endpoints/channels.rb
394
415
  - lib/slack/web/api/endpoints/chat.rb
395
416
  - lib/slack/web/api/endpoints/chat_scheduledMessages.rb
@@ -406,6 +427,7 @@ files:
406
427
  - lib/slack/web/api/endpoints/mpim.rb
407
428
  - lib/slack/web/api/endpoints/oauth.rb
408
429
  - lib/slack/web/api/endpoints/oauth_v2.rb
430
+ - lib/slack/web/api/endpoints/openid_connect.rb
409
431
  - lib/slack/web/api/endpoints/pins.rb
410
432
  - lib/slack/web/api/endpoints/presence.rb
411
433
  - lib/slack/web/api/endpoints/reactions.rb
@@ -414,7 +436,10 @@ files:
414
436
  - lib/slack/web/api/endpoints/search.rb
415
437
  - lib/slack/web/api/endpoints/stars.rb
416
438
  - lib/slack/web/api/endpoints/team.rb
439
+ - lib/slack/web/api/endpoints/team_billing.rb
440
+ - lib/slack/web/api/endpoints/team_preferences.rb
417
441
  - lib/slack/web/api/endpoints/team_profile.rb
442
+ - lib/slack/web/api/endpoints/tooling_tokens.rb
418
443
  - lib/slack/web/api/endpoints/usergroups.rb
419
444
  - lib/slack/web/api/endpoints/usergroups_users.rb
420
445
  - lib/slack/web/api/endpoints/users.rb
@@ -422,26 +447,20 @@ files:
422
447
  - lib/slack/web/api/endpoints/users_prefs.rb
423
448
  - lib/slack/web/api/endpoints/users_profile.rb
424
449
  - lib/slack/web/api/endpoints/views.rb
450
+ - lib/slack/web/api/endpoints/workflows.rb
425
451
  - lib/slack/web/api/error.rb
426
452
  - lib/slack/web/api/errors.rb
453
+ - lib/slack/web/api/errors/server_error.rb
427
454
  - lib/slack/web/api/errors/slack_error.rb
428
455
  - lib/slack/web/api/errors/too_many_requests_error.rb
429
456
  - lib/slack/web/api/mixins.rb
430
- - lib/slack/web/api/mixins/channels.id.json
431
- - lib/slack/web/api/mixins/channels.id.rb
432
- - lib/slack/web/api/mixins/groups.id.json
433
- - lib/slack/web/api/mixins/groups.id.rb
457
+ - lib/slack/web/api/mixins/conversations.id.rb
434
458
  - lib/slack/web/api/mixins/ids.id.rb
435
459
  - lib/slack/web/api/mixins/users.id.json
436
460
  - lib/slack/web/api/mixins/users.id.rb
437
461
  - lib/slack/web/api/mixins/users.search.json
438
462
  - lib/slack/web/api/mixins/users.search.rb
439
- - lib/slack/web/api/patches/chat.1.text-attachments-required.patch
440
- - lib/slack/web/api/patches/chat.2.attachments-json.patch
441
- - lib/slack/web/api/patches/chat.3.update-attachments-support.patch
442
- - lib/slack/web/api/patches/chat.4.postEphemeral-attachments-support.patch
443
- - lib/slack/web/api/patches/chat.5.postEphemeral-text-or-attachments.patch
444
- - lib/slack/web/api/patches/chat.6.block-kit-support.patch
463
+ - lib/slack/web/api/patches/chat.1.patch
445
464
  - lib/slack/web/api/patches/dialog.1.open-json-support.patch
446
465
  - lib/slack/web/api/patches/views.1.view-json.patch
447
466
  - lib/slack/web/api/patches/views.1.views-published.patch
@@ -458,6 +477,7 @@ files:
458
477
  - lib/slack/web/faraday/connection.rb
459
478
  - lib/slack/web/faraday/request.rb
460
479
  - lib/slack/web/faraday/response/raise_error.rb
480
+ - lib/slack/web/faraday/response/wrap_error.rb
461
481
  - lib/slack/web/pagination/cursor.rb
462
482
  - lib/slack_ruby_client.rb
463
483
  - lib/tasks/git.rake
@@ -468,11 +488,12 @@ files:
468
488
  - slack-ruby-client.gemspec
469
489
  - slack.png
470
490
  - spec/fixtures/slack/web/429_error.yml
471
- - spec/fixtures/slack/web/503_error.yml
472
491
  - spec/fixtures/slack/web/auth_test_error.yml
473
492
  - spec/fixtures/slack/web/auth_test_success.yml
474
- - spec/fixtures/slack/web/channels_info.yml
475
- - spec/fixtures/slack/web/groups_info.yml
493
+ - spec/fixtures/slack/web/conversations_info.yml
494
+ - spec/fixtures/slack/web/conversations_setTopic.yml
495
+ - spec/fixtures/slack/web/conversations_setTopic_one_page.yml
496
+ - spec/fixtures/slack/web/conversations_setTopic_paginated.yml
476
497
  - spec/fixtures/slack/web/paginated_users_list.yml
477
498
  - spec/fixtures/slack/web/rtm_connect.yml
478
499
  - spec/fixtures/slack/web/rtm_start.yml
@@ -488,9 +509,9 @@ files:
488
509
  - spec/slack/real_time/api/ping_spec.rb
489
510
  - spec/slack/real_time/api/typing_spec.rb
490
511
  - spec/slack/real_time/client_spec.rb
491
- - spec/slack/real_time/concurrency/celluloid_spec.rb
492
- - spec/slack/real_time/concurrency/eventmachine_spec.rb
493
512
  - spec/slack/real_time/concurrency/it_behaves_like_a_realtime_socket.rb
513
+ - spec/slack/real_time/concurrency/with_concurrency_spec.rb
514
+ - spec/slack/real_time/concurrency/without_concurrency_spec.rb
494
515
  - spec/slack/real_time/event_handlers/bot_spec.rb
495
516
  - spec/slack/real_time/event_handlers/channel_spec.rb
496
517
  - spec/slack/real_time/event_handlers/event_handlers_spec.rb
@@ -503,10 +524,15 @@ files:
503
524
  - spec/slack/real_time/store_spec.rb
504
525
  - spec/slack/slack_spec.rb
505
526
  - spec/slack/version_spec.rb
527
+ - spec/slack/web/api/endpoints/admin_analytics_spec.rb
506
528
  - spec/slack/web/api/endpoints/admin_apps_approved_spec.rb
507
529
  - spec/slack/web/api/endpoints/admin_apps_requests_spec.rb
508
530
  - spec/slack/web/api/endpoints/admin_apps_restricted_spec.rb
509
531
  - spec/slack/web/api/endpoints/admin_apps_spec.rb
532
+ - spec/slack/web/api/endpoints/admin_auth_policy_spec.rb
533
+ - spec/slack/web/api/endpoints/admin_barriers_spec.rb
534
+ - spec/slack/web/api/endpoints/admin_conversations_ekm_spec.rb
535
+ - spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb
510
536
  - spec/slack/web/api/endpoints/admin_conversations_spec.rb
511
537
  - spec/slack/web/api/endpoints/admin_emoji_spec.rb
512
538
  - spec/slack/web/api/endpoints/admin_inviteRequests_approved_spec.rb
@@ -516,22 +542,23 @@ files:
516
542
  - spec/slack/web/api/endpoints/admin_teams_owners_spec.rb
517
543
  - spec/slack/web/api/endpoints/admin_teams_settings_spec.rb
518
544
  - spec/slack/web/api/endpoints/admin_teams_spec.rb
545
+ - spec/slack/web/api/endpoints/admin_usergroups_spec.rb
519
546
  - spec/slack/web/api/endpoints/admin_users_session_spec.rb
520
547
  - spec/slack/web/api/endpoints/admin_users_spec.rb
521
548
  - spec/slack/web/api/endpoints/api_spec.rb
522
- - spec/slack/web/api/endpoints/apps_permissions_resources_spec.rb
523
- - spec/slack/web/api/endpoints/apps_permissions_scopes_spec.rb
524
- - spec/slack/web/api/endpoints/apps_permissions_spec.rb
525
- - spec/slack/web/api/endpoints/apps_permissions_users_spec.rb
549
+ - spec/slack/web/api/endpoints/apps_connections_spec.rb
550
+ - spec/slack/web/api/endpoints/apps_event_authorizations_spec.rb
551
+ - spec/slack/web/api/endpoints/apps_manifest_spec.rb
526
552
  - spec/slack/web/api/endpoints/apps_spec.rb
553
+ - spec/slack/web/api/endpoints/auth_teams_spec.rb
527
554
  - spec/slack/web/api/endpoints/bots_spec.rb
555
+ - spec/slack/web/api/endpoints/calls_participants_spec.rb
556
+ - spec/slack/web/api/endpoints/calls_spec.rb
528
557
  - spec/slack/web/api/endpoints/chat_scheduledMessages_spec.rb
529
- - spec/slack/web/api/endpoints/conversations_spec.rb
530
558
  - spec/slack/web/api/endpoints/custom_specs/auth_spec.rb
531
- - spec/slack/web/api/endpoints/custom_specs/channels_spec.rb
532
559
  - spec/slack/web/api/endpoints/custom_specs/chat_spec.rb
560
+ - spec/slack/web/api/endpoints/custom_specs/conversations_spec.rb
533
561
  - spec/slack/web/api/endpoints/custom_specs/dialog_spec.rb
534
- - spec/slack/web/api/endpoints/custom_specs/groups_spec.rb
535
562
  - spec/slack/web/api/endpoints/custom_specs/users_spec.rb
536
563
  - spec/slack/web/api/endpoints/custom_specs/views_spec.rb
537
564
  - spec/slack/web/api/endpoints/dnd_spec.rb
@@ -539,33 +566,35 @@ files:
539
566
  - spec/slack/web/api/endpoints/files_comments_spec.rb
540
567
  - spec/slack/web/api/endpoints/files_remote_spec.rb
541
568
  - spec/slack/web/api/endpoints/files_spec.rb
542
- - spec/slack/web/api/endpoints/im_spec.rb
543
569
  - spec/slack/web/api/endpoints/migration_spec.rb
544
- - spec/slack/web/api/endpoints/mpim_spec.rb
545
570
  - spec/slack/web/api/endpoints/oauth_spec.rb
546
571
  - spec/slack/web/api/endpoints/oauth_v2_spec.rb
572
+ - spec/slack/web/api/endpoints/openid_connect_spec.rb
547
573
  - spec/slack/web/api/endpoints/pins_spec.rb
548
574
  - spec/slack/web/api/endpoints/reactions_spec.rb
549
575
  - spec/slack/web/api/endpoints/reminders_spec.rb
550
576
  - spec/slack/web/api/endpoints/rtm_spec.rb
551
577
  - spec/slack/web/api/endpoints/search_spec.rb
552
578
  - spec/slack/web/api/endpoints/stars_spec.rb
579
+ - spec/slack/web/api/endpoints/team_billing_spec.rb
580
+ - spec/slack/web/api/endpoints/team_preferences_spec.rb
553
581
  - spec/slack/web/api/endpoints/team_profile_spec.rb
554
582
  - spec/slack/web/api/endpoints/team_spec.rb
583
+ - spec/slack/web/api/endpoints/tooling_tokens_spec.rb
555
584
  - spec/slack/web/api/endpoints/usergroups_spec.rb
556
585
  - spec/slack/web/api/endpoints/usergroups_users_spec.rb
557
586
  - spec/slack/web/api/endpoints/users_admin_spec.rb
558
587
  - spec/slack/web/api/endpoints/users_prefs_spec.rb
559
588
  - spec/slack/web/api/endpoints/users_profile_spec.rb
560
- - spec/slack/web/api/endpoints/views_spec.rb
589
+ - spec/slack/web/api/endpoints/workflows_spec.rb
561
590
  - spec/slack/web/api/error_spec.rb
562
- - spec/slack/web/api/errors/service_unavailable_spec.rb
563
591
  - spec/slack/web/api/errors/slack_error_spec.rb
564
- - spec/slack/web/api/mixins/channels_spec.rb
565
- - spec/slack/web/api/mixins/groups_spec.rb
592
+ - spec/slack/web/api/mixins/conversations_list_spec.rb
593
+ - spec/slack/web/api/mixins/conversations_spec.rb
566
594
  - spec/slack/web/api/mixins/users_spec.rb
567
595
  - spec/slack/web/api/pagination/cursor_spec.rb
568
596
  - spec/slack/web/client_spec.rb
597
+ - spec/slack/web/faraday/request_spec.rb
569
598
  - spec/slack/web/faraday/response/raise_error_spec.rb
570
599
  - spec/spec_helper.rb
571
600
  - spec/support/queue_with_timeout.rb
@@ -578,7 +607,7 @@ homepage: http://github.com/slack-ruby/slack-ruby-client
578
607
  licenses:
579
608
  - MIT
580
609
  metadata: {}
581
- post_install_message:
610
+ post_install_message:
582
611
  rdoc_options: []
583
612
  require_paths:
584
613
  - lib
@@ -593,115 +622,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
593
622
  - !ruby/object:Gem::Version
594
623
  version: 1.3.6
595
624
  requirements: []
596
- rubygems_version: 3.0.3
597
- signing_key:
625
+ rubygems_version: 3.0.6
626
+ signing_key:
598
627
  specification_version: 4
599
628
  summary: Slack Web and RealTime API client.
600
- test_files:
601
- - spec/fixtures/slack/web/429_error.yml
602
- - spec/fixtures/slack/web/503_error.yml
603
- - spec/fixtures/slack/web/auth_test_error.yml
604
- - spec/fixtures/slack/web/auth_test_success.yml
605
- - spec/fixtures/slack/web/channels_info.yml
606
- - spec/fixtures/slack/web/groups_info.yml
607
- - spec/fixtures/slack/web/paginated_users_list.yml
608
- - spec/fixtures/slack/web/rtm_connect.yml
609
- - spec/fixtures/slack/web/rtm_start.yml
610
- - spec/fixtures/slack/web/users_info.yml
611
- - spec/fixtures/slack/web/users_list.yml
612
- - spec/fixtures/slack/web/views_open_error.yml
613
- - spec/integration/integration_spec.rb
614
- - spec/slack/config_spec.rb
615
- - spec/slack/events/config_spec.rb
616
- - spec/slack/events/request_spec.rb
617
- - spec/slack/messages/formatting_spec.rb
618
- - spec/slack/real_time/api/message_spec.rb
619
- - spec/slack/real_time/api/ping_spec.rb
620
- - spec/slack/real_time/api/typing_spec.rb
621
- - spec/slack/real_time/client_spec.rb
622
- - spec/slack/real_time/concurrency/celluloid_spec.rb
623
- - spec/slack/real_time/concurrency/eventmachine_spec.rb
624
- - spec/slack/real_time/concurrency/it_behaves_like_a_realtime_socket.rb
625
- - spec/slack/real_time/event_handlers/bot_spec.rb
626
- - spec/slack/real_time/event_handlers/channel_spec.rb
627
- - spec/slack/real_time/event_handlers/event_handlers_spec.rb
628
- - spec/slack/real_time/event_handlers/group_spec.rb
629
- - spec/slack/real_time/event_handlers/im_spec.rb
630
- - spec/slack/real_time/event_handlers/team_spec.rb
631
- - spec/slack/real_time/event_handlers/user_spec.rb
632
- - spec/slack/real_time/rtm_connect_spec.rb
633
- - spec/slack/real_time/rtm_start_spec.rb
634
- - spec/slack/real_time/store_spec.rb
635
- - spec/slack/slack_spec.rb
636
- - spec/slack/version_spec.rb
637
- - spec/slack/web/api/endpoints/admin_apps_approved_spec.rb
638
- - spec/slack/web/api/endpoints/admin_apps_requests_spec.rb
639
- - spec/slack/web/api/endpoints/admin_apps_restricted_spec.rb
640
- - spec/slack/web/api/endpoints/admin_apps_spec.rb
641
- - spec/slack/web/api/endpoints/admin_conversations_spec.rb
642
- - spec/slack/web/api/endpoints/admin_emoji_spec.rb
643
- - spec/slack/web/api/endpoints/admin_inviteRequests_approved_spec.rb
644
- - spec/slack/web/api/endpoints/admin_inviteRequests_denied_spec.rb
645
- - spec/slack/web/api/endpoints/admin_inviteRequests_spec.rb
646
- - spec/slack/web/api/endpoints/admin_teams_admins_spec.rb
647
- - spec/slack/web/api/endpoints/admin_teams_owners_spec.rb
648
- - spec/slack/web/api/endpoints/admin_teams_settings_spec.rb
649
- - spec/slack/web/api/endpoints/admin_teams_spec.rb
650
- - spec/slack/web/api/endpoints/admin_users_session_spec.rb
651
- - spec/slack/web/api/endpoints/admin_users_spec.rb
652
- - spec/slack/web/api/endpoints/api_spec.rb
653
- - spec/slack/web/api/endpoints/apps_permissions_resources_spec.rb
654
- - spec/slack/web/api/endpoints/apps_permissions_scopes_spec.rb
655
- - spec/slack/web/api/endpoints/apps_permissions_spec.rb
656
- - spec/slack/web/api/endpoints/apps_permissions_users_spec.rb
657
- - spec/slack/web/api/endpoints/apps_spec.rb
658
- - spec/slack/web/api/endpoints/bots_spec.rb
659
- - spec/slack/web/api/endpoints/chat_scheduledMessages_spec.rb
660
- - spec/slack/web/api/endpoints/conversations_spec.rb
661
- - spec/slack/web/api/endpoints/custom_specs/auth_spec.rb
662
- - spec/slack/web/api/endpoints/custom_specs/channels_spec.rb
663
- - spec/slack/web/api/endpoints/custom_specs/chat_spec.rb
664
- - spec/slack/web/api/endpoints/custom_specs/dialog_spec.rb
665
- - spec/slack/web/api/endpoints/custom_specs/groups_spec.rb
666
- - spec/slack/web/api/endpoints/custom_specs/users_spec.rb
667
- - spec/slack/web/api/endpoints/custom_specs/views_spec.rb
668
- - spec/slack/web/api/endpoints/dnd_spec.rb
669
- - spec/slack/web/api/endpoints/emoji_spec.rb
670
- - spec/slack/web/api/endpoints/files_comments_spec.rb
671
- - spec/slack/web/api/endpoints/files_remote_spec.rb
672
- - spec/slack/web/api/endpoints/files_spec.rb
673
- - spec/slack/web/api/endpoints/im_spec.rb
674
- - spec/slack/web/api/endpoints/migration_spec.rb
675
- - spec/slack/web/api/endpoints/mpim_spec.rb
676
- - spec/slack/web/api/endpoints/oauth_spec.rb
677
- - spec/slack/web/api/endpoints/oauth_v2_spec.rb
678
- - spec/slack/web/api/endpoints/pins_spec.rb
679
- - spec/slack/web/api/endpoints/reactions_spec.rb
680
- - spec/slack/web/api/endpoints/reminders_spec.rb
681
- - spec/slack/web/api/endpoints/rtm_spec.rb
682
- - spec/slack/web/api/endpoints/search_spec.rb
683
- - spec/slack/web/api/endpoints/stars_spec.rb
684
- - spec/slack/web/api/endpoints/team_profile_spec.rb
685
- - spec/slack/web/api/endpoints/team_spec.rb
686
- - spec/slack/web/api/endpoints/usergroups_spec.rb
687
- - spec/slack/web/api/endpoints/usergroups_users_spec.rb
688
- - spec/slack/web/api/endpoints/users_admin_spec.rb
689
- - spec/slack/web/api/endpoints/users_prefs_spec.rb
690
- - spec/slack/web/api/endpoints/users_profile_spec.rb
691
- - spec/slack/web/api/endpoints/views_spec.rb
692
- - spec/slack/web/api/error_spec.rb
693
- - spec/slack/web/api/errors/service_unavailable_spec.rb
694
- - spec/slack/web/api/errors/slack_error_spec.rb
695
- - spec/slack/web/api/mixins/channels_spec.rb
696
- - spec/slack/web/api/mixins/groups_spec.rb
697
- - spec/slack/web/api/mixins/users_spec.rb
698
- - spec/slack/web/api/pagination/cursor_spec.rb
699
- - spec/slack/web/client_spec.rb
700
- - spec/slack/web/faraday/response/raise_error_spec.rb
701
- - spec/spec_helper.rb
702
- - spec/support/queue_with_timeout.rb
703
- - spec/support/real_time/concurrency/mock.rb
704
- - spec/support/real_time/connected_client.rb
705
- - spec/support/real_time/event.rb
706
- - spec/support/token.rb
707
- - spec/support/vcr.rb
629
+ test_files: []
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
- source 'http://rubygems.org'
3
-
4
- gem 'slack-ruby-client', path: '../..'
5
-
6
- gem 'celluloid-io', require: ['celluloid/current', 'celluloid/io']
Binary file
@@ -1,41 +0,0 @@
1
- # frozen_string_literal: true
2
- require 'slack-ruby-client'
3
-
4
- Slack.configure do |config|
5
- config.token = ENV['SLACK_API_TOKEN']
6
- config.logger = Logger.new(STDOUT)
7
- config.logger.level = Logger::INFO
8
- raise 'Missing ENV[SLACK_API_TOKEN]!' unless config.token
9
- end
10
-
11
- client = Slack::RealTime::Client.new
12
-
13
- client.on :hello do
14
- puts(
15
- "Successfully connected, welcome '#{client.self.name}' to " \
16
- "the '#{client.team.name}' team at https://#{client.team.domain}.slack.com."
17
- )
18
- end
19
-
20
- client.on :message do |data|
21
- puts data
22
-
23
- client.typing channel: data.channel
24
-
25
- case data.text
26
- when 'bot hi'
27
- client.message channel: data.channel, text: "Hi <@#{data.user}>!"
28
- when /^bot/
29
- client.message channel: data.channel, text: "Sorry <@#{data.user}>, what?"
30
- end
31
- end
32
-
33
- client.on :close do |_data|
34
- puts 'Connection closing, exiting.'
35
- end
36
-
37
- client.on :closed do |_data|
38
- puts 'Connection has been disconnected.'
39
- end
40
-
41
- client.start!
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
- source 'http://rubygems.org'
3
-
4
- gem 'slack-ruby-client', path: '../..'
5
-
6
- gem 'celluloid-io', require: ['celluloid/current', 'celluloid/io']
7
- gem 'foreman'
@@ -1,2 +0,0 @@
1
- console: bundle exec ruby hi.rb
2
-