slack-ruby-client 0.14.6 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/.github/FUNDING.yml +1 -0
  3. data/.rubocop.yml +9 -2
  4. data/.rubocop_todo.yml +52 -12
  5. data/.travis.yml +0 -1
  6. data/CHANGELOG.md +10 -0
  7. data/CONTRIBUTING.md +24 -6
  8. data/Dangerfile +1 -1
  9. data/Gemfile +1 -2
  10. data/README.md +20 -1
  11. data/UPGRADING.md +6 -0
  12. data/bin/commands.rb +5 -0
  13. data/bin/commands/admin_conversations.rb +1 -1
  14. data/bin/commands/admin_conversations_restrictAccess.rb +37 -0
  15. data/bin/commands/admin_conversations_whitelist.rb +37 -0
  16. data/bin/commands/admin_usergroups.rb +48 -0
  17. data/bin/commands/calls.rb +52 -0
  18. data/bin/commands/calls_participants.rb +25 -0
  19. data/bin/commands/chat.rb +5 -5
  20. data/bin/commands/conversations.rb +0 -1
  21. data/lib/slack-ruby-client.rb +2 -4
  22. data/lib/slack/messages/message.rb +0 -4
  23. data/lib/slack/real_time/concurrency/async.rb +1 -3
  24. data/lib/slack/real_time/concurrency/eventmachine.rb +3 -3
  25. data/lib/slack/real_time/models/base.rb +0 -4
  26. data/lib/slack/real_time/socket.rb +2 -2
  27. data/lib/slack/real_time/stores/base.rb +3 -1
  28. data/lib/slack/version.rb +1 -1
  29. data/lib/slack/web/api/endpoints.rb +11 -0
  30. data/lib/slack/web/api/endpoints/admin_conversations.rb +1 -1
  31. data/lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb +61 -0
  32. data/lib/slack/web/api/endpoints/admin_conversations_whitelist.rb +64 -0
  33. data/lib/slack/web/api/endpoints/admin_usergroups.rb +77 -0
  34. data/lib/slack/web/api/endpoints/calls.rb +83 -0
  35. data/lib/slack/web/api/endpoints/calls_participants.rb +42 -0
  36. data/lib/slack/web/api/endpoints/channels.rb +28 -13
  37. data/lib/slack/web/api/endpoints/chat.rb +12 -12
  38. data/lib/slack/web/api/endpoints/chat_scheduledMessages.rb +1 -1
  39. data/lib/slack/web/api/endpoints/conversations.rb +15 -17
  40. data/lib/slack/web/api/endpoints/files.rb +2 -2
  41. data/lib/slack/web/api/endpoints/files_remote.rb +1 -1
  42. data/lib/slack/web/api/endpoints/groups.rb +16 -0
  43. data/lib/slack/web/api/endpoints/im.rb +10 -4
  44. data/lib/slack/web/api/endpoints/mpim.rb +10 -4
  45. data/lib/slack/web/api/endpoints/oauth.rb +0 -3
  46. data/lib/slack/web/api/endpoints/pins.rb +3 -3
  47. data/lib/slack/web/api/endpoints/reactions.rb +3 -3
  48. data/lib/slack/web/api/endpoints/stars.rb +2 -2
  49. data/lib/slack/web/api/errors.rb +92 -2
  50. data/lib/slack/web/api/mixins.rb +1 -0
  51. data/lib/slack/web/api/mixins/conversations.id.rb +27 -0
  52. data/lib/slack/web/api/mixins/ids.id.rb +1 -3
  53. data/lib/slack/web/api/patches/{chat.6.block-kit-support.patch → chat.1.patch} +29 -26
  54. data/lib/slack/web/api/templates/method.erb +4 -1
  55. data/lib/slack/web/faraday/connection.rb +23 -20
  56. data/lib/slack/web/pagination/cursor.rb +2 -2
  57. data/slack-ruby-client.gemspec +5 -5
  58. data/spec/fixtures/slack/web/channels_info.yml +108 -15
  59. data/spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb +32 -0
  60. data/spec/slack/web/api/endpoints/admin_conversations_whitelist_spec.rb +32 -0
  61. data/spec/slack/web/api/endpoints/admin_usergroups_spec.rb +37 -0
  62. data/spec/slack/web/api/endpoints/calls_participants_spec.rb +24 -0
  63. data/spec/slack/web/api/endpoints/calls_spec.rb +31 -0
  64. data/spec/slack/web/api/endpoints/custom_specs/channels_spec.rb +3 -3
  65. data/spec/slack/web/api/endpoints/oauth_spec.rb +0 -11
  66. data/spec/slack/web/api/errors/service_unavailable_spec.rb +2 -2
  67. data/spec/slack/web/api/mixins/conversations_spec.rb +41 -0
  68. data/spec/slack/web/client_spec.rb +26 -0
  69. metadata +49 -30
  70. data/lib/slack/web/api/patches/chat.1.text-attachments-required.patch +0 -13
  71. data/lib/slack/web/api/patches/chat.2.attachments-json.patch +0 -17
  72. data/lib/slack/web/api/patches/chat.3.update-attachments-support.patch +0 -21
  73. data/lib/slack/web/api/patches/chat.4.postEphemeral-attachments-support.patch +0 -17
  74. data/lib/slack/web/api/patches/chat.5.postEphemeral-text-or-attachments.patch +0 -15
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+ # This file was auto-generated by lib/tasks/web.rake
3
+
4
+ require 'spec_helper'
5
+
6
+ RSpec.describe Slack::Web::Api::Endpoints::AdminUsergroups do
7
+ let(:client) { Slack::Web::Client.new }
8
+ context 'admin.usergroups_addChannels' do
9
+ it 'requires channel_ids' do
10
+ expect { client.admin_usergroups_addChannels(usergroup_id: 'S00000000') }.to raise_error ArgumentError, /Required arguments :channel_ids missing/
11
+ end
12
+ it 'requires usergroup_id' do
13
+ expect { client.admin_usergroups_addChannels(channel_ids: 'C00000000,C00000001') }.to raise_error ArgumentError, /Required arguments :usergroup_id missing/
14
+ end
15
+ end
16
+ context 'admin.usergroups_addTeams' do
17
+ it 'requires team_ids' do
18
+ expect { client.admin_usergroups_addTeams(usergroup_id: 'S12345678') }.to raise_error ArgumentError, /Required arguments :team_ids missing/
19
+ end
20
+ it 'requires usergroup_id' do
21
+ expect { client.admin_usergroups_addTeams(team_ids: 'T12345678,T98765432') }.to raise_error ArgumentError, /Required arguments :usergroup_id missing/
22
+ end
23
+ end
24
+ context 'admin.usergroups_listChannels' do
25
+ it 'requires usergroup_id' do
26
+ expect { client.admin_usergroups_listChannels }.to raise_error ArgumentError, /Required arguments :usergroup_id missing/
27
+ end
28
+ end
29
+ context 'admin.usergroups_removeChannels' do
30
+ it 'requires channel_ids' do
31
+ expect { client.admin_usergroups_removeChannels(usergroup_id: 'S00000000') }.to raise_error ArgumentError, /Required arguments :channel_ids missing/
32
+ end
33
+ it 'requires usergroup_id' do
34
+ expect { client.admin_usergroups_removeChannels(channel_ids: 'C00000000,C00000001') }.to raise_error ArgumentError, /Required arguments :usergroup_id missing/
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+ # This file was auto-generated by lib/tasks/web.rake
3
+
4
+ require 'spec_helper'
5
+
6
+ RSpec.describe Slack::Web::Api::Endpoints::CallsParticipants do
7
+ let(:client) { Slack::Web::Client.new }
8
+ context 'calls.participants_add' do
9
+ it 'requires id' do
10
+ expect { client.calls_participants_add(users: '[{"slack_id": "U1H77"}, {"external_id": "54321678", "display_name": "External User", "avatar_url": "https://example.com/users/avatar1234.jpg"}]') }.to raise_error ArgumentError, /Required arguments :id missing/
11
+ end
12
+ it 'requires users' do
13
+ expect { client.calls_participants_add(id: 'R0E69JAIF') }.to raise_error ArgumentError, /Required arguments :users missing/
14
+ end
15
+ end
16
+ context 'calls.participants_remove' do
17
+ it 'requires id' do
18
+ expect { client.calls_participants_remove(users: '[{"slack_id": "U1H77"}, {"external_id": "54321678", "display_name": "External User", "avatar_url": "https://example.com/users/avatar1234.jpg"}]') }.to raise_error ArgumentError, /Required arguments :id missing/
19
+ end
20
+ it 'requires users' do
21
+ expect { client.calls_participants_remove(id: 'R0E69JAIF') }.to raise_error ArgumentError, /Required arguments :users missing/
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+ # This file was auto-generated by lib/tasks/web.rake
3
+
4
+ require 'spec_helper'
5
+
6
+ RSpec.describe Slack::Web::Api::Endpoints::Calls do
7
+ let(:client) { Slack::Web::Client.new }
8
+ context 'calls_add' do
9
+ it 'requires external_unique_id' do
10
+ expect { client.calls_add(join_url: 'https://example.com/calls/1234567890') }.to raise_error ArgumentError, /Required arguments :external_unique_id missing/
11
+ end
12
+ it 'requires join_url' do
13
+ expect { client.calls_add(external_unique_id: '025169F6-E37A-4E62-BB54-7F93A0FC4C1F') }.to raise_error ArgumentError, /Required arguments :join_url missing/
14
+ end
15
+ end
16
+ context 'calls_end' do
17
+ it 'requires id' do
18
+ expect { client.calls_end }.to raise_error ArgumentError, /Required arguments :id missing/
19
+ end
20
+ end
21
+ context 'calls_info' do
22
+ it 'requires id' do
23
+ expect { client.calls_info }.to raise_error ArgumentError, /Required arguments :id missing/
24
+ end
25
+ end
26
+ context 'calls_update' do
27
+ it 'requires id' do
28
+ expect { client.calls_update }.to raise_error ArgumentError, /Required arguments :id missing/
29
+ end
30
+ end
31
+ end
@@ -5,9 +5,9 @@ RSpec.describe Slack::Web::Api::Endpoints::Channels do
5
5
  let(:client) { Slack::Web::Client.new }
