markov_twitter 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -12
- data/lib/version.rb +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: a92dc027eb247553cb9e5ecac2005a5a9df10973
|
4
|
+
data.tar.gz: bbe6d5bcf4603f5491b04b4f3145d96a9bc768e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29c8aefc2f60db2f4c506ec7ffe8205b898aa893252307f08f7d9319f9bf4b9335cac0fc68533135fdd6719534bade4f59ec248befa5e14541200784146f8363
|
7
|
+
data.tar.gz: 9d8b683d203cf4cb13d46c395a87f187bc2fa4ccb0012b75c52b99c2c004ef907912c19235128205dbcbb775c90df915044e98985c3280c6e77fa1691341a10d
|
data/README.md
CHANGED
@@ -81,8 +81,8 @@ Here are those three methods:
|
|
81
81
|
|
82
82
|
1. [evaluate](http://rubydoc.info/gems/markov_twitter/MarkovTwitter/MarkovBuilder:evaluate)
|
83
83
|
|
84
|
-
|
85
|
-
|
84
|
+
- traverses rightward along :next
|
85
|
+
- when starting or stuck, picks any random word
|
86
86
|
|
87
87
|
```rb
|
88
88
|
5.times.map { chain.evaluate length: 10 }
|
@@ -97,9 +97,9 @@ Here are those three methods:
|
|
97
97
|
|
98
98
|
2. [evaluate_favoring_end](http://rubydoc.info/gems/markov_twitter/MarkovTwitter/MarkovBuilder:evaluate_favoring_end)
|
99
99
|
|
100
|
-
|
101
|
-
|
102
|
-
|
100
|
+
- traverses leftward along :prev
|
101
|
+
- when starting or stuck, picks a word that was at the end of one of the original phrases.
|
102
|
+
- reverses the result before returning
|
103
103
|
|
104
104
|
```rb
|
105
105
|
5.times.map { chain.evaluate_favoring_end length: 10 }
|
@@ -114,8 +114,8 @@ Here are those three methods:
|
|
114
114
|
|
115
115
|
3. [evaluate_favoring_start](http://rubydoc.info/gems/markov_twitter/MarkovTwitter/MarkovBuilder:evaluate_favoring_start)
|
116
116
|
|
117
|
-
|
118
|
-
|
117
|
+
- traverses rightward along :next
|
118
|
+
- when starting or stuck, picks a word that was at the start of one of the original phrases.
|
119
119
|
|
120
120
|
```rb
|
121
121
|
5.times.map { chain.evaluate_favoring_start length: 10 }
|
@@ -197,7 +197,7 @@ Test scripts are in the [spec/](http://github.com/maxpleaner/markov_twitter/tree
|
|
197
197
|
|
198
198
|
The application code is in [lib/](http://github.com/maxpleaner/markov_twitter/tree/lib).
|
199
199
|
|
200
|
-
Documentation is built with [yard](https://github.com/lsegal/yard) into [doc/](http://github.com/maxpleaner/markov_twitter/tree/master/doc) - it's viewable [on rubydoc](http://rubydoc.info/gems/markov_twitter).
|
200
|
+
Documentation is built with [yard](https://github.com/lsegal/yard) into [doc/](http://github.com/maxpleaner/markov_twitter/tree/master/doc) - it's viewable [on rubydoc](http://rubydoc.info/gems/markov_twitter). It has 100% documentation at time of writing. If when building, it shows that something is undocumented, run `yard --list-undoc` to find out where it is.
|
201
201
|
|
202
202
|
## development: tests
|
203
203
|
|
@@ -217,10 +217,6 @@ By default, Webmock will prevent any real HTTP calls for the twitter-related tes
|
|
217
217
|
env DISABLE_WEBMOCK=true rspec
|
218
218
|
```
|
219
219
|
|
220
|
-
## development: building docs
|
221
|
-
|
222
|
-
Docs are built with `yard` from the command line. It has 100% documentation at time of writing. If when building, it shows that something is undocumented, run `yard --list-undoc` to find out where it is.
|
223
|
-
|
224
220
|
## development: todos
|
225
221
|
|
226
222
|
Things which would be interesting to add:
|
data/lib/version.rb
CHANGED