linguine 0.0.6 → 0.0.7
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.
- data/Gemfile.lock +1 -1
- data/lib/linguine.rb +2 -2
- data/linguine.gemspec +2 -1
- metadata +1 -2
- data/linguine-0.0.4.gem +0 -0
data/Gemfile.lock
CHANGED
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(
|
|
37
|
+
File.open('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(
|
|
45
|
+
File.open('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
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
|
3
|
+
$:.push File.expand_path("../config", __FILE__)
|
|
3
4
|
|
|
4
5
|
Gem::Specification.new do |s|
|
|
5
6
|
s.name = "linguine"
|
|
6
|
-
s.version = '0.0.
|
|
7
|
+
s.version = '0.0.7'
|
|
7
8
|
s.platform = Gem::Platform::RUBY
|
|
8
9
|
s.authors = ["Daniel Owen van Dommelen"]
|
|
9
10
|
s.email = ["bunny.rabbit@igotish.com"]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: linguine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -25,7 +25,6 @@ files:
|
|
|
25
25
|
- config/swear_words_en.txt
|
|
26
26
|
- lib/linguine.rb
|
|
27
27
|
- lib/linguine/scores.rb
|
|
28
|
-
- linguine-0.0.4.gem
|
|
29
28
|
- linguine.gemspec
|
|
30
29
|
- spec/linguine_spec.rb
|
|
31
30
|
- spec/spec_helper.rb
|
data/linguine-0.0.4.gem
DELETED
|
Binary file
|