linguine 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/linguine.rb +2 -2
- data/linguine.gemspec +1 -1
- metadata +1 -1
data/lib/linguine.rb
CHANGED
@@ -34,7 +34,7 @@ class Linguine
|
|
34
34
|
private
|
35
35
|
|
36
36
|
def read_common_words
|
37
|
-
File.open('config/common_words_en.txt', 'r') do |f|
|
37
|
+
File.open(IO.read('config/common_words_en.txt'), 'r') do |f|
|
38
38
|
while line = f.gets
|
39
39
|
@@common_words << line.gsub("\n", '')
|
40
40
|
end
|
@@ -42,7 +42,7 @@ class Linguine
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def read_swear_words
|
45
|
-
File.open('config/swear_words_en.txt', 'r') do |f|
|
45
|
+
File.open(IO.read('config/swear_words_en.txt'), 'r') do |f|
|
46
46
|
while line = f.gets
|
47
47
|
@@swear_words << line.gsub("\n", '')
|
48
48
|
end
|
data/linguine.gemspec
CHANGED