bad_words 0.1.5 → 0.1.6

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 (3) hide show
  1. data/bad_words.gemspec +1 -1
  2. data/lib/bad_words.rb +1 -1
  3. metadata +3 -3
data/bad_words.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "bad_words"
3
- s.version = "0.1.5"
3
+ s.version = "0.1.6"
4
4
  s.description = "A simple gem to clean string of bad words!"
5
5
  s.summary = "Bad Words"
6
6
  s.author = "Alessandro Neri"
data/lib/bad_words.rb CHANGED
@@ -32,7 +32,7 @@ module BadWords
32
32
  end
33
33
 
34
34
  def self.load_words(nivel)
35
- @words = YAML.load_file("./config/words.yml")
35
+ @words = YAML.load_file File.join(File.dirname(__FILE__), "../config/words.yml")
36
36
  words_define = ""
37
37
  if nivel == 1 || nivel == 3
38
38
  words_define << @words['bad_words'] << " "
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bad_words
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alessandro Neri