twitter_ebooks 3.0.7 → 3.0.8

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: 47bafb2a17dfcb9baee37d68eb43c063cad66da6
4
- data.tar.gz: 2fa6c381e4023bd7069d64120cc9330e225fe7bd
3
+ metadata.gz: 76bdf6be758e91a56b4859679ea87f82bc77ff8a
4
+ data.tar.gz: e6a7cce43c71851d55ab214a01c0ce30afe0b45d
5
5
  SHA512:
6
- metadata.gz: 00827d01c020a6d68c086c6624f9388a3e3b91fb16e5da5964cc78356f16fa3bd1cce4001309b8bdf4456d905776b68df30a0304f2b0e59b83448bb25ecda0c1
7
- data.tar.gz: 3e8a2c6b49ab16f031cee42a86a8b8b32c0f566ed76f4cdab5c273cf7d72685f3cd5b0129c6f5904f43d03f09e6500a254cbf76930e1d1b112e4f0eb8c315d79
6
+ metadata.gz: ed2d13e08bb0dbd4bb54b15f5c3d0d9037031300a54b251479e065f69c0850df819a64edc97b151bc967d3839cb9ac6337bf1a96440709f4c18ffbe0707b9fbc
7
+ data.tar.gz: dc979c49978d6d9e9fe474882c4c0bb8b2747658e7bb5f164df8051987281a1496ab14eb32d4c73f200df21f241acbed8cf0df4771e4d41666d851f359589e5c
data/bin/ebooks CHANGED
@@ -23,7 +23,7 @@ Usage:
23
23
  ebooks c[onsole]
24
24
  ebooks auth
25
25
  ebooks consume <corpus_path> [corpus_path2] [...]
26
- ebooks consume-all <corpus_path> [corpus_path2] [...]
26
+ ebooks consume-all <model_name> <corpus_path> [corpus_path2] [...]
27
27
  ebooks gen <model_path> [input]
28
28
  ebooks archive <username> [path]
29
29
  ebooks tweet <model_path> <botname>
@@ -77,7 +77,7 @@ STR
77
77
  Usage: ebooks consume <corpus_path> [corpus_path2] [...]
78
78
 
79
79
  Processes some number of text files or json tweet corpuses
80
- into usable models. These will be output at model/<name>.model
80
+ into usable models. These will be output at model/<corpus_name>.model
81
81
  STR
82
82
 
83
83
  def self.consume(pathes)
@@ -97,10 +97,10 @@ STR
97
97
  end
98
98
 
99
99
  HELP.consume_all = <<-STR
100
- Usage: ebooks consume-all <name> <corpus_path> [corpus_path2] [...]
100
+ Usage: ebooks consume-all <model_name> <corpus_path> [corpus_path2] [...]
101
101
 
102
102
  Processes some number of text files or json tweet corpuses
103
- into one usable model. It will be output at model/<name>.model
103
+ into one usable model. It will be output at model/<model_name>.model
104
104
  STR
105
105
 
106
106
  def self.consume_all(name, paths)
@@ -389,7 +389,7 @@ module Ebooks
389
389
  return false
390
390
  end
391
391
 
392
- text = meta.reply_prefix + text unless text.match /@#{Regexp.escape ev.user.screen_name}/i
392
+ text = meta.reply_prefix + text unless text.match(/@#{Regexp.escape ev.user.screen_name}/i)
393
393
  log "Replying to @#{ev.user.screen_name} with: #{text}"
394
394
  tweet = twitter.update(text, opts.merge(in_reply_to_status_id: ev.id))
395
395
  conversation(tweet).add(tweet)
@@ -1,3 +1,3 @@
1
1
  module Ebooks
2
- VERSION = "3.0.7"
2
+ VERSION = "3.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter_ebooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.7
4
+ version: 3.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaiden Mispy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-16 00:00:00.000000000 Z
11
+ date: 2015-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -289,4 +289,3 @@ test_files:
289
289
  - spec/memprof.rb
290
290
  - spec/model_spec.rb
291
291
  - spec/spec_helper.rb
292
- has_rdoc: