slack-ruby-client 0.7.5 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ab20727bd044312d8d72e75e0446f5eeaaa8c4e
4
- data.tar.gz: 327b7d49adb97983d7af8a2e6ce15d1652af8a83
3
+ metadata.gz: 8b74c784c4085e18dfd0c6619ccd33d7b292e7b0
4
+ data.tar.gz: 6d149b4b282b2e67f9ec42371efe738041da9d97
5
5
  SHA512:
6
- metadata.gz: 27b9213982435f94b5b5688a592f9d6cd9d826766b960c31136c82394fd4af69d7f2ad31864d6de0073132ad3f3f2d6fbbbe5a404a7f94315854911172564f8c
7
- data.tar.gz: 006f4ca17f893d53f989aaf6e9a739a45e3d505dec9e986fc838d4aa4a6b65e772611fa4a1ef0ef98d0752277c8fd4e2db9a60846b022f399cb89a2508f84de5
6
+ metadata.gz: a038220c39f84af09a2f1e57b1baa0a9d85843862a1be097233d0fc01eb2900cc1abfff8a3a5a85f27046b6af87129d494727ec658d128d5d71a86c79498cbbc
7
+ data.tar.gz: c4d2837ab721dc74460040a511216f07d962a3dbb56111415a4015734c4eb71ed11c54157d26af2bd69d86a802a3baebc60a5aee8700c95e69a130fad2eb885e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.7.6 (8/7/2016)
2
+
3
+ * Added `url_verification`, `message.mpim`, `message.im`, `message.groups` and `message.channels` RealTime events - [@dblock](https://github.com/dblock).
4
+ * The `im_open` method accepts `return_im` - [@dblock](https://github.com/dblock).
5
+
1
6
  ### 0.7.5 (6/27/2016)
2
7
 
3
8
  * Added `bots_info` to Web API - [@dblock](https://github.com/dblock).
data/README.md CHANGED
@@ -18,7 +18,7 @@ A Ruby client for the Slack [Web](https://api.slack.com/web) and [RealTime Messa
18
18
 
19
19
  ## Stable Release
20
20
 
21
- You're reading the documentation for the **next** release of slack-ruby-client. Please see the documentation for the [last stable release, v0.7.4](https://github.com/dblock/slack-ruby-client/blob/v0.7.4/README.md) unless you're integrating with HEAD. See [UPGRADING](UPGRADING.md) when upgrading from an older version.
21
+ You're reading the documentation for the **stable** release of slack-ruby-client. See [UPGRADING](UPGRADING.md) when upgrading from an older version.
22
22
 
23
23
  ## Installation
24
24
 
data/bin/commands/dnd.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # This file was auto-generated by lib/tasks/web.rake
2
2
 
3
- desc 'Adjust and view Do Not Disturb settings for team members'
3
+ desc 'Adjust and view Do Not Disturb settings for team members.'
4
4
  command 'dnd' do |g|
5
5
  g.desc "Ends the user's currently scheduled Do Not Disturb session immediately."
6
6
  g.long_desc %( Ends the user's currently scheduled Do Not Disturb session immediately. )
data/bin/commands/im.rb CHANGED
@@ -46,6 +46,7 @@ command 'im' do |g|
46
46
  g.long_desc %( This method opens a direct message channel with another member of your Slack team. )
47
47
  g.command 'open' do |c|
48
48
  c.flag 'user', desc: 'User to open a direct message channel with.'
49
+ c.flag 'return_im', desc: 'Boolean, indicates you want the full IM channel definition in the response.'
49
50
  c.action do |_global_options, options, _args|
50
51
  puts JSON.dump($client.im_open(options))
51
52
  end
@@ -2,8 +2,8 @@
2
2
 
3
3
  desc "Search your team's files and messages."
4
4
  command 'search' do |g|
5
- g.desc 'This method allows to to search both messages and files in a single call.'
6
- g.long_desc %( This method allows to to search both messages and files in a single call. )
5
+ g.desc 'This method allows users and applications to search both messages and files in a single call.'
6
+ g.long_desc %( This method allows users and applications to search both messages and files in a single call. )
7
7
  g.command 'all' do |c|
8
8
  c.flag 'query', desc: 'Search query. May contains booleans, etc.'
9
9
  c.flag 'sort', desc: 'Return matches sorted by either score or timestamp.'
@@ -14,6 +14,31 @@ module Slack
14
14
 
15
15
  ### RealTime Events
16
16
 
17
+ # Verifies ownership of an Events API Request URL.
18
+ # @see https://api.slack.com/events/url_verification
19
+ # @see https://github.com/dblock/slack-api-ref/blob/master/events/url_verification.json
20
+ # on :url_verification do |data|
21
+
22
+ # A message was posted in a multiparty direct message channel.
23
+ # @see https://api.slack.com/events/message.mpim
24
+ # @see https://github.com/dblock/slack-api-ref/blob/master/events/message.mpim.json
25
+ # on :message.mpim do |data|
26
+
27
+ # A message was posted in a direct message channel.
28
+ # @see https://api.slack.com/events/message.im
29
+ # @see https://github.com/dblock/slack-api-ref/blob/master/events/message.im.json
30
+ # on :message.im do |data|
31
+
32
+ # A message was posted to a private channel.
33
+ # @see https://api.slack.com/events/message.groups
34
+ # @see https://github.com/dblock/slack-api-ref/blob/master/events/message.groups.json
35
+ # on :message.groups do |data|
36
+
37
+ # A message was posted to a channel.
38
+ # @see https://api.slack.com/events/message.channels
39
+ # @see https://github.com/dblock/slack-api-ref/blob/master/events/message.channels.json
40
+ # on :message.channels do |data|
41
+
17
42
  # A channel member is typing a message.
18
43
  # @see https://api.slack.com/events/user_typing
19
44
  # @see https://github.com/dblock/slack-api-ref/blob/master/events/user_typing.json
@@ -54,6 +54,31 @@ module Slack
54
54
 
55
55
  ### RealTime Events
56
56
 
57
+ # Verifies ownership of an Events API Request URL.
58
+ # @see https://api.slack.com/events/url_verification
59
+ # @see https://github.com/dblock/slack-api-ref/blob/master/events/url_verification.json
60
+ # on :url_verification do |data|
61
+
62
+ # A message was posted in a multiparty direct message channel.
63
+ # @see https://api.slack.com/events/message.mpim
64
+ # @see https://github.com/dblock/slack-api-ref/blob/master/events/message.mpim.json
65
+ # on :message.mpim do |data|
66
+
67
+ # A message was posted in a direct message channel.
68
+ # @see https://api.slack.com/events/message.im
69
+ # @see https://github.com/dblock/slack-api-ref/blob/master/events/message.im.json
70
+ # on :message.im do |data|
71
+
72
+ # A message was posted to a private channel.
73
+ # @see https://api.slack.com/events/message.groups
74
+ # @see https://github.com/dblock/slack-api-ref/blob/master/events/message.groups.json
75
+ # on :message.groups do |data|
76
+
77
+ # A message was posted to a channel.
78
+ # @see https://api.slack.com/events/message.channels
79
+ # @see https://github.com/dblock/slack-api-ref/blob/master/events/message.channels.json
80
+ # on :message.channels do |data|
81
+
57
82
  # A direct message read marker was updated.
58
83
  # @see https://api.slack.com/events/im_marked
59
84
  # @see https://github.com/dblock/slack-api-ref/blob/master/events/im_marked.json
data/lib/slack/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Slack
2
- VERSION = '0.7.5'.freeze
2
+ VERSION = '0.7.6'.freeze
3
3
  end
@@ -71,6 +71,8 @@ module Slack
71
71
  #
72
72
  # @option options [user] :user
73
73
  # User to open a direct message channel with.
74
+ # @option options [Object] :return_im
75
+ # Boolean, indicates you want the full IM channel definition in the response.
74
76
  # @see https://api.slack.com/methods/im.open
75
77
  # @see https://github.com/dblock/slack-api-ref/blob/master/methods/im/im.open.json
76
78
  def im_open(options = {})
@@ -6,7 +6,7 @@ module Slack
6
6
  module Endpoints
7
7
  module Search
8
8
  #
9
- # This method allows to to search both messages and files in a single call.
9
+ # This method allows users and applications to search both messages and files in a single call.
10
10
  #
11
11
  # @option options [Object] :query
12
12
  # Search query. May contains booleans, etc.
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.5
4
+ version: 0.7.6
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-06-27 00:00:00.000000000 Z
11
+ date: 2016-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -447,7 +447,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
447
447
  version: 1.3.6
448
448
  requirements: []
449
449
  rubyforge_project:
450
- rubygems_version: 2.4.8
450
+ rubygems_version: 2.5.1
451
451
  signing_key:
452
452
  specification_version: 4
453
453
  summary: Slack Web and RealTime API client.