ruboty-qiita_anti_spam 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruboty/handlers/qiita_anti_spam.rb +1 -1
- data/lib/ruboty/qiita_anti_spam/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75f85d54e8f19b0ed218580546f474d2bece87cf
|
4
|
+
data.tar.gz: eb126dfc939bac1c946f92f681751373e60b4455
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15d4528b727219ecdb28f26b02d2a7fc76a947a626ac6626d6cdc2bfc8767c6439addb4d2518bdbf1ec8d8cefe0da80f11ee864949a95f9a4d8f6b548ccade4c
|
7
|
+
data.tar.gz: 5f41074b7bae07b1af0f310733188e58578c640b8cfbf009021298c79429425b72243783c7bc408811262b93492c42af2410303c41e71f85df6be3e64a501974
|
@@ -82,7 +82,7 @@ module Ruboty
|
|
82
82
|
# @param user_id [String]
|
83
83
|
# @return [Integer, nil]
|
84
84
|
def get_permanent_user_id(user_id)
|
85
|
-
qiita_client.get_user(user_id).body["permanent_id"]
|
85
|
+
Integer(qiita_client.get_user(user_id).body["permanent_id"]) rescue nil
|
86
86
|
end
|
87
87
|
|
88
88
|
def akismet_client
|