6
6
 
7
7
  context 'channels' do
8
- it 'info', vcr: { cassette_name: 'web/channels_info' } do
9
- json = client.channels_info(channel: '#general')
10
- expect(json.channel.name).to eq 'general'
8
+ it 'raises deprecation error', vcr: { cassette_name: 'web/channels_info' } do
9
+ expect { client.channels_info(channel: '#general') }
10
+ .to raise_error(Slack::Web::Api::Errors::MethodDeprecated, 'method_deprecated')
11
11
  end
12
12
  end
13
13
  end
@@ -5,17 +5,6 @@ require 'spec_helper'
5
5
 
6
6
  RSpec.describe Slack::Web::Api::Endpoints::Oauth do
7
7
  let(:client) { Slack::Web::Client.new }
8
- context 'oauth_access' do
9
- it 'requires client_id' do
10
- expect { client.oauth_access(client_secret: '33fea0113f5b1', code: 'ccdaa72ad') }.to raise_error ArgumentError, /Required arguments :client_id missing/
11
- end
12
- it 'requires client_secret' do
13
- expect { client.oauth_access(client_id: '4b39e9-752c4', code: 'ccdaa72ad') }.to raise_error ArgumentError, /Required arguments :client_secret missing/
14
- end
15
- it 'requires code' do
16
- expect { client.oauth_access(client_id: '4b39e9-752c4', client_secret: '33fea0113f5b1') }.to raise_error ArgumentError, /Required arguments :code missing/
17
- end
18
- end
19
8
  context 'oauth_token' do
