valid8ors 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -39,7 +39,7 @@ You can translate (or overload) the default message via for e.g. using activerec
39
39
  ### Tests
40
40
 
41
41
  cd test
42
- ruby blacklist_validator_test.rb
42
+ ruby blacklist_test.rb
43
43
 
44
44
  ## Email Format Validator
45
45
 
@@ -64,7 +64,7 @@ You can translate (or overload) the default message via for e.g. (in english): "
64
64
  ### Tests
65
65
 
66
66
  cd test
67
- ruby email_format_validator_test.rb
67
+ ruby email_format_test.rb
68
68
 
69
69
  ### Credits
70
70
 
@@ -31,7 +31,7 @@ class BlacklistValidator < ActiveModel::EachValidator
31
31
  if defined?(Rails.root) && (blacklist_file_path = Rails.root.join("config", "blacklist.yml")).exist?
32
32
  return blacklist_file_path
33
33
  end
34
- File.join(File.dirname(__FILE__), "../config/blacklist.yml")
34
+ File.join(File.dirname(__FILE__), "../../config/blacklist.yml")
35
35
  end
36
36
 
37
37
  end
data/lib/valid8ors.rb ADDED
@@ -0,0 +1,4 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require 'valid8ors/email_format'
4
+ require 'valid8ors/blacklist'
data/test/test_helper.rb CHANGED
@@ -7,8 +7,7 @@ require 'minitest/autorun'
7
7
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
8
8
  $LOAD_PATH.unshift(File.dirname(__FILE__))
9
9
 
10
- require 'blacklist_validator'
11
- require 'email_format_validator'
10
+ require 'valid8ors'
12
11
 
13
12
  class TestModel
14
13
  include ActiveModel::Validations
data/valid8ors.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 = "valid8ors"
6
- s.version = "0.0.1"
6
+ s.version = "0.0.2"
7
7
  s.authors = ["Axel Vergult"]
8
8
  s.email = ["axel@official.fm"]
9
9
  s.homepage = ""
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valid8ors
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-17 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
16
- requirement: &70162532387340 !ruby/object:Gem::Requirement
16
+ requirement: &70144094093240 !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: *70162532387340
24
+ version_requirements: *70144094093240
25
25
  description: Rails 3 awesome custom validators
26
26
  email:
27
27
  - axel@official.fm
@@ -35,10 +35,11 @@ files:
35
35
  - README.md
36
36
  - Rakefile
37
37
  - config/blacklist.yml
38
- - lib/blacklist_validator.rb
39
- - lib/email_format_validator.rb
40
- - test/blacklist_validator_test.rb
41
- - test/email_format_validator_test.rb
38
+ - lib/valid8ors.rb
39
+ - lib/valid8ors/blacklist.rb
40
+ - lib/valid8ors/email_format.rb
41
+ - test/blacklist_test.rb
42
+ - test/email_format_test.rb
42
43
  - test/test_helper.rb
43
44
  - valid8ors.gemspec
44
45
  homepage: ''
@@ -66,6 +67,6 @@ signing_key:
66
67
  specification_version: 3
67
68
  summary: Rails 3 awesome custom validators
68
69
  test_files:
69
- - test/blacklist_validator_test.rb
70
- - test/email_format_validator_test.rb
70
+ - test/blacklist_test.rb
71
+ - test/email_format_test.rb
71
72
  - test/test_helper.rb