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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c3c10d222904e832e65f438c4ec1b49cb7e0bf6
4
- data.tar.gz: 0f2dbbf7e28c4fe1088d7c6c49a97deb3473cdc4
3
+ metadata.gz: eea5f44f912dffff6d9d3eaf952e2bd146a45c5f
4
+ data.tar.gz: ef707692c0dd9713702405bb4351fff4c6dee4f8
5
5
  SHA512:
6
- metadata.gz: 59339cb7191d1d555f19d8cd2034dc298686b7fdf1245e86c4561825cdd050a4ff9dca2d38263bb9cc6ae70fccf7d2e554ee8cb0cb7cbea98be912eb6aa535e8
7
- data.tar.gz: b04f4095c1925d15f052a0acba540a0130060cbf76f9fc9beec2d3346d783978a32b38f4c904a4eeb8fd07105329685e31ff37e4fdd8c74d1a1a41fbe9153922
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-slack-karma-sync"
3
- spec.version = "0.2.0"
3
+ spec.version = "0.2.1"
4
4
  spec.authors = ["Steven Harman"]
5
5
  spec.email = ["steven@harmanly.com"]
6
6
  spec.description = "Sync Slack user names with your lita-karma"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-slack-karma-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Harman