20
9
  it 'requires client_id' do
21
10
  expect { client.oauth_token(client_secret: '33fea0113f5b1', code: 'ccdaa72ad') }.to raise_error ArgumentError, /Required arguments :client_id missing/
@@ -8,8 +8,8 @@ RSpec.describe Slack::Web::Client do
8
8
  vcr: { cassette_name: 'web/503_error' } do
9
9
  begin
10
10
  client.auth_test
11
- raise 'Expected to receive Faraday::ClientError.'
12
- rescue Faraday::ClientError => e
11
+ raise 'Expected to receive Faraday::ServerError.'
12
+ rescue Faraday::ServerError => e
13
13
  expect(e.response).not_to be_nil
14
14
  expect(e.response[:status]).to eq 503
15
15
  end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+ require 'spec_helper'
3
+
4
+ RSpec.describe Slack::Web::Api::Mixins::Conversations do
5
+ subject(:conversations) do
6
+ klass.new
7
+ end
8
+
9
+ let(:klass) do
10
+ Class.new do
11
+ include Slack::Web::Api::Mixins::Conversations
12
+
13
+ def conversations_list
14
+ Slack::Messages::Message.new(
15
+ 'channels' => [{
16
+ 'id' => 'CDEADBEEF',
17
+ 'name' => 'general'
18
+ }]
19
+ )
20
+ end
21
+ end
22
+ end
23
+
24
+ describe '#conversations_id' do
25
+ it 'leaves channels specified by ID alone' do
26
+ expect(conversations.conversations_id(channel: 'C123456')).to(
27
+ eq('ok' => true, 'channel' => { 'id' => 'C123456' })
28
+ )
29
+ end
30
+ it 'translates a channel that starts with a #' do
31
+ expect(conversations.conversations_id(channel: '#general')).to(
32
+ eq('ok' => true, 'channel' => { 'id' => 'CDEADBEEF' })
33
+ )
34
+ end
35
+ it 'fails with an exception' do
36
+ expect { conversations.conversations_id(channel: '#invalid') }.to(
37
+ raise_error(Slack::Web::Api::Errors::SlackError, 'channel_not_found')
38
+ )
39
+ end
40
+ end
41
+ end
@@ -205,5 +205,31 @@ RSpec.describe Slack::Web::Client do
205
205
  client.users_admin_setInactive(user: 'U092BDCLV')
