slack-ruby-client 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +19 -17
- data/.travis.yml +1 -0
- data/CHANGELOG.md +8 -0
- data/README.md +24 -4
- data/bin/commands/chat.rb +10 -9
- data/bin/commands/files.rb +19 -1
- data/examples/hi_real_time/hi.rb +2 -0
- data/lib/slack-ruby-client.rb +4 -2
- data/lib/slack/config.rb +4 -0
- data/lib/slack/logger.rb +13 -0
- data/lib/slack/messages/message.rb +6 -0
- data/lib/slack/real_time/api/schema/event.json +1 -0
- data/lib/slack/real_time/api/templates/event_handler.erb +4 -18
- data/lib/slack/real_time/client.rb +29 -5
- data/lib/slack/real_time/concurrency/celluloid.rb +6 -0
- data/lib/slack/real_time/concurrency/eventmachine.rb +22 -1
- data/lib/slack/real_time/config.rb +5 -1
- data/lib/slack/real_time/socket.rb +5 -0
- data/lib/slack/real_time/stores.rb +10 -0
- data/lib/slack/real_time/stores/base.rb +34 -0
- data/lib/slack/real_time/stores/starter.rb +361 -0
- data/lib/slack/real_time/stores/store.rb +479 -0
- data/lib/slack/version.rb +1 -1
- data/lib/slack/web/api/endpoints/api.rb +1 -1
- data/lib/slack/web/api/endpoints/auth.rb +1 -1
- data/lib/slack/web/api/endpoints/channels.rb +14 -14
- data/lib/slack/web/api/endpoints/chat.rb +15 -13
- 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 +30 -6
- data/lib/slack/web/api/endpoints/groups.rb +16 -16
- data/lib/slack/web/api/endpoints/im.rb +5 -5
- data/lib/slack/web/api/endpoints/mpim.rb +5 -5
- data/lib/slack/web/api/endpoints/oauth.rb +1 -1
- data/lib/slack/web/api/endpoints/pins.rb +3 -3
- data/lib/slack/web/api/endpoints/reactions.rb +4 -4
- data/lib/slack/web/api/endpoints/rtm.rb +1 -1
- 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 +3 -3
- data/lib/slack/web/api/endpoints/usergroups.rb +6 -6
- data/lib/slack/web/api/endpoints/users.rb +5 -5
- data/lib/slack/web/api/patches/chat.1.text-attachments-required.patch +1 -1
- data/lib/slack/web/api/templates/method.erb +1 -1
- data/lib/slack/web/client.rb +1 -0
- data/lib/tasks/real_time.rake +27 -21
- data/slack-ruby-client.gemspec +1 -0
- data/spec/integration/integration_spec.rb +13 -1
- data/spec/slack/real_time/client_spec.rb +40 -5
- data/spec/slack/real_time/concurrency/celluloid_spec.rb +2 -1
- data/spec/slack/real_time/concurrency/eventmachine_spec.rb +3 -2
- data/spec/slack/real_time/event_handlers/event_handlers_spec.rb +15 -0
- data/spec/slack/real_time/event_handlers/team_spec.rb +54 -52
- data/spec/slack/web/api/endpoints/files_spec.rb +10 -0
- data/spec/slack/web/client_spec.rb +1 -1
- data/spec/support/real_time/connected_client.rb +3 -3
- metadata +23 -71
- data/lib/slack/real_time/api/templates/event_handlers.erb +0 -5
- data/lib/slack/real_time/event_handlers.rb +0 -66
- data/lib/slack/real_time/event_handlers/accounts_changed.rb +0 -18
- data/lib/slack/real_time/event_handlers/bot_added.rb +0 -16
- data/lib/slack/real_time/event_handlers/bot_changed.rb +0 -17
- data/lib/slack/real_time/event_handlers/channel_archive.rb +0 -17
- data/lib/slack/real_time/event_handlers/channel_created.rb +0 -17
- data/lib/slack/real_time/event_handlers/channel_deleted.rb +0 -16
- data/lib/slack/real_time/event_handlers/channel_history_changed.rb +0 -18
- data/lib/slack/real_time/event_handlers/channel_joined.rb +0 -22
- data/lib/slack/real_time/event_handlers/channel_left.rb +0 -17
- data/lib/slack/real_time/event_handlers/channel_marked.rb +0 -18
- data/lib/slack/real_time/event_handlers/channel_rename.rb +0 -17
- data/lib/slack/real_time/event_handlers/channel_unarchive.rb +0 -17
- data/lib/slack/real_time/event_handlers/commands_changed.rb +0 -18
- data/lib/slack/real_time/event_handlers/dnd_updated.rb +0 -18
- data/lib/slack/real_time/event_handlers/dnd_updated_user.rb +0 -18
- data/lib/slack/real_time/event_handlers/email_domain_changed.rb +0 -16
- data/lib/slack/real_time/event_handlers/emoji_changed.rb +0 -18
- data/lib/slack/real_time/event_handlers/file_change.rb +0 -18
- data/lib/slack/real_time/event_handlers/file_comment_added.rb +0 -18
- data/lib/slack/real_time/event_handlers/file_comment_deleted.rb +0 -18
- data/lib/slack/real_time/event_handlers/file_comment_edited.rb +0 -18
- data/lib/slack/real_time/event_handlers/file_created.rb +0 -18
- data/lib/slack/real_time/event_handlers/file_deleted.rb +0 -18
- data/lib/slack/real_time/event_handlers/file_private.rb +0 -18
- data/lib/slack/real_time/event_handlers/file_public.rb +0 -18
- data/lib/slack/real_time/event_handlers/file_shared.rb +0 -18
- data/lib/slack/real_time/event_handlers/file_unshared.rb +0 -18
- data/lib/slack/real_time/event_handlers/group_archive.rb +0 -17
- data/lib/slack/real_time/event_handlers/group_close.rb +0 -16
- data/lib/slack/real_time/event_handlers/group_history_changed.rb +0 -18
- data/lib/slack/real_time/event_handlers/group_joined.rb +0 -16
- data/lib/slack/real_time/event_handlers/group_left.rb +0 -17
- data/lib/slack/real_time/event_handlers/group_marked.rb +0 -18
- data/lib/slack/real_time/event_handlers/group_open.rb +0 -16
- data/lib/slack/real_time/event_handlers/group_rename.rb +0 -17
- data/lib/slack/real_time/event_handlers/group_unarchive.rb +0 -17
- data/lib/slack/real_time/event_handlers/im_close.rb +0 -16
- data/lib/slack/real_time/event_handlers/im_created.rb +0 -16
- data/lib/slack/real_time/event_handlers/im_history_changed.rb +0 -18
- data/lib/slack/real_time/event_handlers/im_marked.rb +0 -18
- data/lib/slack/real_time/event_handlers/im_open.rb +0 -16
- data/lib/slack/real_time/event_handlers/manual_presence_change.rb +0 -16
- data/lib/slack/real_time/event_handlers/pin_added.rb +0 -18
- data/lib/slack/real_time/event_handlers/pin_removed.rb +0 -18
- data/lib/slack/real_time/event_handlers/pref_change.rb +0 -16
- data/lib/slack/real_time/event_handlers/presence_change.rb +0 -17
- data/lib/slack/real_time/event_handlers/reaction_added.rb +0 -18
- data/lib/slack/real_time/event_handlers/reaction_removed.rb +0 -18
- data/lib/slack/real_time/event_handlers/reconnect_url.rb +0 -18
- data/lib/slack/real_time/event_handlers/star_added.rb +0 -18
- data/lib/slack/real_time/event_handlers/star_removed.rb +0 -18
- data/lib/slack/real_time/event_handlers/subteam_created.rb +0 -18
- data/lib/slack/real_time/event_handlers/subteam_self_added.rb +0 -18
- data/lib/slack/real_time/event_handlers/subteam_self_removed.rb +0 -18
- data/lib/slack/real_time/event_handlers/subteam_updated.rb +0 -18
- data/lib/slack/real_time/event_handlers/team_domain_change.rb +0 -17
- data/lib/slack/real_time/event_handlers/team_join.rb +0 -16
- data/lib/slack/real_time/event_handlers/team_migration_started.rb +0 -18
- data/lib/slack/real_time/event_handlers/team_plan_change.rb +0 -16
- data/lib/slack/real_time/event_handlers/team_pref_change.rb +0 -16
- data/lib/slack/real_time/event_handlers/team_profile_change.rb +0 -18
- data/lib/slack/real_time/event_handlers/team_profile_delete.rb +0 -18
- data/lib/slack/real_time/event_handlers/team_profile_reorder.rb +0 -18
- data/lib/slack/real_time/event_handlers/team_rename.rb +0 -16
- data/lib/slack/real_time/event_handlers/user_change.rb +0 -16
- data/lib/slack/real_time/event_handlers/user_typing.rb +0 -18
- data/lib/slack/real_time/store.rb +0 -47
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was auto-generated by lib/tasks/real_time.rake
|
2
|
-
|
3
|
-
# module Slack
|
4
|
-
# module RealTime
|
5
|
-
# module EventHandlers
|
6
|
-
# module AccountsChanged
|
7
|
-
# # The list of accounts a user is signed into has changed.
|
8
|
-
# # @see https://api.slack.com/events/accounts_changed
|
9
|
-
# # @see https://github.com/dblock/slack-api-ref/blob/master/events/accounts_changed.json
|
10
|
-
# def self.call(_client, _data)
|
11
|
-
# # TODO
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
# end
|
15
|
-
# end
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# Slack::RealTime::Client.events['accounts_changed'] = Slack::RealTime::EventHandlers::AccountsChanged
|
@@ -1,16 +0,0 @@
|
|
1
|
-
module Slack
|
2
|
-
module RealTime
|
3
|
-
module EventHandlers
|
4
|
-
module BotAdded
|
5
|
-
# An integration bot was added.
|
6
|
-
# @see https://api.slack.com/events/bot_added
|
7
|
-
# @see https://github.com/dblock/slack-api-ref/blob/master/events/bot_added.json
|
8
|
-
def self.call(client, data)
|
9
|
-
client.bots[data.bot.id] = Models::Bot.new(data.bot)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
Slack::RealTime::Client.events['bot_added'] = Slack::RealTime::EventHandlers::BotAdded
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module Slack
|
2
|
-
module RealTime
|
3
|
-
module EventHandlers
|
4
|
-
module BotChanged
|
5
|
-
# An integration bot was changed.
|
6
|
-
# @see https://api.slack.com/events/bot_changed
|
7
|
-
# @see https://github.com/dblock/slack-api-ref/blob/master/events/bot_changed.json
|
8
|
-
def self.call(client, data)
|
9
|
-
bot = client.bots[data.bot.id]
|
10
|
-
bot.merge!(data.bot) if bot
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
Slack::RealTime::Client.events['bot_changed'] = Slack::RealTime::EventHandlers::BotChanged
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module Slack
|
2
|
-
module RealTime
|
3
|
-
module EventHandlers
|
4
|
-
module ChannelArchive
|
5
|
-
# A team channel was archived.
|
6
|
-
# @see https://api.slack.com/events/channel_archive
|
7
|
-
# @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_archive.json
|
8
|
-
def self.call(client, data)
|
9
|
-
channel = client.channels[data.channel]
|
10
|
-
channel.is_archived = true if channel
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
Slack::RealTime::Client.events['channel_archive'] = Slack::RealTime::EventHandlers::ChannelArchive
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module Slack
|
2
|
-
module RealTime
|
3
|
-
module EventHandlers
|
4
|
-
module ChannelCreated
|
5
|
-
# A team channel was created.
|
6
|
-
# @see https://api.slack.com/events/channel_created
|
7
|
-
# @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_created.json
|
8
|
-
def self.call(client, data)
|
9
|
-
channel = Models::Channel.new(data.channel)
|
10
|
-
client.channels[channel.id] = channel
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
Slack::RealTime::Client.events['channel_created'] = Slack::RealTime::EventHandlers::ChannelCreated
|
@@ -1,16 +0,0 @@
|
|
1
|
-
module Slack
|
2
|
-
module RealTime
|
3
|
-
module EventHandlers
|
4
|
-
module ChannelDeleted
|
5
|
-
# A team channel was deleted.
|
6
|
-
# @see https://api.slack.com/events/channel_deleted
|
7
|
-
# @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_deleted.json
|
8
|
-
def self.call(client, data)
|
9
|
-
client.channels.delete(data.channel)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
Slack::RealTime::Client.events['channel_deleted'] = Slack::RealTime::EventHandlers::ChannelDeleted
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was auto-generated by lib/tasks/real_time.rake
|
2
|
-
|
3
|
-
# module Slack
|
4
|
-
# module RealTime
|
5
|
-
# module EventHandlers
|
6
|
-
# module ChannelHistoryChanged
|
7
|
-
# # Bulk updates were made to a channel's history.
|
8
|
-
# # @see https://api.slack.com/events/channel_history_changed
|
9
|
-
# # @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_history_changed.json
|
10
|
-
# def self.call(_client, _data)
|
11
|
-
# # TODO
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
# end
|
15
|
-
# end
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# Slack::RealTime::Client.events['channel_history_changed'] = Slack::RealTime::EventHandlers::ChannelHistoryChanged
|
@@ -1,22 +0,0 @@
|
|
1
|
-
module Slack
|
2
|
-
module RealTime
|
3
|
-
module EventHandlers
|
4
|
-
module ChannelJoined
|
5
|
-
# You joined a channel.
|
6
|
-
# @see https://api.slack.com/events/channel_joined
|
7
|
-
# @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_joined.json
|
8
|
-
def self.call(client, data)
|
9
|
-
channel_id = data.channel.id
|
10
|
-
channel = client.channels[channel_id]
|
11
|
-
if channel
|
12
|
-
channel.merge!(data.channel)
|
13
|
-
else
|
14
|
-
client.channels[channel_id] = Models::Channel.new(data.channel)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
Slack::RealTime::Client.events['channel_joined'] = Slack::RealTime::EventHandlers::ChannelJoined
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module Slack
|
2
|
-
module RealTime
|
3
|
-
module EventHandlers
|
4
|
-
module ChannelLeft
|
5
|
-
# You left a channel.
|
6
|
-
# @see https://api.slack.com/events/channel_left
|
7
|
-
# @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_left.json
|
8
|
-
def self.call(client, data)
|
9
|
-
channel = client.channels[data.channel]
|
10
|
-
channel.members.delete(client.self.id) if channel.key?('members')
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
Slack::RealTime::Client.events['channel_left'] = Slack::RealTime::EventHandlers::ChannelLeft
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was auto-generated by lib/tasks/real_time.rake
|
2
|
-
|
3
|
-
# module Slack
|
4
|
-
# module RealTime
|
5
|
-
# module EventHandlers
|
6
|
-
# module ChannelMarked
|
7
|
-
# # Your channel read marker was updated.
|
8
|
-
# # @see https://api.slack.com/events/channel_marked
|
9
|
-
# # @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_marked.json
|
10
|
-
# def self.call(_client, _data)
|
11
|
-
# # TODO
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
# end
|
15
|
-
# end
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# Slack::RealTime::Client.events['channel_marked'] = Slack::RealTime::EventHandlers::ChannelMarked
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module Slack
|
2
|
-
module RealTime
|
3
|
-
module EventHandlers
|
4
|
-
module ChannelRename
|
5
|
-
# A team channel was renamed.
|
6
|
-
# @see https://api.slack.com/events/channel_rename
|
7
|
-
# @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_rename.json
|
8
|
-
def self.call(client, data)
|
9
|
-
channel = client.channels[data.channel.id]
|
10
|
-
channel.name = data.channel.name if channel
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
Slack::RealTime::Client.events['channel_rename'] = Slack::RealTime::EventHandlers::ChannelRename
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module Slack
|
2
|
-
module RealTime
|
3
|
-
module EventHandlers
|
4
|
-
module ChannelUnarchive
|
5
|
-
# A team channel was unarchived.
|
6
|
-
# @see https://api.slack.com/events/channel_unarchive
|
7
|
-
# @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_unarchive.json
|
8
|
-
def self.call(client, data)
|
9
|
-
channel = client.channels[data.channel]
|
10
|
-
channel.is_archived = false if channel
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
Slack::RealTime::Client.events['channel_unarchive'] = Slack::RealTime::EventHandlers::ChannelUnarchive
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was auto-generated by lib/tasks/real_time.rake
|
2
|
-
|
3
|
-
# module Slack
|
4
|
-
# module RealTime
|
5
|
-
# module EventHandlers
|
6
|
-
# module CommandsChanged
|
7
|
-
# # A team slash command has been added or changed.
|
8
|
-
# # @see https://api.slack.com/events/commands_changed
|
9
|
-
# # @see https://github.com/dblock/slack-api-ref/blob/master/events/commands_changed.json
|
10
|
-
# def self.call(_client, _data)
|
11
|
-
# # TODO
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
# end
|
15
|
-
# end
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# Slack::RealTime::Client.events['commands_changed'] = Slack::RealTime::EventHandlers::CommandsChanged
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was auto-generated by lib/tasks/real_time.rake
|
2
|
-
|
3
|
-
# module Slack
|
4
|
-
# module RealTime
|
5
|
-
# module EventHandlers
|
6
|
-
# module DndUpdated
|
7
|
-
# # Do not Disturb settings changed for the current user.
|
8
|
-
# # @see https://api.slack.com/events/dnd_updated
|
9
|
-
# # @see https://github.com/dblock/slack-api-ref/blob/master/events/dnd_updated.json
|
10
|
-
# def self.call(_client, _data)
|
11
|
-
# # TODO
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
# end
|
15
|
-
# end
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# Slack::RealTime::Client.events['dnd_updated'] = Slack::RealTime::EventHandlers::DndUpdated
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was auto-generated by lib/tasks/real_time.rake
|
2
|
-
|
3
|
-
# module Slack
|
4
|
-
# module RealTime
|
5
|
-
# module EventHandlers
|
6
|
-
# module DndUpdatedUser
|
7
|
-
# # Do not Disturb settings changed for a team member.
|
8
|
-
# # @see https://api.slack.com/events/dnd_updated_user
|
9
|
-
# # @see https://github.com/dblock/slack-api-ref/blob/master/events/dnd_updated_user.json
|
10
|
-
# def self.call(_client, _data)
|
11
|
-
# # TODO
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
# end
|
15
|
-
# end
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# Slack::RealTime::Client.events['dnd_updated_user'] = Slack::RealTime::EventHandlers::DndUpdatedUser
|
@@ -1,16 +0,0 @@
|
|
1
|
-
module Slack
|
2
|
-
module RealTime
|
3
|
-
module EventHandlers
|
4
|
-
module EmailDomainChanged
|
5
|
-
# The team email domain has changed.
|
6
|
-
# @see https://api.slack.com/events/email_domain_changed
|
7
|
-
# @see https://github.com/dblock/slack-api-ref/blob/master/events/email_domain_changed.json
|
8
|
-
def self.call(client, data)
|
9
|
-
client.team.email_domain = data.email_domain
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
Slack::RealTime::Client.events['email_domain_changed'] = Slack::RealTime::EventHandlers::EmailDomainChanged
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was auto-generated by lib/tasks/real_time.rake
|
2
|
-
|
3
|
-
# module Slack
|
4
|
-
# module RealTime
|
5
|
-
# module EventHandlers
|
6
|
-
# module EmojiChanged
|
7
|
-
# # A team custom emoji has been added or changed.
|
8
|
-
# # @see https://api.slack.com/events/emoji_changed
|
9
|
-
# # @see https://github.com/dblock/slack-api-ref/blob/master/events/emoji_changed.json
|
10
|
-
# def self.call(_client, _data)
|
11
|
-
# # TODO
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
# end
|
15
|
-
# end
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# Slack::RealTime::Client.events['emoji_changed'] = Slack::RealTime::EventHandlers::EmojiChanged
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was auto-generated by lib/tasks/real_time.rake
|
2
|
-
|
3
|
-
# module Slack
|
4
|
-
# module RealTime
|
5
|
-
# module EventHandlers
|
6
|
-
# module FileChange
|
7
|
-
# # A file was changed.
|
8
|
-
# # @see https://api.slack.com/events/file_change
|
9
|
-
# # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_change.json
|
10
|
-
# def self.call(_client, _data)
|
11
|
-
# # TODO
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
# end
|
15
|
-
# end
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# Slack::RealTime::Client.events['file_change'] = Slack::RealTime::EventHandlers::FileChange
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was auto-generated by lib/tasks/real_time.rake
|
2
|
-
|
3
|
-
# module Slack
|
4
|
-
# module RealTime
|
5
|
-
# module EventHandlers
|
6
|
-
# module FileCommentAdded
|
7
|
-
# # A file comment was added.
|
8
|
-
# # @see https://api.slack.com/events/file_comment_added
|
9
|
-
# # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_comment_added.json
|
10
|
-
# def self.call(_client, _data)
|
11
|
-
# # TODO
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
# end
|
15
|
-
# end
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# Slack::RealTime::Client.events['file_comment_added'] = Slack::RealTime::EventHandlers::FileCommentAdded
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was auto-generated by lib/tasks/real_time.rake
|
2
|
-
|
3
|
-
# module Slack
|
4
|
-
# module RealTime
|
5
|
-
# module EventHandlers
|
6
|
-
# module FileCommentDeleted
|
7
|
-
# # A file comment was deleted.
|
8
|
-
# # @see https://api.slack.com/events/file_comment_deleted
|
9
|
-
# # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_comment_deleted.json
|
10
|
-
# def self.call(_client, _data)
|
11
|
-
# # TODO
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
# end
|
15
|
-
# end
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# Slack::RealTime::Client.events['file_comment_deleted'] = Slack::RealTime::EventHandlers::FileCommentDeleted
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was auto-generated by lib/tasks/real_time.rake
|
2
|
-
|
3
|
-
# module Slack
|
4
|
-
# module RealTime
|
5
|
-
# module EventHandlers
|
6
|
-
# module FileCommentEdited
|
7
|
-
# # A file comment was edited.
|
8
|
-
# # @see https://api.slack.com/events/file_comment_edited
|
9
|
-
# # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_comment_edited.json
|
10
|
-
# def self.call(_client, _data)
|
11
|
-
# # TODO
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
# end
|
15
|
-
# end
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# Slack::RealTime::Client.events['file_comment_edited'] = Slack::RealTime::EventHandlers::FileCommentEdited
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was auto-generated by lib/tasks/real_time.rake
|
2
|
-
|
3
|
-
# module Slack
|
4
|
-
# module RealTime
|
5
|
-
# module EventHandlers
|
6
|
-
# module FileCreated
|
7
|
-
# # A file was created.
|
8
|
-
# # @see https://api.slack.com/events/file_created
|
9
|
-
# # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_created.json
|
10
|
-
# def self.call(_client, _data)
|
11
|
-
# # TODO
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
# end
|
15
|
-
# end
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# Slack::RealTime::Client.events['file_created'] = Slack::RealTime::EventHandlers::FileCreated
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was auto-generated by lib/tasks/real_time.rake
|
2
|
-
|
3
|
-
# module Slack
|
4
|
-
# module RealTime
|
5
|
-
# module EventHandlers
|
6
|
-
# module FileDeleted
|
7
|
-
# # A file was deleted.
|
8
|
-
# # @see https://api.slack.com/events/file_deleted
|
9
|
-
# # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_deleted.json
|
10
|
-
# def self.call(_client, _data)
|
11
|
-
# # TODO
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
# end
|
15
|
-
# end
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# Slack::RealTime::Client.events['file_deleted'] = Slack::RealTime::EventHandlers::FileDeleted
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was auto-generated by lib/tasks/real_time.rake
|
2
|
-
|
3
|
-
# module Slack
|
4
|
-
# module RealTime
|
5
|
-
# module EventHandlers
|
6
|
-
# module FilePrivate
|
7
|
-
# # A file was made private.
|
8
|
-
# # @see https://api.slack.com/events/file_private
|
9
|
-
# # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_private.json
|
10
|
-
# def self.call(_client, _data)
|
11
|
-
# # TODO
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
# end
|
15
|
-
# end
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# Slack::RealTime::Client.events['file_private'] = Slack::RealTime::EventHandlers::FilePrivate
|