lita-markov 1.1.1 → 1.1.2
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/markov/engine.rb +1 -1
- data/lita-markov.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: 9c2bed6ab0bed5b885e19baf626242cdc70a7b57
|
4
|
+
data.tar.gz: b0e92d4d149ff726d58f91f9bf189e9a96cbf89e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55cd5aaa1b42b657b52cdc765d56872c6fdf02b030060bfb17bf0e48068670db9ae72ec8629ef85cbce17d615bb69cf2c1fbdb19673e27d06ff275539b54f916
|
7
|
+
data.tar.gz: 146947b211fc0c85790a3bf27ece618ad2e6b37eb4eb37d54313678455cf9bc35fdf3b675c5525da26afc857049694051e8b2f78fbc0ed295ae4fc65ed41e86b
|
@@ -34,7 +34,7 @@ class Lita::Handlers::Markov
|
|
34
34
|
string = sanitize_string string
|
35
35
|
words = separate_string string
|
36
36
|
|
37
|
-
return if words.length
|
37
|
+
return if words.length < @depth
|
38
38
|
|
39
39
|
# Capitalize the first word and add a period at the end
|
40
40
|
words = [words[0].capitalize] + words.slice(1..-1) + ['.']
|
data/lita-markov.gemspec
CHANGED