Skip to content

Commit ffa170b

Browse files
authored
Merge pull request #264 from dblock/update-api
rake slack:api:update
2 parents c46c5d4 + 6c1bf4f commit ffa170b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+605
-530
lines changed

.rubocop_todo.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2019-04-07 11:03:29 -0400 using RuboCop version 0.61.1.
3+
# on 2019-04-09 22:16:03 -0500 using RuboCop version 0.61.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -20,12 +20,15 @@ Lint/HandleExceptions:
2020
- 'spec/slack/real_time/concurrency/celluloid_spec.rb'
2121
- 'spec/slack/real_time/concurrency/eventmachine_spec.rb'
2222

23-
# Offense count: 1
23+
# Offense count: 4
2424
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
2525
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
2626
Naming/FileName:
2727
Exclude:
28+
- 'bin/commands/chat_scheduledMessages.rb'
2829
- 'lib/slack-ruby-client.rb'
30+
- 'lib/slack/web/api/endpoints/chat_scheduledMessages.rb'
31+
- 'spec/slack/web/api/endpoints/chat_scheduledMessages_spec.rb'
2932

3033
# Offense count: 1
3134
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
@@ -47,7 +50,7 @@ Style/AccessModifierDeclarations:
4750
- 'lib/slack/real_time/concurrency/eventmachine.rb'
4851
- 'lib/slack/real_time/socket.rb'
4952

