linguine 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/linguine.rb +2 -2
  2. data/linguine.gemspec +1 -1
  3. 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
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "linguine"
6
- s.version = '0.0.5'
6
+ s.version = '0.0.6'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Daniel Owen van Dommelen"]
9
9
  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.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: