lita-words-counter 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: 9656a5acea13ffbcfce6a6415a56cb9147b0e16d
4
- data.tar.gz: 5e4d4166b95dd7c667e1e7b63343f79f4dfc0edc
3
+ metadata.gz: 18c1df48b5776642e7fe8266cf1d9eec60e38bdf
4
+ data.tar.gz: 07d5926d008d9fa42d9bfddff9cde7534c65bd8c
5
5
  SHA512:
6
- metadata.gz: c0b1fa780aada86c16436494b8459bf2025507633954b24375adce3ccb0cd1379e5a4af9d3d362af5db3132c5dab1671871e997e5c3c837eb0b8f658ef035fb4
7
- data.tar.gz: 87caf1dca2118025b235e0f0564a8079a936d810e1b3e48231b53f442c369afcd8e7bfd3e8d0a8c67709134bb93f759c2806f4b04318b3e5581cb6f686f8f3c1
6
+ metadata.gz: dc729290c943b0fbe461d4cde21db52357f0b7d442305520077614e57068dbf02fd5a034cba8b220662543f5c273d5a77f8ac4a144912c7afb170906d8ee4687
7
+ data.tar.gz: 44bfaecc4e3a00a67d1b45318d0a41125313b83535ebca1821fb83675d7227cc6a60a52bf1b7370f8b9055a9c38132bdcfd470636be108003b7e81613a52af07
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # lita-words-counter
1
+ # lita-words-counter [![Gem Version](https://badge.fury.io/rb/lita-words-counter.svg)](http://badge.fury.io/rb/lita-words-counter)
2
2
 
3
3
  TODO: Add a description of the plugin.
4
4
 
@@ -20,6 +20,9 @@ TODO: Describe any configuration attributes the plugin exposes.
20
20
  #### show how many words alex said
21
21
  `lita count alex`
22
22
 
23
+ #### show top n
24
+ `lita count top n`
25
+
23
26
  #### reset words count
24
27
  `lita recount`
25
28
 
@@ -11,6 +11,7 @@ module Lita
11
11
  route /^count\s+top\s+(\d+)/, :list_top, command: true
12
12
 
13
13
  def counter response
14
+ return if response.user.name.delete(' ') == ''
14
15
  redis.zincrby REDIS_SET_KEY, 1, user_key(response.user.name)
15
16
  end
16
17
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-words-counter"
3
- spec.version = "0.2.0"
3
+ spec.version = "0.2.1"
4
4
  spec.authors = ["Alex S"]
5
5
  spec.email = ["hlcfan.yan@gmail.com.com"]
6
6
  spec.description = 'count user words'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-words-counter
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
  - Alex S
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-24 00:00:00.000000000 Z
11
+ date: 2015-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita