lita-slack-karma-sync 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/slack_karma_sync.rb +2 -0
- data/lita-slack-karma-sync.gemspec +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: eea5f44f912dffff6d9d3eaf952e2bd146a45c5f
|
4
|
+
data.tar.gz: ef707692c0dd9713702405bb4351fff4c6dee4f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edcfa670161523b177ec4d10fc75aebb856a0bc2a1d5e00bea9e7aaa97e3695b8884bdded1fb38928c17721e2eb1fc2dd50df269a3a1ce2a0d0951b9f3fe2540
|
7
|
+
data.tar.gz: eb69821988a940f5d3fe6917c6fb6bc2b6c4c8982c94de4c7ef5b87947d2902181273dc7490c879e952420948f79e234ea55fe44f6a70f6c14833bbbbbe44092
|
@@ -16,11 +16,13 @@ module Lita
|
|
16
16
|
|
17
17
|
def update_karma_terms(payload)
|
18
18
|
user_id = payload.fetch(:slack_user).id
|
19
|
+
log.debug("Slack user created: #{user_id}")
|
19
20
|
|
20
21
|
new_term = find_term(user_id)
|
21
22
|
existing_term = find_existing_term_for(user_id)
|
22
23
|
return if existing_term == new_term
|
23
24
|
|
25
|
+
log.debug("Updating Karma term for User: #{user_id}. #{existing_term.to_s} => #{new_term.to_s}")
|
24
26
|
copy_links(from: existing_term, to: new_term)
|
25
27
|
copy_karma(from: existing_term, to: new_term)
|
26
28
|
existing_term.delete
|