article-spinner 0.0.2 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/spinner.rb +43 -0
  3. metadata +2 -2
  4. data/spinner.rb +0 -26
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c71f6565cb73dec02664827f37bff591f45b03c65bc5442db83a366ee68790a8
4
- data.tar.gz: ab8291146af0c7e06862c6d855967e9ac6589a2765de998cf31c21763118251b
3
+ metadata.gz: 6215354a52162af77593cb30a5f2607146de85b86a538680fd94b533bad921f7
4
+ data.tar.gz: a7924c6936bd2c095744df84cc5a3bb361dd1169a7feed208a03e58648483499
5
5
  SHA512:
6
- metadata.gz: 04cb27172e133308add69e73ed3bbe09190d16e9a41c9e50b4a361a14eae027cea00ccf4bcd326ecba107737c8301cf4024cc9d497162bc294d0c51addb98168
7
- data.tar.gz: 015c6448ef2fccd31a31c0e3bd835ee8900ed8110f9351fe71f3762f42236cbefb01a8cb92897da2c00704d1db9b1cbdcfa2481830ea647ef99876a48ed497a1
6
+ metadata.gz: ca83f1b9d2fa8314f30aeb1e7bcc8902da5894dc7b37d9c5db533e00ebc7b2f487cbf65cc36d2f6e6efe197fb7058214710d13b27876b54dc3ce7addfbdedbe9
7
+ data.tar.gz: 4bb0378f165b4dd2993f921f295782849dc72db7f2c3526a04e1d5561f7f4df93ad830f441fca405bcf2b9f0471da300d831b8b0effc21b7e03fd12490ea93ca
data/lib/spinner.rb ADDED
@@ -0,0 +1,43 @@
1
+ class Spinner
2
+
3
+ def spin_synonyms (article)
4
+ lines = IO.readlines("mthesaur.txt")
5
+
6
+ lines.each do |line|
7
+ words = line.split(',')
8
+ words.each do |word|
9
+
10
+ article.sub(word, words.sample)
11
+
12
+ end
13
+
14
+ end
15
+
16
+ return article
17
+ end
18
+
19
+
20
+
21
+ def scan_synonyms (article)
22
+ lines = IO.readlines("mthesaur.txt")
23
+
24
+ lines.each do |line|
25
+ words = line.split(',')
26
+ words.each do |word|
27
+ puts word
28
+ article.sub(word, words.sample)
29
+
30
+ end
31
+
32
+
33
+
34
+ return article
35
+ end
36
+ end
37
+
38
+
39
+
40
+
41
+
42
+
43
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: article-spinner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Asbestosstar, mthesaur contributors
@@ -16,7 +16,7 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
- - spinner.rb
19
+ - lib/spinner.rb
20
20
  homepage: https://rubygems.org/gems/hola
21
21
  licenses:
22
22
  - article-spinner
data/spinner.rb DELETED
@@ -1,26 +0,0 @@
1
- class Spinner
2
-
3
- def spin_synonyms (article)
4
- lines = IO.readlines("mthesaur.txt")
5
-
6
- line.each do |line|
7
- words = line.split(',')
8
- words.each do |word|
9
-
10
- article.sub(word, words.sample)
11
-
12
- end
13
-
14
- end
15
-
16
- return article
17
- end
18
-
19
-
20
-
21
- #def scan_synonyms (article)
22
- #end
23
-
24
-
25
-
26
- end