50-
# Offense count: 153
53+
# Offense count: 154
5154
# Configuration parameters: AllowedVariables.
5255
Style/GlobalVars:
5356
Enabled: false

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
* [#256](https://github.com/slack-ruby/slack-ruby-client/pull/256): Added support for specifying signing secrets on a per-request basis via optional parameters to the `Slack::Events::Request` constructor - [@gabrielmdeal](https://github.com/gabrielmdeal).
44
* [#257](https://github.com/slack-ruby/slack-ruby-client/pull/257), [#262](https://github.com/slack-ruby/slack-ruby-client/pull/262): Fixed occasional failures to reconnect - [@ioquatix](https://github.com/ioquatix), [@dblock](https://github.com/dblock).
5+
* [#264](https://github.com/slack-ruby/slack-ruby-client/pull/264): Added `chat_scheduleMessage`, `chat_deleteScheduledMessage` and `chat_scheduledMessages_list` - [@dblock](https://github.com/dblock).
6+
* [#264](https://github.com/slack-ruby/slack-ruby-client/pull/264): Removed `files_comments_add` and `files_comments_edit` - [@dblock](https://github.com/dblock).
57
* Your contribution here.
68

79
### 0.14.1 (2019/2/26)

bin/commands.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
require 'commands/bots'
1111
require 'commands/channels'
1212
require 'commands/chat'
13+
require 'commands/chat_scheduledMessages'
1314
require 'commands/conversations'
1415
require 'commands/dialog'
1516
require 'commands/dnd'

bin/commands/api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
desc 'Api methods.'
44
command 'api' do |g|
5-
g.desc 'Checks API calling code.'
6-
g.long_desc %( Checks API calling code. )
5+
g.desc 'This method helps you test your calling code.'
6+
g.long_desc %( This method helps you test your calling code. )
77
g.command 'test' do |c|
88
c.flag 'error', desc: 'Error response to return.'
99
c.flag 'foo', desc: 'example property to return.'

bin/commands/apps.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
desc 'Apps methods.'
44
command 'apps' do |g|
5-
g.desc 'Uninstalls your app from a workspace.'
6-
g.long_desc %( Uninstalls your app from a workspace. )
5+
g.desc 'This method uninstalls a workspace app. Unlike auth.revoke, which revokes a single token, this method revokes all tokens associated with a single installation of a workspace app.'
6+
g.long_desc %( This method uninstalls a workspace app. Unlike auth.revoke, which revokes a single token, this method revokes all tokens associated with a single installation of a workspace app. )
77
g.command 'uninstall' do |c|
88
c.flag 'client_id', desc: 'Issued when you created your application.'
99
c.flag 'client_secret', desc: 'Issued when you created your application.'

bin/commands/apps_permissions.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
desc 'AppsPermissions methods.'
44
command 'apps_permissions' do |g|
5-
g.desc 'Returns list of permissions this app has on a team.'
6-
g.long_desc %( Returns list of permissions this app has on a team. )
5+
g.desc 'This feature was exclusive to our workspace apps developer preview. The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months.'
6+
g.long_desc %( This feature was exclusive to our workspace apps developer preview. The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months. )
77
g.command 'info' do |c|
88
c.action do |_global_options, options, _args|
99
puts JSON.dump($client.apps_permissions_info(options))
1010
end
1111
end
1212

13-
g.desc 'Allows an app to request additional scopes'
14-
g.long_desc %( Allows an app to request additional scopes )
13+
g.desc 'This feature was exclusive to our workspace apps developer preview. The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months.'
14+
g.long_desc %( This feature was exclusive to our workspace apps developer preview. The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months. )
1515
g.command 'request' do |c|
1616
c.flag 'scopes', desc: 'A comma separated list of scopes to request for.'
1717
c.flag 'trigger_id', desc: 'Token used to trigger the permissions API.'

bin/commands/apps_permissions_resources.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
desc 'AppsPermissionsResources methods.'
44
command 'apps_permissions_resources' do |g|
5-
g.desc 'Returns list of resource grants this app has on a team.'
6-
g.long_desc %( Returns list of resource grants this app has on a team. )
5+
g.desc 'This feature was exclusive to our workspace apps developer preview. The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months.'
6+
g.long_desc %( This feature was exclusive to our workspace apps developer preview. The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months. )
77
g.command 'list' do |c|
88
c.flag 'cursor', desc: "Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first 'page' of the collection. See pagination for more detail."
99
c.flag 'limit', desc: 'The maximum number of items to return.'

bin/commands/apps_permissions_scopes.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
desc 'AppsPermissionsScopes methods.'
44
command 'apps_permissions_scopes' do |g|
5-
g.desc 'Returns list of scopes this app has on a team.'
6-
g.long_desc %( Returns list of scopes this app has on a team. )
5+
g.desc 'This feature was exclusive to our workspace apps developer preview. The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months.'
6+
g.long_desc %( This feature was exclusive to our workspace apps developer preview. The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months. )
77
g.command 'list' do |c|
88
c.action do |_global_options, options, _args|
99
puts JSON.dump($client.apps_permissions_scopes_list(options))

bin/commands/apps_permissions_users.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
desc 'AppsPermissionsUsers methods.'
44
command 'apps_permissions_users' do |g|
5-
g.desc 'Returns list of user grants and corresponding scopes this app has on a team.'
6-
g.long_desc %( Returns list of user grants and corresponding scopes this app has on a team. )
5+
g.desc 'This feature was exclusive to our workspace apps developer preview. The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months.'
6+
g.long_desc %( This feature was exclusive to our workspace apps developer preview. The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months. )
77
g.command 'list' do |c|
88
c.flag 'cursor', desc: "Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first 'page' of the collection. See pagination for more detail."
99
c.flag 'limit', desc: 'The maximum number of items to return.'
@@ -12,8 +12,8 @@
1212
end
1313
end
1414

15-
g.desc 'Enables an app to trigger a permissions modal to grant an app access to a user access scope.'
16-
g.long_desc %( Enables an app to trigger a permissions modal to grant an app access to a user access scope. )
15+
g.desc 'This feature was exclusive to our workspace apps developer preview. The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months.'
16+
g.long_desc %( This feature was exclusive to our workspace apps developer preview. The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months. )
1717
g.command 'request' do |c|
1818
c.flag 'scopes', desc: 'A comma separated list of user scopes to request for.'
1919
c.flag 'trigger_id', desc: 'Token used to trigger the request.'

bin/commands/auth.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
desc 'Auth methods.'
44
command 'auth' do |g|
5-
g.desc 'Revokes a token.'
6-
g.long_desc %( Revokes a token. )
5+
g.desc 'This method revokes an access token. Use it when you no longer need a token. For example, with a Sign In With Slack app, call this to log a user out.'
6+
g.long_desc %( This method revokes an access token. Use it when you no longer need a token. For example, with a Sign In With Slack app, call this to log a user out. )
77
g.command 'revoke' do |c|
88
c.flag 'test', desc: 'Setting this parameter to 1 triggers a testing mode where the specified token will not actually be revoked.'
99
c.action do |_global_options, options, _args|
1010
puts JSON.dump($client.auth_revoke(options))
1111
end
1212
end
1313

14-
g.desc 'Checks authentication & identity.'
15-
g.long_desc %( Checks authentication & identity. )
14+
g.desc 'This method checks authentication and tells "you" who you are, even if you might be a bot.'
15+
g.long_desc %( This method checks authentication and tells "you" who you are, even if you might be a bot. )
1616
g.command 'test' do |c|
1717
c.action do |_global_options, options, _args|
1818
puts JSON.dump($client.auth_test(options))

0 commit comments

Comments
 (0)