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