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 +4 -4
- data/bin/ebooks +4 -4
- data/lib/twitter_ebooks/bot.rb +1 -1
- data/lib/twitter_ebooks/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76bdf6be758e91a56b4859679ea87f82bc77ff8a
|
4
|
+
data.tar.gz: e6a7cce43c71851d55ab214a01c0ce30afe0b45d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/<
|
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 <
|
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/<
|
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)
|
data/lib/twitter_ebooks/bot.rb
CHANGED
@@ -389,7 +389,7 @@ module Ebooks
|
|
389
389
|
return false
|
390
390
|
end
|
391
391
|
|
392
|
-
text = meta.reply_prefix + text unless text.match
|
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)
|
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.
|
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-
|
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:
|