politician_salad 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/barack_obama.rb +1 -1
- data/lib/base.rb +2 -1
- data/lib/donald_trump.rb +1 -1
- data/lib/hillary_clinton.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: a8ab1a20b665f80379a48fd658ab73fb640bdb44
|
4
|
+
data.tar.gz: 05946070d9257e1921cd6e20c3de0d7fe54f699c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b7044cd425902e860fa3bd70f3609305694c986e63733e0e87bb3fa709bd955b03523d6a79367cb1e79ecabf8f84492aa2545af59be7caf96595e2929be481d
|
7
|
+
data.tar.gz: d72668d3b651d0efb413992f0253415b034bbd6a410bb2428bf15caabb2a9b81b3c1336a33ed893e35f5e8b2f145ca52de8aa86a55cc221f6fdf14e00df5a7e8
|
data/lib/barack_obama.rb
CHANGED
data/lib/base.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'marky_markov'
|
2
|
+
require 'pry'
|
2
3
|
|
3
4
|
module PoliticianSalad
|
4
5
|
class Base
|
@@ -20,7 +21,7 @@ module PoliticianSalad
|
|
20
21
|
markov = MarkyMarkov::TemporaryDictionary.new
|
21
22
|
candidate_path = File.join(File.dirname(__FILE__), warehouse_path)
|
22
23
|
file = File.open(candidate_path)
|
23
|
-
markov.
|
24
|
+
markov.parse_file file
|
24
25
|
|
25
26
|
markov
|
26
27
|
end
|
data/lib/donald_trump.rb
CHANGED
data/lib/hillary_clinton.rb
CHANGED