slacks 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/slacks/connection.rb +6 -6
- data/lib/slacks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4655b64b95738df424e627dd671d219ee46c55e3
|
4
|
+
data.tar.gz: d5f1d21638a975aeb802d17a2b00d814b14579f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5742d45eb577916616ddba1bbe6b2b231ddb501a0795320aa4de58049a037f2f3b16101f4199093c068c4deebcb970f732a752ed050a2213926b422b3eaf5804
|
7
|
+
data.tar.gz: a1df56de686279475cb65b2fb7b14afe49afe01b407f654eeafa48f3efb109c928d55289ce0e0aacab4e030590ea8241eab1d48d8bc950719704fe1a847ecdc2
|
data/lib/slacks/connection.rb
CHANGED
@@ -173,20 +173,20 @@ module Slacks
|
|
173
173
|
"is_im" => true,
|
174
174
|
"name" => user.username }
|
175
175
|
when /^G/
|
176
|
-
Slacks::Channel.new
|
176
|
+
Slacks::Channel.new(self, groups_by_id.fetch(id) do
|
177
177
|
raise ArgumentError, "Unable to find a group with the ID #{id.inspect}"
|
178
|
-
end
|
178
|
+
end)
|
179
179
|
else
|
180
|
-
Slacks::Channel.new
|
180
|
+
Slacks::Channel.new(self, channels_by_id.fetch(id) do
|
181
181
|
raise ArgumentError, "Unable to find a channel with the ID #{id.inspect}"
|
182
|
-
end
|
182
|
+
end)
|
183
183
|
end
|
184
184
|
end
|
185
185
|
|
186
186
|
def find_user(id)
|
187
|
-
Slacks::User.new
|
187
|
+
Slacks::User.new(self, users_by_id.fetch(id) do
|
188
188
|
raise ArgumentError, "Unable to find a user with the ID #{id.inspect}"
|
189
|
-
end
|
189
|
+
end)
|
190
190
|
end
|
191
191
|
|
192
192
|
def find_user_by_nickname(nickname)
|
data/lib/slacks/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slacks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Lail
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: websocket-driver
|