slack-ruby-client 0.7.0 → 0.7.1
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/.rubocop_todo.yml +9 -9
- data/CHANGELOG.md +9 -1
- data/README.md +9 -1
- data/bin/commands/chat.rb +1 -0
- data/bin/commands/files.rb +3 -14
- data/bin/commands/files_comments.rb +35 -0
- data/bin/commands/reminders.rb +50 -0
- data/bin/commands/usergroups.rb +29 -40
- data/bin/commands/usergroups_users.rb +25 -0
- data/bin/commands.rb +3 -0
- data/bin/slack +3 -1
- data/examples/hi_real_time/hi.rb +5 -1
- data/lib/slack/real_time/client.rb +1 -0
- data/lib/slack/real_time/config.rb +1 -1
- data/lib/slack/version.rb +1 -1
- data/lib/slack/web/api/endpoints/chat.rb +9 -1
- data/lib/slack/web/api/endpoints/files.rb +3 -22
- data/lib/slack/web/api/endpoints/files_comments.rb +59 -0
- data/lib/slack/web/api/endpoints/reminders.rb +74 -0
- data/lib/slack/web/api/endpoints/usergroups.rb +23 -40
- data/lib/slack/web/api/endpoints/usergroups_users.rb +42 -0
- data/lib/slack/web/api/endpoints.rb +6 -0
- data/lib/slack/web/api/patches/chat.3.update-attachments-support.patch +20 -0
- data/lib/slack/web/api/templates/command.erb +3 -3
- data/lib/slack/web/api/templates/endpoints.erb +1 -1
- data/lib/slack/web/api/templates/method.erb +2 -2
- data/lib/slack/web/api/templates/method_spec.erb +2 -2
- data/lib/slack/web/config.rb +1 -1
- data/lib/tasks/real_time.rake +1 -1
- data/lib/tasks/web.rake +11 -7
- data/slack-ruby-client.gemspec +1 -1
- data/spec/integration/integration_spec.rb +20 -0
- data/spec/slack/web/api/endpoints/custom_specs/chat_spec.rb +36 -0
- data/spec/slack/web/api/endpoints/files_comments_spec.rb +34 -0
- data/spec/slack/web/api/endpoints/files_spec.rb +1 -15
- data/spec/slack/web/api/endpoints/reminders_spec.rb +30 -0
- data/spec/slack/web/api/endpoints/usergroups_spec.rb +0 -8
- data/spec/slack/web/api/endpoints/usergroups_users_spec.rb +20 -0
- data/spec/support/vcr.rb +1 -0
- metadata +19 -6
@@ -1,12 +1,12 @@
|
|
1
1
|
# This file was auto-generated by lib/tasks/web.rake
|
2
2
|
|
3
|
-
<% desc = group['desc'] || "#{group['name'].
|
3
|
+
<% desc = group['desc'] || "#{group['name'].gsub(".", "_").camelize} methods." %>
|
4
4
|
<% if desc.include?("'") %>
|
5
5
|
desc "<%= desc %>"
|
6
6
|
<% else %>
|
7
7
|
desc '<%= desc %>'
|
8
8
|
<% end %>
|
9
|
-
command '<%= group['name'] %>' do |g|
|
9
|
+
command '<%= group['name'].gsub(".", "_") %>' do |g|
|
10
10
|
<% names.each_with_index do |(name, data), index| %>
|
11
11
|
<% if index > 0 %>
|
12
12
|
|
@@ -27,7 +27,7 @@ command '<%= group['name'] %>' do |g|
|
|
27
27
|
<% end %>
|
28
28
|
<% end %>
|
29
29
|
c.action do |_global_options, options, _args|
|
30
|
-
puts JSON.dump($client.<%=group['name'] %>_<%= name %>(options))
|
30
|
+
puts JSON.dump($client.<%=group['name'].gsub(".", "_") %>_<%= name %>(options))
|
31
31
|
end
|
32
32
|
end
|
33
33
|
<% end %>
|
@@ -4,7 +4,7 @@ module Slack
|
|
4
4
|
module Web
|
5
5
|
module Api
|
6
6
|
module Endpoints
|
7
|
-
module <%= group.
|
7
|
+
module <%= group.gsub(".", "_").camelize %>
|
8
8
|
<% names.each_with_index do |(name, data), index| %>
|
9
9
|
<% next if data['mixin'] %>
|
10
10
|
<% if index > 0 %>
|
@@ -27,7 +27,7 @@ module Slack
|
|
27
27
|
<% end %>
|
28
28
|
# @see https://api.slack.com/methods/<%= group %>.<%= name %>
|
29
29
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/<%= group %>/<%= group %>.<%= name %>.json
|
30
|
-
def <%= group %>_<%= name %>(options = {})
|
30
|
+
def <%= group.gsub(".", "_") %>_<%= name %>(options = {})
|
31
31
|
<% data['args'].select{ |k, v| v['required'] }.each do |arg_name, arg_v| %>
|
32
32
|
throw ArgumentError.new('Required arguments :<%= arg_name %> missing') if options[:<%= arg_name %>].nil?
|
33
33
|
<% end %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
-
RSpec.describe Slack::Web::Api::Endpoints::<%= group.
|
5
|
+
RSpec.describe Slack::Web::Api::Endpoints::<%= group.gsub(".", "_").camelize %> do
|
6
6
|
let(:client) { Slack::Web::Client.new }
|
7
7
|
<% names.each_with_index do |(name, data), index| %>
|
8
8
|
<% next if data['mixin'] %>
|
@@ -12,7 +12,7 @@ RSpec.describe Slack::Web::Api::Endpoints::<%= group.capitalize %> do
|
|
12
12
|
<% required_params.each do |arg_name, arg_v| %>
|
13
13
|
it 'requires <%= arg_name %>' do
|
14
14
|
<% params_except_required = required_params.reject{ |name, _| name == arg_name }.map{|var, opts| "#{var}: '#{opts['example']}'"}.join(', ') %>
|
15
|
-
expect { client.<%= group %>_<%= name %><%= params_except_required.empty? ? '' : "(#{params_except_required})" %> }.to raise_error ArgumentError, /Required arguments :<%= arg_name %> missing/
|
15
|
+
expect { client.<%= group.gsub(".", "_") %>_<%= name %><%= params_except_required.empty? ? '' : "(#{params_except_required})" %> }.to raise_error ArgumentError, /Required arguments :<%= arg_name %> missing/
|
16
16
|
end
|
17
17
|
<% end %>
|
18
18
|
end
|
data/lib/slack/web/config.rb
CHANGED
data/lib/tasks/real_time.rake
CHANGED
data/lib/tasks/web.rake
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# largely from https://github.com/aki017/slack-ruby-gem
|
2
2
|
require 'json-schema'
|
3
3
|
require 'erubis'
|
4
|
+
require 'active_support'
|
5
|
+
require 'active_support/core_ext'
|
4
6
|
|
5
7
|
namespace :slack do
|
6
8
|
namespace :web do
|
@@ -20,8 +22,9 @@ namespace :slack do
|
|
20
22
|
Dir.glob('lib/slack/web/api/slack-api-ref/methods/**/*.json'),
|
21
23
|
Dir.glob('lib/slack/web/api/mixins/**/*.json')
|
22
24
|
].flatten.each_with_object({}) do |path, result|
|
23
|
-
|
24
|
-
prefix
|
25
|
+
file_name = File.basename(path, '.json')
|
26
|
+
prefix = file_name.split('.')[0..-2].join('.')
|
27
|
+
name = file_name.split('.')[-1]
|
25
28
|
result[prefix] ||= {}
|
26
29
|
parsed = JSON.parse(File.read(path))
|
27
30
|
JSON::Validator.validate(method_schema, parsed, insert_defaults: true)
|
@@ -34,12 +37,13 @@ namespace :slack do
|
|
34
37
|
data.each_with_index do |(group, names), index|
|
35
38
|
printf "%2d/%2d %10s %s\n", index, data.size, group, names.keys
|
36
39
|
# method
|
40
|
+
snaked_group = group.tr('.', '_')
|
37
41
|
rendered_method = method_template.result(group: group, names: names)
|
38
|
-
File.write "lib/slack/web/api/endpoints/#{
|
42
|
+
File.write "lib/slack/web/api/endpoints/#{snaked_group}.rb", rendered_method
|
39
43
|
custom_spec_exists = File.exist?("spec/slack/web/api/endpoints/custom_specs/#{group}_spec.rb")
|
40
44
|
unless custom_spec_exists
|
41
45
|
rendered_method_spec = method_spec_template.result(group: group, names: names)
|
42
|
-
File.write "spec/slack/web/api/endpoints/#{
|
46
|
+
File.write "spec/slack/web/api/endpoints/#{snaked_group}_spec.rb", rendered_method_spec
|
43
47
|
end
|
44
48
|
Dir.glob("lib/slack/web/api/patches/#{group}*.patch").sort.each do |patch|
|
45
49
|
puts "- patching #{patch}"
|
@@ -47,14 +51,14 @@ namespace :slack do
|
|
47
51
|
end
|
48
52
|
# command
|
49
53
|
rendered_command = command_template.result(group: groups[group], names: names)
|
50
|
-
File.write "bin/commands/#{
|
54
|
+
File.write "bin/commands/#{snaked_group}.rb", rendered_command
|
51
55
|
end
|
52
56
|
|
53
57
|
endpoints_template = Erubis::Eruby.new(File.read('lib/slack/web/api/templates/endpoints.erb'))
|
54
|
-
File.write 'lib/slack/web/api/endpoints.rb', endpoints_template.result(files: data.keys)
|
58
|
+
File.write 'lib/slack/web/api/endpoints.rb', endpoints_template.result(files: data.keys.map { |key| key.tr('.', '_') })
|
55
59
|
|
56
60
|
commands_template = Erubis::Eruby.new(File.read('lib/slack/web/api/templates/commands.erb'))
|
57
|
-
File.write 'bin/commands.rb', commands_template.result(files: data.keys)
|
61
|
+
File.write 'bin/commands.rb', commands_template.result(files: data.keys.map { |key| key.tr('.', '_') })
|
58
62
|
end
|
59
63
|
end
|
60
64
|
end
|
data/slack-ruby-client.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.add_dependency 'hashie'
|
26
26
|
s.add_development_dependency 'erubis'
|
27
27
|
s.add_development_dependency 'json-schema'
|
28
|
-
s.add_development_dependency 'rake'
|
28
|
+
s.add_development_dependency 'rake', '~> 10'
|
29
29
|
s.add_development_dependency 'rspec'
|
30
30
|
s.add_development_dependency 'vcr'
|
31
31
|
s.add_development_dependency 'webmock'
|
@@ -116,4 +116,24 @@ RSpec.describe 'integration test', skip: !ENV['SLACK_API_TOKEN'] && 'missing SLA
|
|
116
116
|
|
117
117
|
start_server
|
118
118
|
end
|
119
|
+
|
120
|
+
it 'gets close, followed by closed' do
|
121
|
+
client.on :hello do
|
122
|
+
expect(client.started?).to be true
|
123
|
+
client.stop!
|
124
|
+
end
|
125
|
+
|
126
|
+
client.on :close do |data|
|
127
|
+
logger.debug "client.on :close, data=#{data}"
|
128
|
+
expect(client.started?).to be true
|
129
|
+
@close_called = true
|
130
|
+
end
|
131
|
+
|
132
|
+
client.on :closed do |data|
|
133
|
+
logger.debug "client.on :closed, data=#{data}"
|
134
|
+
expect(@close_called).to be true
|
135
|
+
end
|
136
|
+
|
137
|
+
start_server
|
138
|
+
end
|
119
139
|
end
|
@@ -30,4 +30,40 @@ RSpec.describe Slack::Web::Api::Endpoints::Chat do
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
33
|
+
|
34
|
+
context 'chat_update' do
|
35
|
+
let(:ts) { '1405894322.002768' }
|
36
|
+
it 'automatically converts attachments into JSON' do
|
37
|
+
expect(client).to receive(:post).with(
|
38
|
+
'chat.update',
|
39
|
+
attachments: '[]',
|
40
|
+
channel: 'channel',
|
41
|
+
text: 'text',
|
42
|
+
ts: ts
|
43
|
+
)
|
44
|
+
client.chat_update(attachments: [], channel: 'channel', text: 'text', ts: ts)
|
45
|
+
end
|
46
|
+
context 'ts arguments' do
|
47
|
+
it 'requires ts' do
|
48
|
+
expect { client.chat_update(channel: 'channel') }.to raise_error ArgumentError, /Required arguments :ts missing>/
|
49
|
+
end
|
50
|
+
end
|
51
|
+
context 'text and attachment arguments' do
|
52
|
+
it 'requires text or attachments' do
|
53
|
+
expect { client.chat_update(channel: 'channel', ts: ts) }.to raise_error ArgumentError, /Required arguments :text or :attachments missing/
|
54
|
+
end
|
55
|
+
it 'only text' do
|
56
|
+
expect(client).to receive(:post).with('chat.update', hash_including(text: 'text'))
|
57
|
+
expect { client.chat_update(channel: 'channel', text: 'text', ts: ts) }.to_not raise_error
|
58
|
+
end
|
59
|
+
it 'only attachments' do
|
60
|
+
expect(client).to receive(:post).with('chat.update', hash_including(attachments: '[]'))
|
61
|
+
expect { client.chat_update(attachments: [], channel: 'channel', ts: ts) }.to_not raise_error
|
62
|
+
end
|
63
|
+
it 'both text and attachments' do
|
64
|
+
expect(client).to receive(:post).with('chat.update', hash_including(text: 'text', attachments: '[]'))
|
65
|
+
expect { client.chat_update(attachments: [], channel: 'channel', text: 'text', ts: ts) }.to_not raise_error
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
33
69
|
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# This file was auto-generated by lib/tasks/web.rake
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe Slack::Web::Api::Endpoints::FilesComments do
|
6
|
+
let(:client) { Slack::Web::Client.new }
|
7
|
+
context 'files.comments_add' do
|
8
|
+
it 'requires file' do
|
9
|
+
expect { client.files_comments_add(comment: 'Everyone should take a moment to read this file.') }.to raise_error ArgumentError, /Required arguments :file missing/
|
10
|
+
end
|
11
|
+
it 'requires comment' do
|
12
|
+
expect { client.files_comments_add(file: 'F1234567890') }.to raise_error ArgumentError, /Required arguments :comment missing/
|
13
|
+
end
|
14
|
+
end
|
15
|
+
context 'files.comments_delete' do
|
16
|
+
it 'requires file' do
|
17
|
+
expect { client.files_comments_delete(id: 'Fc1234567890') }.to raise_error ArgumentError, /Required arguments :file missing/
|
18
|
+
end
|
19
|
+
it 'requires id' do
|
20
|
+
expect { client.files_comments_delete(file: 'F1234567890') }.to raise_error ArgumentError, /Required arguments :id missing/
|
21
|
+
end
|
22
|
+
end
|
23
|
+
context 'files.comments_edit' do
|
24
|
+
it 'requires file' do
|
25
|
+
expect { client.files_comments_edit(id: 'Fc1234567890', comment: 'Everyone should take a moment to read this file, seriously.') }.to raise_error ArgumentError, /Required arguments :file missing/
|
26
|
+
end
|
27
|
+
it 'requires id' do
|
28
|
+
expect { client.files_comments_edit(file: 'F1234567890', comment: 'Everyone should take a moment to read this file, seriously.') }.to raise_error ArgumentError, /Required arguments :id missing/
|
29
|
+
end
|
30
|
+
it 'requires comment' do
|
31
|
+
expect { client.files_comments_edit(file: 'F1234567890', id: 'Fc1234567890') }.to raise_error ArgumentError, /Required arguments :comment missing/
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -4,17 +4,6 @@ require 'spec_helper'
|
|
4
4
|
|
5
5
|
RSpec.describe Slack::Web::Api::Endpoints::Files do
|
6
6
|
let(:client) { Slack::Web::Client.new }
|
7
|
-
context 'files_comments' do
|
8
|
-
it 'requires file' do
|
9
|
-
expect { client.files_comments(id: 'Fc1234567890', comment: 'Everyone should take a moment to read this file, seriously.') }.to raise_error ArgumentError, /Required arguments :file missing/
|
10
|
-
end
|
11
|
-
it 'requires id' do
|
12
|
-
expect { client.files_comments(file: 'F1234567890', comment: 'Everyone should take a moment to read this file, seriously.') }.to raise_error ArgumentError, /Required arguments :id missing/
|
13
|
-
end
|
14
|
-
it 'requires comment' do
|
15
|
-
expect { client.files_comments(file: 'F1234567890', id: 'Fc1234567890') }.to raise_error ArgumentError, /Required arguments :comment missing/
|
16
|
-
end
|
17
|
-
end
|
18
7
|
context 'files_delete' do
|
19
8
|
it 'requires file' do
|
20
9
|
expect { client.files_delete }.to raise_error ArgumentError, /Required arguments :file missing/
|
@@ -36,11 +25,8 @@ RSpec.describe Slack::Web::Api::Endpoints::Files do
|
|
36
25
|
end
|
37
26
|
end
|
38
27
|
context 'files_upload' do
|
39
|
-
it 'requires file' do
|
40
|
-
expect { client.files_upload(filename: 'foo.txt') }.to raise_error ArgumentError, /Required arguments :file missing/
|
41
|
-
end
|
42
28
|
it 'requires filename' do
|
43
|
-
expect { client.files_upload
|
29
|
+
expect { client.files_upload }.to raise_error ArgumentError, /Required arguments :filename missing/
|
44
30
|
end
|
45
31
|
end
|
46
32
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# This file was auto-generated by lib/tasks/web.rake
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe Slack::Web::Api::Endpoints::Reminders do
|
6
|
+
let(:client) { Slack::Web::Client.new }
|
7
|
+
context 'reminders_add' do
|
8
|
+
it 'requires text' do
|
9
|
+
expect { client.reminders_add(time: '1602288000') }.to raise_error ArgumentError, /Required arguments :text missing/
|
10
|
+
end
|
11
|
+
it 'requires time' do
|
12
|
+
expect { client.reminders_add(text: 'eat a banana') }.to raise_error ArgumentError, /Required arguments :time missing/
|
13
|
+
end
|
14
|
+
end
|
15
|
+
context 'reminders_complete' do
|
16
|
+
it 'requires reminder' do
|
17
|
+
expect { client.reminders_complete }.to raise_error ArgumentError, /Required arguments :reminder missing/
|
18
|
+
end
|
19
|
+
end
|
20
|
+
context 'reminders_delete' do
|
21
|
+
it 'requires reminder' do
|
22
|
+
expect { client.reminders_delete }.to raise_error ArgumentError, /Required arguments :reminder missing/
|
23
|
+
end
|
24
|
+
end
|
25
|
+
context 'reminders_info' do
|
26
|
+
it 'requires reminder' do
|
27
|
+
expect { client.reminders_info }.to raise_error ArgumentError, /Required arguments :reminder missing/
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -24,12 +24,4 @@ RSpec.describe Slack::Web::Api::Endpoints::Usergroups do
|
|
24
24
|
expect { client.usergroups_update }.to raise_error ArgumentError, /Required arguments :usergroup missing/
|
25
25
|
end
|
26
26
|
end
|
27
|
-
context 'usergroups_users' do
|
28
|
-
it 'requires usergroup' do
|
29
|
-
expect { client.usergroups_users(users: 'U060R4BJ4,U060RNRCZ') }.to raise_error ArgumentError, /Required arguments :usergroup missing/
|
30
|
-
end
|
31
|
-
it 'requires users' do
|
32
|
-
expect { client.usergroups_users(usergroup: 'S0604QSJC') }.to raise_error ArgumentError, /Required arguments :users missing/
|
33
|
-
end
|
34
|
-
end
|
35
27
|
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# This file was auto-generated by lib/tasks/web.rake
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe Slack::Web::Api::Endpoints::UsergroupsUsers do
|
6
|
+
let(:client) { Slack::Web::Client.new }
|
7
|
+
context 'usergroups.users_list' do
|
8
|
+
it 'requires usergroup' do
|
9
|
+
expect { client.usergroups_users_list }.to raise_error ArgumentError, /Required arguments :usergroup missing/
|
10
|
+
end
|
11
|
+
end
|
12
|
+
context 'usergroups.users_update' do
|
13
|
+
it 'requires usergroup' do
|
14
|
+
expect { client.usergroups_users_update(users: 'U060R4BJ4,U060RNRCZ') }.to raise_error ArgumentError, /Required arguments :usergroup missing/
|
15
|
+
end
|
16
|
+
it 'requires users' do
|
17
|
+
expect { client.usergroups_users_update(usergroup: 'S0604QSJC') }.to raise_error ArgumentError, /Required arguments :users missing/
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/spec/support/vcr.rb
CHANGED
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.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Doubrovkine
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -140,16 +140,16 @@ dependencies:
|
|
140
140
|
name: rake
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
145
|
+
version: '10'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - "
|
150
|
+
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
152
|
+
version: '10'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: rspec
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -235,17 +235,20 @@ files:
|
|
235
235
|
- bin/commands/dnd.rb
|
236
236
|
- bin/commands/emoji.rb
|
237
237
|
- bin/commands/files.rb
|
238
|
+
- bin/commands/files_comments.rb
|
238
239
|
- bin/commands/groups.rb
|
239
240
|
- bin/commands/im.rb
|
240
241
|
- bin/commands/mpim.rb
|
241
242
|
- bin/commands/oauth.rb
|
242
243
|
- bin/commands/pins.rb
|
243
244
|
- bin/commands/reactions.rb
|
245
|
+
- bin/commands/reminders.rb
|
244
246
|
- bin/commands/rtm.rb
|
245
247
|
- bin/commands/search.rb
|
246
248
|
- bin/commands/stars.rb
|
247
249
|
- bin/commands/team.rb
|
248
250
|
- bin/commands/usergroups.rb
|
251
|
+
- bin/commands/usergroups_users.rb
|
249
252
|
- bin/commands/users.rb
|
250
253
|
- bin/slack
|
251
254
|
- examples/hi_real_time/Gemfile
|
@@ -300,6 +303,7 @@ files:
|
|
300
303
|
- lib/slack/web/api/endpoints/dnd.rb
|
301
304
|
- lib/slack/web/api/endpoints/emoji.rb
|
302
305
|
- lib/slack/web/api/endpoints/files.rb
|
306
|
+
- lib/slack/web/api/endpoints/files_comments.rb
|
303
307
|
- lib/slack/web/api/endpoints/groups.rb
|
304
308
|
- lib/slack/web/api/endpoints/im.rb
|
305
309
|
- lib/slack/web/api/endpoints/mpim.rb
|
@@ -307,11 +311,13 @@ files:
|
|
307
311
|
- lib/slack/web/api/endpoints/pins.rb
|
308
312
|
- lib/slack/web/api/endpoints/presence.rb
|
309
313
|
- lib/slack/web/api/endpoints/reactions.rb
|
314
|
+
- lib/slack/web/api/endpoints/reminders.rb
|
310
315
|
- lib/slack/web/api/endpoints/rtm.rb
|
311
316
|
- lib/slack/web/api/endpoints/search.rb
|
312
317
|
- lib/slack/web/api/endpoints/stars.rb
|
313
318
|
- lib/slack/web/api/endpoints/team.rb
|
314
319
|
- lib/slack/web/api/endpoints/usergroups.rb
|
320
|
+
- lib/slack/web/api/endpoints/usergroups_users.rb
|
315
321
|
- lib/slack/web/api/endpoints/users.rb
|
316
322
|
- lib/slack/web/api/error.rb
|
317
323
|
- lib/slack/web/api/mixins.rb
|
@@ -325,6 +331,7 @@ files:
|
|
325
331
|
- lib/slack/web/api/mixins/users.search.rb
|
326
332
|
- lib/slack/web/api/patches/chat.1.text-attachments-required.patch
|
327
333
|
- lib/slack/web/api/patches/chat.2.attachments-json.patch
|
334
|
+
- lib/slack/web/api/patches/chat.3.update-attachments-support.patch
|
328
335
|
- lib/slack/web/api/schema/group.json
|
329
336
|
- lib/slack/web/api/schema/method.json
|
330
337
|
- lib/slack/web/api/templates/command.erb
|
@@ -381,17 +388,20 @@ files:
|
|
381
388
|
- spec/slack/web/api/endpoints/custom_specs/users_spec.rb
|
382
389
|
- spec/slack/web/api/endpoints/dnd_spec.rb
|
383
390
|
- spec/slack/web/api/endpoints/emoji_spec.rb
|
391
|
+
- spec/slack/web/api/endpoints/files_comments_spec.rb
|
384
392
|
- spec/slack/web/api/endpoints/files_spec.rb
|
385
393
|
- spec/slack/web/api/endpoints/im_spec.rb
|
386
394
|
- spec/slack/web/api/endpoints/mpim_spec.rb
|
387
395
|
- spec/slack/web/api/endpoints/oauth_spec.rb
|
388
396
|
- spec/slack/web/api/endpoints/pins_spec.rb
|
389
397
|
- spec/slack/web/api/endpoints/reactions_spec.rb
|
398
|
+
- spec/slack/web/api/endpoints/reminders_spec.rb
|
390
399
|
- spec/slack/web/api/endpoints/rtm_spec.rb
|
391
400
|
- spec/slack/web/api/endpoints/search_spec.rb
|
392
401
|
- spec/slack/web/api/endpoints/stars_spec.rb
|
393
402
|
- spec/slack/web/api/endpoints/team_spec.rb
|
394
403
|
- spec/slack/web/api/endpoints/usergroups_spec.rb
|
404
|
+
- spec/slack/web/api/endpoints/usergroups_users_spec.rb
|
395
405
|
- spec/slack/web/api/error_spec.rb
|
396
406
|
- spec/slack/web/api/mixins/channels_spec.rb
|
397
407
|
- spec/slack/web/api/mixins/groups_spec.rb
|
@@ -465,17 +475,20 @@ test_files:
|
|
465
475
|
- spec/slack/web/api/endpoints/custom_specs/users_spec.rb
|
466
476
|
- spec/slack/web/api/endpoints/dnd_spec.rb
|
467
477
|
- spec/slack/web/api/endpoints/emoji_spec.rb
|
478
|
+
- spec/slack/web/api/endpoints/files_comments_spec.rb
|
468
479
|
- spec/slack/web/api/endpoints/files_spec.rb
|
469
480
|
- spec/slack/web/api/endpoints/im_spec.rb
|
470
481
|
- spec/slack/web/api/endpoints/mpim_spec.rb
|
471
482
|
- spec/slack/web/api/endpoints/oauth_spec.rb
|
472
483
|
- spec/slack/web/api/endpoints/pins_spec.rb
|
473
484
|
- spec/slack/web/api/endpoints/reactions_spec.rb
|
485
|
+
- spec/slack/web/api/endpoints/reminders_spec.rb
|
474
486
|
- spec/slack/web/api/endpoints/rtm_spec.rb
|
475
487
|
- spec/slack/web/api/endpoints/search_spec.rb
|
476
488
|
- spec/slack/web/api/endpoints/stars_spec.rb
|
477
489
|
- spec/slack/web/api/endpoints/team_spec.rb
|
478
490
|
- spec/slack/web/api/endpoints/usergroups_spec.rb
|
491
|
+
- spec/slack/web/api/endpoints/usergroups_users_spec.rb
|
479
492
|
- spec/slack/web/api/error_spec.rb
|
480
493
|
- spec/slack/web/api/mixins/channels_spec.rb
|
481
494
|
- spec/slack/web/api/mixins/groups_spec.rb
|