laziness 0.2.3 → 0.2.4

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
  SHA256:
3
- metadata.gz: 3e5f47b43a33ec76ea79d4bf1ee74bf12dbc824439f68e613cf895ef927dded2
4
- data.tar.gz: 4aa30a40a90ee4c53fe748045569735ed84374724931461796fa525ce925ef7b
3
+ metadata.gz: 4575bffe5cbe1205a7f1b3057d607983b68f5cf821d7d85b45c4e6ef336dc28a
4
+ data.tar.gz: a4e88867662053bbf3cf63741a85b9985107c3574a1328eeb8c594c7210f6aaa
5
5
  SHA512:
6
- metadata.gz: cbf4b2a54a26acc94253cbd2db621b049d552f1bd1527a935552709a299e559ff0eb5e626b905defe262d96740ae7bb0121f0ebedf07660097fd36f4c4be3cc8
7
- data.tar.gz: af2d1e8081374c862473fb875744879750f14161ccda02f9d3fa68d8c13e043b1a90af4211e95d564b8015c50187ab605e0bdd08f4aceb925896855f462e3212
6
+ metadata.gz: a7d62f72f2c7856fbb300bab0802dc19cc77c531691fca086b5c0cab67c50032003d388aa47658b67ae962fb0f400f2311f96c544ed2b8ef0b497fc2fd391221
7
+ data.tar.gz: 67b0f5bc0f81deda62afa7a06239db6fb90b512b5cc6efc991c73ab90dee5afebf83c317b2a6241c98382e8bd8ea6d3c044193abba4da688a62be7b107ce6b55
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- laziness (0.2.3)
4
+ laziness (0.2.4)
5
5
  eventmachine
6
6
  faye-websocket (>= 0.8.0)
7
7
  hashie
data/README.md CHANGED
@@ -69,6 +69,33 @@ message = client.chat.update("Hello again", channel_id, message.ts) # updates th
69
69
  client.chat.delete(channel_id, message.ts) # deletes the message with the specified timestamp
70
70
  ```
71
71
 
72
+ ### Conversations
73
+
74
+ ```
75
+ client.conversations.all # lists out all the channels
76
+ client.conversations.find(channel_id) # get info about a specific channel
77
+ client.conversations.archive(channel_id) # archives the specific channel
78
+ client.conversations.close(channel_id) # closes the specific channel
79
+ client.conversations.join(channel_id) # joins the specific channel
80
+ client.conversations.kick(channel_id, user) # removes the specific user from the specific channel
81
+ client.conversations.leave(channel_id) # removes the current user from the specific channel
82
+ client.conversations.members(channel_id) # returns all the members on a specific channel
83
+ client.conversations.open(users, channel_id) # opens the channel with the specific users
84
+ client.conversations.rename(channel_id, name) # renames the specific channel
85
+ client.conversations.set_purpose(channel_id, purpose) # sets the purpose on the specific channel
86
+ client.conversations.set_topic(channel_id, topic) # sets the topic on the specific channel
87
+ client.conversations.unarchive(channel_id) # unarchives the specific channel
88
+
89
+ channel = client.conversations.create("testing") # creates the new channel
90
+
91
+ client.conversations.invite(channel_id, users) # invites the specific users to the specific channel
92
+ ```
93
+
94
+ #### TODO:
95
+
96
+ - [ ] [conversations.history](https://api.slack.com/methods/conversations.history)
97
+ - [ ] [conversations.replies](https://api.slack.com/methods/conversations.replies)
98
+
72
99
  ### Emoji
73
100
 
74
101
  ### Files
@@ -63,7 +63,7 @@ module Slack
63
63
  'conversations.members',
64
64
  channel: id
65
65
 
66
- JSON.parse(response)["members"]
66
+ JSON.parse(response.body)["members"]
67
67
  end
68
68
 
69
69
  def open(users=[], id=nil, return_im: false)
@@ -1,3 +1,3 @@
1
1
  module Laziness
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: laziness
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Wright