206
206
  end
207
207
  end
208
+
209
+ context 'when calling deprecated methods' do
210
+ let(:client) { described_class.new }
211
+
212
+ it 'produces a warning' do
213
+ expect(client.logger).to receive(:warn).with(/
214
+ ^channels\.archive:\ This\ method\ is\ deprecated
215
+ .+
216
+ Alternative\ methods:\ conversations\.archive\.
217
+ /x)
218
+
219
+ expect(client).to receive(:post)
220
+ client.channels_archive(channel: 'test')
221
+ end
222
+ end
223
+
224
+ context 'persistent capability' do
225
+ describe '#initialize' do
226
+ it 'caches the Faraday connection to allow persistent adapters' do
227
+ first = client.send(:connection)
228
+ second = client.send(:connection)
229
+
230
+ expect(first).to equal second
231
+ end
232
+ end
233
+ end
208
234
  end
209
235
  end
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: 0.15.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: 2020-07-26 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:
@@ -156,42 +156,42 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.73.0
159
+ version: 0.82.0
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.82.0
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"
@@ -262,6 +263,8 @@ files:
262
263
  - bin/commands/admin_apps_requests.rb
263
264
  - bin/commands/admin_apps_restricted.rb
264
265
  - bin/commands/admin_conversations.rb
266
+ - bin/commands/admin_conversations_restrictAccess.rb
267
+ - bin/commands/admin_conversations_whitelist.rb
265
268
  - bin/commands/admin_emoji.rb
266
269
  - bin/commands/admin_inviteRequests.rb
267
270
  - bin/commands/admin_inviteRequests_approved.rb
@@ -270,6 +273,7 @@ files:
270
273
  - bin/commands/admin_teams_admins.rb
271
274
  - bin/commands/admin_teams_owners.rb
272
275
  - bin/commands/admin_teams_settings.rb
276
+ - bin/commands/admin_usergroups.rb
273
277
  - bin/commands/admin_users.rb
274
278
  - bin/commands/admin_users_session.rb
275
279
  - bin/commands/api.rb
@@ -280,6 +284,8 @@ files:
280
284
  - bin/commands/apps_permissions_users.rb
281
285
  - bin/commands/auth.rb
282
286
  - bin/commands/bots.rb
287
+ - bin/commands/calls.rb
288
+ - bin/commands/calls_participants.rb
283
289
  - bin/commands/channels.rb
284
290
  - bin/commands/chat.rb
285
291
  - bin/commands/chat_scheduledMessages.rb
@@ -372,6 +378,8 @@ files:
372
378
  - lib/slack/web/api/endpoints/admin_apps_requests.rb
373
379
  - lib/slack/web/api/endpoints/admin_apps_restricted.rb
374
380
  - lib/slack/web/api/endpoints/admin_conversations.rb
381
+ - lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb
382
+ - lib/slack/web/api/endpoints/admin_conversations_whitelist.rb
375
383
  - lib/slack/web/api/endpoints/admin_emoji.rb
