blacklist_validator 0.0.1 → 0.0.2

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.
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "blacklist_validator"
6
- s.version = "0.0.1"
6
+ s.version = "0.0.2"
7
7
  s.authors = ["Axel Vergult"]
8
8
  s.email = ["axel.vergult@gmail.com"]
9
9
  s.homepage = "https://github.com/episko/blacklist_validator"
@@ -37,8 +37,8 @@ class BlacklistValidator < ActiveModel::EachValidator
37
37
  if defined?(Rails.root) && (blacklist_file_path = Rails.root.join("config", "blacklist.yml")).exist?
38
38
  blacklist_path = blacklist_file_path
39
39
  end
40
- blacklist_path ||= File.read(File.join(File.dirname(__FILE__), "../config/blacklist.yml"))
41
- @blacklist = YAML::load(blacklist_path)
40
+ blacklist_path ||= File.join(File.dirname(__FILE__), "../config/blacklist.yml")
41
+ @blacklist = YAML.load_file(blacklist_path)
42
42
  end
43
43
 
44
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklist_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-15 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
16
- requirement: &70198876131880 !ruby/object:Gem::Requirement
16
+ requirement: &70349443486320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70198876131880
24
+ version_requirements: *70349443486320
25
25
  description: Blacklist validator for Rails 3
26
26
  email:
27
27
  - axel.vergult@gmail.com