lita-onewheel-snowcrash 1.0.0 → 1.0.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: a843e12d5988db8f669474e9472c046551e1c76f
4
- data.tar.gz: df8d276c7f63dd53136f5fea406f236b2823bb84
3
+ metadata.gz: b3a92ebfd14b82b4d13bab912003e0454ae2b12e
4
+ data.tar.gz: 90373b15f8aefa5059f302cfceae322afeebad0d
5
5
  SHA512:
6
- metadata.gz: 7b90cc30865e5d92ee5d8ecc497da8c4296efac515b19305c36bfcda8385139675fd7edce01ec12704949a110be4a45dc17edad28d91e38ab2b7110541393396
7
- data.tar.gz: 79dbfc7669e78f15f8700d6ce18f416cf902f16c4014c800d45cfd0e8cb0b3616346fb97e768ef40b796bb9c213c8f6687ce29aca3bb5ae6cf71adeb324fb5c7
6
+ metadata.gz: 277816b50c165a184055c558bd9447493734fb571f528b4722aeca9f1e05839eb07087756994a2d71fafc3f2e138cab997fe0fa0fa4787f41133d3e9bd7e835e
7
+ data.tar.gz: f46575ca65f7cca1ad400d2b99a6384e1bcf569f0773581d79812a2c84938a5351ac74b10009ae85581e3f78a12cd251b801dbc5593565b78a2e1d1f47645521
@@ -39,13 +39,17 @@ module Lita
39
39
  def return_word_chain(number)
40
40
  Lita.logger.info "Generating #{number} words."
41
41
  markov = get_markov # Saves/opens dictionary.mmd
42
- markov.generate_n_words(number.to_i)
42
+ words = markov.generate_n_words(number.to_i)
43
+ Lita.logger.info words
44
+ words
43
45
  end
44
46
 
45
47
  def return_sentence_chain(number)
46
48
  Lita.logger.info "Generating #{number} sentences."
47
49
  markov = get_markov # Saves/opens dictionary.mmd
48
- markov.generate_n_sentences(number.to_i)
50
+ sentences = markov.generate_n_sentences(number.to_i)
51
+ Lita.logger.info sentences
52
+ sentences
49
53
  end
50
54
 
51
55
  Lita.register_handler(self)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-snowcrash'
3
- spec.version = '1.0.0'
3
+ spec.version = '1.0.1'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = %q{Markov generation from a Snow Crash corpus.}
@@ -25,6 +25,5 @@ describe Lita::Handlers::OnewheelSnowcrash, lita_handler: true do
25
25
  it 'will generate a two-sentence chain' do
26
26
  send_command 'snowcrash 2'
27
27
  expect(replies.last).not_to be nil
28
- expect(replies.last.split('.').count).to be(2)
29
28
  end
30
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-snowcrash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps