slacks 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slacks/connection.rb +4 -2
- data/lib/slacks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3f9538fbc719ad833d0027f5d2edb32e5c7ee3d991cb3596bb5217e58f02ba6
|
4
|
+
data.tar.gz: 418e0f974c5728e735c560e020429041f0c0af437201721d9d98a423b5db790a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d47f55bf02c06928f9a3b7da4c1dd8968455550b9096db030945fb804cdaf9912f8b491e2782df45838b3a9ac6b82938a1edf7509e379ae8d7a7742150217f8
|
7
|
+
data.tar.gz: 46bc171a39e21778e9aeb1a2af25e081cc607178935cf4a8c130a5e19b777645e38199920b1b866d550f7d4ade5a316f6424dc0003a272eb2369e24c2cb50e87
|
data/lib/slacks/connection.rb
CHANGED
@@ -159,7 +159,8 @@ module Slacks
|
|
159
159
|
end
|
160
160
|
|
161
161
|
def can_see?(channel)
|
162
|
-
to_channel_id(channel)
|
162
|
+
channel_id = to_channel_id(channel)
|
163
|
+
channel_id && !channel_id.empty?
|
163
164
|
rescue ArgumentError
|
164
165
|
false
|
165
166
|
end
|
@@ -207,7 +208,8 @@ module Slacks
|
|
207
208
|
|
208
209
|
def user_exists?(username)
|
209
210
|
return false if username.nil?
|
210
|
-
to_user_id(username)
|
211
|
+
user_id = to_user_id(username)
|
212
|
+
user_id && !user_id.empty?
|
211
213
|
rescue ArgumentError
|
212
214
|
false
|
213
215
|
end
|
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.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Lail
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: websocket-driver
|