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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 899ea3cf061e0e9e60046fa630ecc85ac0c62d3c
4
- data.tar.gz: c9c47683d42548b71f6b9adcf17130786d0e7ae3
3
+ metadata.gz: 9c2bed6ab0bed5b885e19baf626242cdc70a7b57
4
+ data.tar.gz: b0e92d4d149ff726d58f91f9bf189e9a96cbf89e
5
5
  SHA512:
6
- metadata.gz: f52a9534465220eadd3b53cee38d98169f04640696deb168a4c7dcc549b3f19587c6d508046c950b99438894d962f527a8c4f8affbf36bdd8b58b92ecb4e4548
7
- data.tar.gz: ee9904cfdaef57ca3757407511e90763fac96173b0897973cd6616a21915b3a8a41da460f56fd9767c85e35f56069d4c77774a7afa1ac400be8274393470d31a
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 == 0
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-markov"
3
- spec.version = "1.1.1"
3
+ spec.version = "1.1.2"
4
4
  spec.authors = ["Dirk Gadsden"]
5
5
  spec.email = ["dirk@dirk.to"]
6
6
  spec.description = "Markov chains for Lita."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-markov
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dirk Gadsden