376
384
  - lib/slack/web/api/endpoints/admin_inviteRequests.rb
377
385
  - lib/slack/web/api/endpoints/admin_inviteRequests_approved.rb
@@ -380,6 +388,7 @@ files:
380
388
  - lib/slack/web/api/endpoints/admin_teams_admins.rb
381
389
  - lib/slack/web/api/endpoints/admin_teams_owners.rb
382
390
  - lib/slack/web/api/endpoints/admin_teams_settings.rb
391
+ - lib/slack/web/api/endpoints/admin_usergroups.rb
383
392
  - lib/slack/web/api/endpoints/admin_users.rb
384
393
  - lib/slack/web/api/endpoints/admin_users_session.rb
385
394
  - lib/slack/web/api/endpoints/api.rb
@@ -390,6 +399,8 @@ files:
390
399
  - lib/slack/web/api/endpoints/apps_permissions_users.rb
391
400
  - lib/slack/web/api/endpoints/auth.rb
392
401
  - lib/slack/web/api/endpoints/bots.rb
402
+ - lib/slack/web/api/endpoints/calls.rb
403
+ - lib/slack/web/api/endpoints/calls_participants.rb
393
404
  - lib/slack/web/api/endpoints/channels.rb
394
405
  - lib/slack/web/api/endpoints/chat.rb
395
406
  - lib/slack/web/api/endpoints/chat_scheduledMessages.rb
@@ -429,6 +440,7 @@ files:
429
440
  - lib/slack/web/api/mixins.rb
430
441
  - lib/slack/web/api/mixins/channels.id.json
431
442
  - lib/slack/web/api/mixins/channels.id.rb
443
+ - lib/slack/web/api/mixins/conversations.id.rb
432
444
  - lib/slack/web/api/mixins/groups.id.json
433
445
  - lib/slack/web/api/mixins/groups.id.rb
434
446
  - lib/slack/web/api/mixins/ids.id.rb
@@ -436,12 +448,7 @@ files:
436
448
  - lib/slack/web/api/mixins/users.id.rb
437
449
  - lib/slack/web/api/mixins/users.search.json
438
450
  - 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
451
+ - lib/slack/web/api/patches/chat.1.patch
445
452
  - lib/slack/web/api/patches/dialog.1.open-json-support.patch
446
453
  - lib/slack/web/api/patches/views.1.view-json.patch
447
454
  - lib/slack/web/api/patches/views.1.views-published.patch
@@ -507,7 +514,9 @@ files:
507
514
  - spec/slack/web/api/endpoints/admin_apps_requests_spec.rb
508
515
  - spec/slack/web/api/endpoints/admin_apps_restricted_spec.rb
509
516
  - spec/slack/web/api/endpoints/admin_apps_spec.rb
517
+ - spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb
510
518
  - spec/slack/web/api/endpoints/admin_conversations_spec.rb
519
+ - spec/slack/web/api/endpoints/admin_conversations_whitelist_spec.rb
511
520
  - spec/slack/web/api/endpoints/admin_emoji_spec.rb
512
521
  - spec/slack/web/api/endpoints/admin_inviteRequests_approved_spec.rb
513
522
  - spec/slack/web/api/endpoints/admin_inviteRequests_denied_spec.rb
@@ -516,6 +525,7 @@ files:
516
525
  - spec/slack/web/api/endpoints/admin_teams_owners_spec.rb
517
526
  - spec/slack/web/api/endpoints/admin_teams_settings_spec.rb
518
527
  - spec/slack/web/api/endpoints/admin_teams_spec.rb
528
+ - spec/slack/web/api/endpoints/admin_usergroups_spec.rb
519
529
  - spec/slack/web/api/endpoints/admin_users_session_spec.rb
520
530
  - spec/slack/web/api/endpoints/admin_users_spec.rb
521
531
  - spec/slack/web/api/endpoints/api_spec.rb
@@ -525,6 +535,8 @@ files:
525
535
  - spec/slack/web/api/endpoints/apps_permissions_users_spec.rb
526
536
  - spec/slack/web/api/endpoints/apps_spec.rb
527
537
  - spec/slack/web/api/endpoints/bots_spec.rb
538
+ - spec/slack/web/api/endpoints/calls_participants_spec.rb
539
+ - spec/slack/web/api/endpoints/calls_spec.rb
528
540
  - spec/slack/web/api/endpoints/chat_scheduledMessages_spec.rb
