slack-ruby-client 0.10.0 → 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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +3 -0
- data/.rubocop_todo.yml +30 -34
- data/.travis.yml +0 -1
- data/CHANGELOG.md +9 -0
- data/CONTRIBUTING.md +2 -2
- data/Gemfile +3 -1
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/bin/commands/channels.rb +18 -9
- data/bin/commands/chat.rb +24 -3
- data/bin/commands/dialog.rb +14 -0
- data/bin/commands/files.rb +21 -0
- data/bin/commands/groups.rb +10 -10
- data/bin/commands/migration.rb +14 -0
- data/bin/commands/rtm.rb +2 -4
- data/bin/commands/users.rb +18 -18
- data/bin/commands/users_admin.rb +28 -0
- data/bin/commands/users_prefs.rb +12 -0
- data/bin/commands.rb +5 -1
- data/bin/slack +1 -1
- data/examples/hi_real_time/hi.rb +1 -1
- data/examples/hi_real_time_and_web/hi.rb +1 -1
- data/examples/hi_real_time_async_celluloid/hi.rb +1 -1
- data/examples/hi_real_time_async_eventmachine/hi.rb +1 -1
- data/examples/hi_web/hi.rb +1 -1
- data/examples/new_ticket/new_ticket.rb +1 -1
- data/lib/slack/messages/formatting.rb +4 -4
- data/lib/slack/messages/message.rb +1 -2
- data/lib/slack/real_time/api/templates/event_handler.erb +1 -1
- data/lib/slack/real_time/client.rb +10 -9
- data/lib/slack/real_time/concurrency/celluloid.rb +5 -1
- data/lib/slack/real_time/config.rb +11 -11
- data/lib/slack/real_time/models/base.rb +1 -2
- data/lib/slack/real_time/socket.rb +2 -2
- data/lib/slack/real_time/stores/base.rb +1 -2
- data/lib/slack/real_time/stores/starter.rb +76 -76
- data/lib/slack/real_time/stores/store.rb +104 -94
- data/lib/slack/version.rb +1 -1
- data/lib/slack/web/api/endpoints/api.rb +1 -1
- data/lib/slack/web/api/endpoints/apps_permissions.rb +2 -2
- data/lib/slack/web/api/endpoints/auth.rb +2 -2
- data/lib/slack/web/api/endpoints/bots.rb +1 -1
- data/lib/slack/web/api/endpoints/channels.rb +27 -15
- data/lib/slack/web/api/endpoints/chat.rb +42 -9
- data/lib/slack/web/api/endpoints/conversations.rb +17 -17
- data/lib/slack/web/api/endpoints/dialog.rb +32 -0
- data/lib/slack/web/api/endpoints/dnd.rb +5 -5
- data/lib/slack/web/api/endpoints/emoji.rb +1 -1
- data/lib/slack/web/api/endpoints/files.rb +37 -6
- data/lib/slack/web/api/endpoints/files_comments.rb +3 -3
- data/lib/slack/web/api/endpoints/groups.rb +17 -17
- data/lib/slack/web/api/endpoints/im.rb +6 -6
- data/lib/slack/web/api/endpoints/migration.rb +25 -0
- data/lib/slack/web/api/endpoints/mpim.rb +6 -6
- data/lib/slack/web/api/endpoints/oauth.rb +2 -2
- data/lib/slack/web/api/endpoints/pins.rb +3 -3
- data/lib/slack/web/api/endpoints/presence.rb +1 -1
- data/lib/slack/web/api/endpoints/reactions.rb +4 -4
- data/lib/slack/web/api/endpoints/reminders.rb +5 -5
- data/lib/slack/web/api/endpoints/rtm.rb +3 -7
- data/lib/slack/web/api/endpoints/search.rb +3 -3
- data/lib/slack/web/api/endpoints/stars.rb +3 -3
- data/lib/slack/web/api/endpoints/team.rb +4 -4
- data/lib/slack/web/api/endpoints/team_profile.rb +1 -1
- data/lib/slack/web/api/endpoints/usergroups.rb +5 -5
- data/lib/slack/web/api/endpoints/usergroups_users.rb +2 -2
- data/lib/slack/web/api/endpoints/users.rb +8 -8
- data/lib/slack/web/api/endpoints/users_admin.rb +46 -0
- data/lib/slack/web/api/endpoints/users_prefs.rb +19 -0
- data/lib/slack/web/api/endpoints/users_profile.rb +2 -2
- data/lib/slack/web/api/endpoints.rb +10 -2
- data/lib/slack/web/api/mixins/ids.id.rb +1 -1
- data/lib/slack/web/api/mixins/users.search.rb +38 -36
- data/lib/slack/web/api/patches/chat.1.text-attachments-required.patch +1 -1
- data/lib/slack/web/api/patches/chat.3.update-attachments-support.patch +1 -1
- data/lib/slack/web/api/patches/dialog.1.open-json-support.patch +17 -0
- data/lib/slack/web/api/templates/command.erb +2 -1
- data/lib/slack/web/api/templates/commands.erb +1 -1
- data/lib/slack/web/api/templates/endpoints.erb +2 -2
- data/lib/slack/web/api/templates/method.erb +8 -3
- data/lib/slack/web/api/templates/method_spec.erb +1 -1
- data/lib/slack/web/config.rb +12 -12
- data/lib/slack/web/faraday/response/raise_error.rb +3 -3
- data/lib/tasks/git.rake +1 -1
- data/lib/tasks/real_time.rake +1 -1
- data/lib/tasks/web.rake +4 -1
- data/slack-ruby-client.gemspec +2 -3
- data/spec/slack/messages/formatting_spec.rb +1 -1
- data/spec/slack/real_time/client_spec.rb +3 -2
- data/spec/slack/real_time/concurrency/celluloid_spec.rb +1 -1
- data/spec/slack/real_time/concurrency/it_behaves_like_a_realtime_socket.rb +1 -1
- data/spec/slack/real_time/event_handlers/bot_spec.rb +4 -2
- data/spec/slack/real_time/event_handlers/event_handlers_spec.rb +1 -1
- data/spec/slack/real_time/event_handlers/user_spec.rb +4 -2
- data/spec/slack/web/api/endpoints/custom_specs/dialog_spec.rb +28 -0
- data/spec/slack/web/api/endpoints/custom_specs/users_spec.rb +8 -6
- data/spec/slack/web/api/endpoints/files_spec.rb +16 -0
- data/spec/slack/web/api/endpoints/migration_spec.rb +12 -0
- data/spec/slack/web/api/endpoints/users_admin_spec.rb +17 -0
- data/spec/slack/web/api/endpoints/users_prefs_spec.rb +7 -0
- data/spec/slack/web/api/error_spec.rb +1 -1
- data/spec/slack/web/api/errors/slack_error_spec.rb +1 -1
- data/spec/slack/web/api/mixins/users_spec.rb +6 -4
- data/spec/support/queue_with_timeout.rb +1 -1
- data/spec/support/real_time/concurrency/mock.rb +1 -2
- metadata +34 -31
|
@@ -10,7 +10,7 @@ RSpec.shared_examples_for 'a realtime socket' do
|
|
|
10
10
|
end
|
|
11
11
|
end
|
|
12
12
|
describe 'api' do
|
|
13
|
-
[
|
|
13
|
+
%i[start_sync start_sync disconnect! connect! connected? send_data close].each do |m|
|
|
14
14
|
it m do
|
|
15
15
|
expect(socket).to respond_to(m)
|
|
16
16
|
end
|
|
@@ -17,7 +17,8 @@ RSpec.describe Slack::RealTime::Client, vcr: { cassette_name: 'web/rtm_start' }
|
|
|
17
17
|
'icons' => {
|
|
18
18
|
'image_48' => 'https:\/\/slack.com\/path\/to\/hugbot_48.png'
|
|
19
19
|
}
|
|
20
|
-
}
|
|
20
|
+
}
|
|
21
|
+
)
|
|
21
22
|
client.send(:dispatch, event)
|
|
22
23
|
end.to change(client.bots, :count).by(1)
|
|
23
24
|
bot = client.bots['B024BE7LH']
|
|
@@ -32,7 +33,8 @@ RSpec.describe Slack::RealTime::Client, vcr: { cassette_name: 'web/rtm_start' }
|
|
|
32
33
|
'bot' => {
|
|
33
34
|
'id' => 'B0751JU2H',
|
|
34
35
|
'name' => 'hugbot'
|
|
35
|
-
}
|
|
36
|
+
}
|
|
37
|
+
)
|
|
36
38
|
client.send(:dispatch, event)
|
|
37
39
|
end.to_not change(client.bots, :count)
|
|
38
40
|
bot = client.bots['B0751JU2H']
|
|
@@ -9,7 +9,7 @@ RSpec.describe Slack::RealTime::Client, vcr: { cassette_name: 'web/rtm_start' }
|
|
|
9
9
|
'name' => 'push_sound',
|
|
10
10
|
'value' => 'updated.mp3'
|
|
11
11
|
)
|
|
12
|
-
expect(client.self).to receive(:prefs) {
|
|
12
|
+
expect(client.self).to receive(:prefs) { raise ArgumentError }
|
|
13
13
|
expect { client.send(:dispatch, event) }.to_not raise_error
|
|
14
14
|
end
|
|
15
15
|
end
|
|
@@ -14,7 +14,8 @@ RSpec.describe Slack::RealTime::Client, vcr: { cassette_name: 'web/rtm_start' }
|
|
|
14
14
|
'type' => 'user_change',
|
|
15
15
|
'user' => {
|
|
16
16
|
'id' => 'U07KECJ77', 'name' => 'renamed'
|
|
17
|
-
}
|
|
17
|
+
}
|
|
18
|
+
)
|
|
18
19
|
client.send(:dispatch, event)
|
|
19
20
|
expect(client.users['U07KECJ77'].name).to eq 'renamed'
|
|
20
21
|
end
|
|
@@ -24,7 +25,8 @@ RSpec.describe Slack::RealTime::Client, vcr: { cassette_name: 'web/rtm_start' }
|
|
|
24
25
|
'type' => 'team_join',
|
|
25
26
|
'user' => {
|
|
26
27
|
'id' => 'DEADBEEF', 'name' => 'added'
|
|
27
|
-
}
|
|
28
|
+
}
|
|
29
|
+
)
|
|
28
30
|
client.send(:dispatch, event)
|
|
29
31
|
end.to change(client.users, :count).by(1)
|
|
30
32
|
expect(client.users['DEADBEEF'].name).to eq 'added'
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
RSpec.describe Slack::Web::Api::Endpoints::Dialog do
|
|
4
|
+
let(:client) { Slack::Web::Client.new }
|
|
5
|
+
context 'dialog_open' do
|
|
6
|
+
it 'automatically converts dialog into JSON' do
|
|
7
|
+
expect(client).to receive(:post).with(
|
|
8
|
+
'dialog.open',
|
|
9
|
+
trigger_id: '12345.98765.abcd2358fdea',
|
|
10
|
+
dialog: '[]'
|
|
11
|
+
)
|
|
12
|
+
client.dialog_open(trigger_id: '12345.98765.abcd2358fdea', dialog: [])
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
context 'arguments' do
|
|
16
|
+
it 'requires dialog' do
|
|
17
|
+
expect { client.dialog_open(trigger_id: '123') }.to raise_error ArgumentError, /Required arguments :dialog missing/
|
|
18
|
+
end
|
|
19
|
+
it 'requires trigger_id' do
|
|
20
|
+
expect { client.dialog_open(dialog: []) }.to raise_error ArgumentError, /Required arguments :trigger_id missing/
|
|
21
|
+
end
|
|
22
|
+
it 'likes both dialog and trigger_id' do
|
|
23
|
+
expect(client).to receive(:post).with('dialog.open', hash_including(trigger_id: '123', dialog: '[]'))
|
|
24
|
+
expect { client.dialog_open(dialog: [], trigger_id: '123') }.to_not raise_error
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -21,11 +21,13 @@ RSpec.describe Slack::Web::Api::Endpoints::Users do
|
|
|
21
21
|
json = client.users_info(user: '@aws')
|
|
22
22
|
expect(json.user.name).to eq 'aws'
|
|
23
23
|
end
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
if defined?(Picky)
|
|
25
|
+
it 'search', vcr: { cassette_name: 'web/users_info' } do
|
|
26
|
+
json = client.users_search(user: 'aws')
|
|
27
|
+
expect(json.ok).to be true
|
|
28
|
+
expect(json.members.size).to eq 1
|
|
29
|
+
expect(json.members.first.name).to eq 'aws'
|
|
30
|
+
end
|
|
31
|
+
end
|
|
30
32
|
end
|
|
31
33
|
end
|
|
@@ -9,6 +9,14 @@ RSpec.describe Slack::Web::Api::Endpoints::Files do
|
|
|
9
9
|
expect { client.files_delete }.to raise_error ArgumentError, /Required arguments :file missing/
|
|
10
10
|
end
|
|
11
11
|
end
|
|
12
|
+
context 'files_edit' do
|
|
13
|
+
it 'requires file' do
|
|
14
|
+
expect { client.files_edit(title: 'Brand new title') }.to raise_error ArgumentError, /Required arguments :file missing/
|
|
15
|
+
end
|
|
16
|
+
it 'requires title' do
|
|
17
|
+
expect { client.files_edit(file: 'F2147483862') }.to raise_error ArgumentError, /Required arguments :title missing/
|
|
18
|
+
end
|
|
19
|
+
end
|
|
12
20
|
context 'files_info' do
|
|
13
21
|
it 'requires file' do
|
|
14
22
|
expect { client.files_info }.to raise_error ArgumentError, /Required arguments :file missing/
|
|
@@ -19,6 +27,14 @@ RSpec.describe Slack::Web::Api::Endpoints::Files do
|
|
|
19
27
|
expect { client.files_revokePublicURL }.to raise_error ArgumentError, /Required arguments :file missing/
|
|
20
28
|
end
|
|
21
29
|
end
|
|
30
|
+
context 'files_share' do
|
|
31
|
+
it 'requires file' do
|
|
32
|
+
expect { client.files_share(channel: 'C1234567890') }.to raise_error ArgumentError, /Required arguments :file missing/
|
|
33
|
+
end
|
|
34
|
+
it 'requires channel' do
|
|
35
|
+
expect { client.files_share(file: 'F2147483862') }.to raise_error ArgumentError, /Required arguments :channel missing/
|
|
36
|
+
end
|
|
37
|
+
end
|
|
22
38
|
context 'files_sharedPublicURL' do
|
|
23
39
|
it 'requires file' do
|
|
24
40
|
expect { client.files_sharedPublicURL }.to raise_error ArgumentError, /Required arguments :file missing/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# This file was auto-generated by lib/tasks/web.rake
|
|
2
|
+
|
|
3
|
+
require 'spec_helper'
|
|
4
|
+
|
|
5
|
+
RSpec.describe Slack::Web::Api::Endpoints::Migration do
|
|
6
|
+
let(:client) { Slack::Web::Client.new }
|
|
7
|
+
context 'migration_exchange' do
|
|
8
|
+
it 'requires users' do
|
|
9
|
+
expect { client.migration_exchange }.to raise_error ArgumentError, /Required arguments :users missing/
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# This file was auto-generated by lib/tasks/web.rake
|
|
2
|
+
|
|
3
|
+
require 'spec_helper'
|
|
4
|
+
|
|
5
|
+
RSpec.describe Slack::Web::Api::Endpoints::UsersAdmin do
|
|
6
|
+
let(:client) { Slack::Web::Client.new }
|
|
7
|
+
context 'users.admin_invite' do
|
|
8
|
+
it 'requires email' do
|
|
9
|
+
expect { client.users_admin_invite }.to raise_error ArgumentError, /Required arguments :email missing/
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
context 'users.admin_setInactive' do
|
|
13
|
+
it 'requires user' do
|
|
14
|
+
expect { client.users_admin_setInactive }.to raise_error ArgumentError, /Required arguments :user missing/
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -5,7 +5,7 @@ RSpec.describe Slack::Web::Api::Error do
|
|
|
5
5
|
it 'provides access to the response object', vcr: { cassette_name: 'web/auth_test_error' } do
|
|
6
6
|
begin
|
|
7
7
|
client.auth_test
|
|
8
|
-
|
|
8
|
+
raise 'Expected to receive Slack::Web::Api::Error.'
|
|
9
9
|
rescue Slack::Web::Api::Error => e
|
|
10
10
|
expect(e.response).to_not be_nil
|
|
11
11
|
expect(e.response.status).to eq 200
|
|
@@ -5,7 +5,7 @@ RSpec.describe Slack::Web::Api::Errors::SlackError do
|
|
|
5
5
|
it 'provides access to the response object', vcr: { cassette_name: 'web/auth_test_error' } do
|
|
6
6
|
begin
|
|
7
7
|
client.auth_test
|
|
8
|
-
|
|
8
|
+
raise 'Expected to receive Slack::Web::Api::Errors::SlackError.'
|
|
9
9
|
rescue Slack::Web::Api::Errors::SlackError => e
|
|
10
10
|
expect(e.response).to_not be_nil
|
|
11
11
|
expect(e.response.status).to eq 200
|
|
@@ -29,9 +29,11 @@ RSpec.describe Slack::Web::Api::Mixins::Users do
|
|
|
29
29
|
expect { subject.users_id(user: '@foo') }.to raise_error Slack::Web::Api::Errors::SlackError, 'user_not_found'
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
if defined?(Picky)
|
|
33
|
+
context '#users_search' do
|
|
34
|
+
it 'finds a user' do
|
|
35
|
+
expect(subject.users_search(user: 'aws')).to eq('ok' => true, 'members' => [{ 'id' => 'UDEADBEEF', 'name' => 'aws', 'profile' => {} }])
|
|
36
|
+
end
|
|
35
37
|
end
|
|
36
|
-
end
|
|
38
|
+
end
|
|
37
39
|
end
|
|
@@ -26,7 +26,7 @@ class QueueWithTimeout
|
|
|
26
26
|
if @queue.empty?
|
|
27
27
|
@recieved.wait(@mutex, timeout) if timeout != 0
|
|
28
28
|
# if we're still empty after the timeout, raise exception
|
|
29
|
-
|
|
29
|
+
raise ThreadError, 'queue empty' if @queue.empty?
|
|
30
30
|
end
|
|
31
31
|
@queue.shift
|
|
32
32
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: slack-ruby-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Doubrovkine
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-11-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -53,21 +53,7 @@ dependencies:
|
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name:
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - ">="
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '0'
|
|
62
|
-
type: :runtime
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - ">="
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '0'
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: websocket-driver
|
|
56
|
+
name: gli
|
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
|
72
58
|
requirements:
|
|
73
59
|
- - ">="
|
|
@@ -81,7 +67,7 @@ dependencies:
|
|
|
81
67
|
- !ruby/object:Gem::Version
|
|
82
68
|
version: '0'
|
|
83
69
|
- !ruby/object:Gem::Dependency
|
|
84
|
-
name:
|
|
70
|
+
name: hashie
|
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
|
86
72
|
requirements:
|
|
87
73
|
- - ">="
|
|
@@ -95,7 +81,7 @@ dependencies:
|
|
|
95
81
|
- !ruby/object:Gem::Version
|
|
96
82
|
version: '0'
|
|
97
83
|
- !ruby/object:Gem::Dependency
|
|
98
|
-
name:
|
|
84
|
+
name: websocket-driver
|
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
|
100
86
|
requirements:
|
|
101
87
|
- - ">="
|
|
@@ -165,21 +151,21 @@ dependencies:
|
|
|
165
151
|
- !ruby/object:Gem::Version
|
|
166
152
|
version: '0'
|
|
167
153
|
- !ruby/object:Gem::Dependency
|
|
168
|
-
name:
|
|
154
|
+
name: rubocop
|
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|
|
170
156
|
requirements:
|
|
171
|
-
- -
|
|
157
|
+
- - '='
|
|
172
158
|
- !ruby/object:Gem::Version
|
|
173
|
-
version:
|
|
159
|
+
version: 0.51.0
|
|
174
160
|
type: :development
|
|
175
161
|
prerelease: false
|
|
176
162
|
version_requirements: !ruby/object:Gem::Requirement
|
|
177
163
|
requirements:
|
|
178
|
-
- -
|
|
164
|
+
- - '='
|
|
179
165
|
- !ruby/object:Gem::Version
|
|
180
|
-
version:
|
|
166
|
+
version: 0.51.0
|
|
181
167
|
- !ruby/object:Gem::Dependency
|
|
182
|
-
name:
|
|
168
|
+
name: vcr
|
|
183
169
|
requirement: !ruby/object:Gem::Requirement
|
|
184
170
|
requirements:
|
|
185
171
|
- - ">="
|
|
@@ -193,19 +179,19 @@ dependencies:
|
|
|
193
179
|
- !ruby/object:Gem::Version
|
|
194
180
|
version: '0'
|
|
195
181
|
- !ruby/object:Gem::Dependency
|
|
196
|
-
name:
|
|
182
|
+
name: webmock
|
|
197
183
|
requirement: !ruby/object:Gem::Requirement
|
|
198
184
|
requirements:
|
|
199
|
-
- -
|
|
185
|
+
- - ">="
|
|
200
186
|
- !ruby/object:Gem::Version
|
|
201
|
-
version: 0
|
|
187
|
+
version: '0'
|
|
202
188
|
type: :development
|
|
203
189
|
prerelease: false
|
|
204
190
|
version_requirements: !ruby/object:Gem::Requirement
|
|
205
191
|
requirements:
|
|
206
|
-
- -
|
|
192
|
+
- - ">="
|
|
207
193
|
- !ruby/object:Gem::Version
|
|
208
|
-
version: 0
|
|
194
|
+
version: '0'
|
|
209
195
|
description:
|
|
210
196
|
email: dblock@dblock.org
|
|
211
197
|
executables:
|
|
@@ -236,12 +222,14 @@ files:
|
|
|
236
222
|
- bin/commands/channels.rb
|
|
237
223
|
- bin/commands/chat.rb
|
|
238
224
|
- bin/commands/conversations.rb
|
|
225
|
+
- bin/commands/dialog.rb
|
|
239
226
|
- bin/commands/dnd.rb
|
|
240
227
|
- bin/commands/emoji.rb
|
|
241
228
|
- bin/commands/files.rb
|
|
242
229
|
- bin/commands/files_comments.rb
|
|
243
230
|
- bin/commands/groups.rb
|
|
244
231
|
- bin/commands/im.rb
|
|
232
|
+
- bin/commands/migration.rb
|
|
245
233
|
- bin/commands/mpim.rb
|
|
246
234
|
- bin/commands/oauth.rb
|
|
247
235
|
- bin/commands/pins.rb
|
|
@@ -255,6 +243,8 @@ files:
|
|
|
255
243
|
- bin/commands/usergroups.rb
|
|
256
244
|
- bin/commands/usergroups_users.rb
|
|
257
245
|
- bin/commands/users.rb
|
|
246
|
+
- bin/commands/users_admin.rb
|
|
247
|
+
- bin/commands/users_prefs.rb
|
|
258
248
|
- bin/commands/users_profile.rb
|
|
259
249
|
- bin/slack
|
|
260
250
|
- examples/hi_real_time/Gemfile
|
|
@@ -313,12 +303,14 @@ files:
|
|
|
313
303
|
- lib/slack/web/api/endpoints/channels.rb
|
|
314
304
|
- lib/slack/web/api/endpoints/chat.rb
|
|
315
305
|
- lib/slack/web/api/endpoints/conversations.rb
|
|
306
|
+
- lib/slack/web/api/endpoints/dialog.rb
|
|
316
307
|
- lib/slack/web/api/endpoints/dnd.rb
|
|
317
308
|
- lib/slack/web/api/endpoints/emoji.rb
|
|
318
309
|
- lib/slack/web/api/endpoints/files.rb
|
|
319
310
|
- lib/slack/web/api/endpoints/files_comments.rb
|
|
320
311
|
- lib/slack/web/api/endpoints/groups.rb
|
|
321
312
|
- lib/slack/web/api/endpoints/im.rb
|
|
313
|
+
- lib/slack/web/api/endpoints/migration.rb
|
|
322
314
|
- lib/slack/web/api/endpoints/mpim.rb
|
|
323
315
|
- lib/slack/web/api/endpoints/oauth.rb
|
|
324
316
|
- lib/slack/web/api/endpoints/pins.rb
|
|
@@ -333,6 +325,8 @@ files:
|
|
|
333
325
|
- lib/slack/web/api/endpoints/usergroups.rb
|
|
334
326
|
- lib/slack/web/api/endpoints/usergroups_users.rb
|
|
335
327
|
- lib/slack/web/api/endpoints/users.rb
|
|
328
|
+
- lib/slack/web/api/endpoints/users_admin.rb
|
|
329
|
+
- lib/slack/web/api/endpoints/users_prefs.rb
|
|
336
330
|
- lib/slack/web/api/endpoints/users_profile.rb
|
|
337
331
|
- lib/slack/web/api/error.rb
|
|
338
332
|
- lib/slack/web/api/errors/slack_error.rb
|
|
@@ -351,6 +345,7 @@ files:
|
|
|
351
345
|
- lib/slack/web/api/patches/chat.2.attachments-json.patch
|
|
352
346
|
- lib/slack/web/api/patches/chat.3.update-attachments-support.patch
|
|
353
347
|
- lib/slack/web/api/patches/chat.4.postEphemeral-attachments-support.patch
|
|
348
|
+
- lib/slack/web/api/patches/dialog.1.open-json-support.patch
|
|
354
349
|
- lib/slack/web/api/schema/group.json
|
|
355
350
|
- lib/slack/web/api/schema/method.json
|
|
356
351
|
- lib/slack/web/api/templates/command.erb
|
|
@@ -411,6 +406,7 @@ files:
|
|
|
411
406
|
- spec/slack/web/api/endpoints/custom_specs/auth_spec.rb
|
|
412
407
|
- spec/slack/web/api/endpoints/custom_specs/channels_spec.rb
|
|
413
408
|
- spec/slack/web/api/endpoints/custom_specs/chat_spec.rb
|
|
409
|
+
- spec/slack/web/api/endpoints/custom_specs/dialog_spec.rb
|
|
414
410
|
- spec/slack/web/api/endpoints/custom_specs/groups_spec.rb
|
|
415
411
|
- spec/slack/web/api/endpoints/custom_specs/users_spec.rb
|
|
416
412
|
- spec/slack/web/api/endpoints/dnd_spec.rb
|
|
@@ -418,6 +414,7 @@ files:
|
|
|
418
414
|
- spec/slack/web/api/endpoints/files_comments_spec.rb
|
|
419
415
|
- spec/slack/web/api/endpoints/files_spec.rb
|
|
420
416
|
- spec/slack/web/api/endpoints/im_spec.rb
|
|
417
|
+
- spec/slack/web/api/endpoints/migration_spec.rb
|
|
421
418
|
- spec/slack/web/api/endpoints/mpim_spec.rb
|
|
422
419
|
- spec/slack/web/api/endpoints/oauth_spec.rb
|
|
423
420
|
- spec/slack/web/api/endpoints/pins_spec.rb
|
|
@@ -430,6 +427,8 @@ files:
|
|
|
430
427
|
- spec/slack/web/api/endpoints/team_spec.rb
|
|
431
428
|
- spec/slack/web/api/endpoints/usergroups_spec.rb
|
|
432
429
|
- spec/slack/web/api/endpoints/usergroups_users_spec.rb
|
|
430
|
+
- spec/slack/web/api/endpoints/users_admin_spec.rb
|
|
431
|
+
- spec/slack/web/api/endpoints/users_prefs_spec.rb
|
|
433
432
|
- spec/slack/web/api/endpoints/users_profile_spec.rb
|
|
434
433
|
- spec/slack/web/api/error_spec.rb
|
|
435
434
|
- spec/slack/web/api/errors/slack_error_spec.rb
|
|
@@ -465,7 +464,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
465
464
|
version: 1.3.6
|
|
466
465
|
requirements: []
|
|
467
466
|
rubyforge_project:
|
|
468
|
-
rubygems_version: 2.6.
|
|
467
|
+
rubygems_version: 2.6.12
|
|
469
468
|
signing_key:
|
|
470
469
|
specification_version: 4
|
|
471
470
|
summary: Slack Web and RealTime API client.
|
|
@@ -509,6 +508,7 @@ test_files:
|
|
|
509
508
|
- spec/slack/web/api/endpoints/custom_specs/auth_spec.rb
|
|
510
509
|
- spec/slack/web/api/endpoints/custom_specs/channels_spec.rb
|
|
511
510
|
- spec/slack/web/api/endpoints/custom_specs/chat_spec.rb
|
|
511
|
+
- spec/slack/web/api/endpoints/custom_specs/dialog_spec.rb
|
|
512
512
|
- spec/slack/web/api/endpoints/custom_specs/groups_spec.rb
|
|
513
513
|
- spec/slack/web/api/endpoints/custom_specs/users_spec.rb
|
|
514
514
|
- spec/slack/web/api/endpoints/dnd_spec.rb
|
|
@@ -516,6 +516,7 @@ test_files:
|
|
|
516
516
|
- spec/slack/web/api/endpoints/files_comments_spec.rb
|
|
517
517
|
- spec/slack/web/api/endpoints/files_spec.rb
|
|
518
518
|
- spec/slack/web/api/endpoints/im_spec.rb
|
|
519
|
+
- spec/slack/web/api/endpoints/migration_spec.rb
|
|
519
520
|
- spec/slack/web/api/endpoints/mpim_spec.rb
|
|
520
521
|
- spec/slack/web/api/endpoints/oauth_spec.rb
|
|
521
522
|
- spec/slack/web/api/endpoints/pins_spec.rb
|
|
@@ -528,6 +529,8 @@ test_files:
|
|
|
528
529
|
- spec/slack/web/api/endpoints/team_spec.rb
|
|
529
530
|
- spec/slack/web/api/endpoints/usergroups_spec.rb
|
|
530
531
|
- spec/slack/web/api/endpoints/usergroups_users_spec.rb
|
|
532
|
+
- spec/slack/web/api/endpoints/users_admin_spec.rb
|
|
533
|
+
- spec/slack/web/api/endpoints/users_prefs_spec.rb
|
|
531
534
|
- spec/slack/web/api/endpoints/users_profile_spec.rb
|
|
532
535
|
- spec/slack/web/api/error_spec.rb
|
|
533
536
|
- spec/slack/web/api/errors/slack_error_spec.rb
|