529
541
  - spec/slack/web/api/endpoints/conversations_spec.rb
530
542
  - spec/slack/web/api/endpoints/custom_specs/auth_spec.rb
@@ -562,6 +574,7 @@ files:
562
574
  - spec/slack/web/api/errors/service_unavailable_spec.rb
563
575
  - spec/slack/web/api/errors/slack_error_spec.rb
564
576
  - spec/slack/web/api/mixins/channels_spec.rb
577
+ - spec/slack/web/api/mixins/conversations_spec.rb
565
578
  - spec/slack/web/api/mixins/groups_spec.rb
566
579
  - spec/slack/web/api/mixins/users_spec.rb
567
580
  - spec/slack/web/api/pagination/cursor_spec.rb
@@ -578,7 +591,7 @@ homepage: http://github.com/slack-ruby/slack-ruby-client
578
591
  licenses:
579
592
  - MIT
580
593
  metadata: {}
581
- post_install_message:
594
+ post_install_message:
582
595
  rdoc_options: []
583
596
  require_paths:
584
597
  - lib
@@ -593,8 +606,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
593
606
  - !ruby/object:Gem::Version
594
607
  version: 1.3.6
595
608
  requirements: []
596
- rubygems_version: 3.0.3
597
- signing_key:
609
+ rubygems_version: 3.1.2
610
+ signing_key:
598
611
  specification_version: 4
599
612
  summary: Slack Web and RealTime API client.
600
613
  test_files:
@@ -638,7 +651,9 @@ test_files:
638
651
  - spec/slack/web/api/endpoints/admin_apps_requests_spec.rb
639
652
  - spec/slack/web/api/endpoints/admin_apps_restricted_spec.rb
640
653
  - spec/slack/web/api/endpoints/admin_apps_spec.rb
654
+ - spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb
641
655
  - spec/slack/web/api/endpoints/admin_conversations_spec.rb
656
+ - spec/slack/web/api/endpoints/admin_conversations_whitelist_spec.rb
642
657
  - spec/slack/web/api/endpoints/admin_emoji_spec.rb
643
658
  - spec/slack/web/api/endpoints/admin_inviteRequests_approved_spec.rb
644
659
  - spec/slack/web/api/endpoints/admin_inviteRequests_denied_spec.rb
@@ -647,6 +662,7 @@ test_files:
647
662
  - spec/slack/web/api/endpoints/admin_teams_owners_spec.rb
648
663
  - spec/slack/web/api/endpoints/admin_teams_settings_spec.rb
649
664
  - spec/slack/web/api/endpoints/admin_teams_spec.rb
665
+ - spec/slack/web/api/endpoints/admin_usergroups_spec.rb
650
666
  - spec/slack/web/api/endpoints/admin_users_session_spec.rb
651
667
  - spec/slack/web/api/endpoints/admin_users_spec.rb
652
668
  - spec/slack/web/api/endpoints/api_spec.rb
@@ -656,6 +672,8 @@ test_files:
656
672
  - spec/slack/web/api/endpoints/apps_permissions_users_spec.rb
657
673
  - spec/slack/web/api/endpoints/apps_spec.rb
658
674
  - spec/slack/web/api/endpoints/bots_spec.rb
675
+ - spec/slack/web/api/endpoints/calls_participants_spec.rb
676
+ - spec/slack/web/api/endpoints/calls_spec.rb
659
677
  - spec/slack/web/api/endpoints/chat_scheduledMessages_spec.rb
660
678
  - spec/slack/web/api/endpoints/conversations_spec.rb
661
679
  - spec/slack/web/api/endpoints/custom_specs/auth_spec.rb
@@ -693,6 +711,7 @@ test_files:
693
711
  - spec/slack/web/api/errors/service_unavailable_spec.rb
694
712
  - spec/slack/web/api/errors/slack_error_spec.rb
695
713
  - spec/slack/web/api/mixins/channels_spec.rb
714
+ - spec/slack/web/api/mixins/conversations_spec.rb
696
715
  - spec/slack/web/api/mixins/groups_spec.rb
697
716
  - spec/slack/web/api/mixins/users_spec.rb
698
717
  - spec/slack/web/api/pagination/cursor_spec.rb