validate_email 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ require 'active_support/concern'
4
4
  require 'mail'
5
5
 
6
6
  module Perfectline
7
- module ValidateEmail
7
+ module ValidatesEmail
8
8
  extend ActiveSupport::Concern
9
9
 
10
10
  class EmailValidator < ActiveModel::EachValidator
@@ -33,4 +33,4 @@ module Perfectline
33
33
  end
34
34
  end
35
35
 
36
- ActiveModel::Validations.send(:include, Perfectline::ValidateEmail)
36
+ ActiveModel::Validations.send(:include, Perfectline::ValidatesEmail)
data/rails/init.rb CHANGED
@@ -1 +1 @@
1
- require 'validate_email'
1
+ require 'validates_email'
data/spec/spec_helper.rb CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(File.dirname(__FILE__) + '/resources')
3
3
  $LOAD_PATH.unshift(File.dirname(__FILE__))
4
4
 
5
5
  require 'spec'
6
- require 'validate_email'
6
+ require 'validates_email'
7
7
 
8
8
  autoload :User, 'resources/user'
9
9
  autoload :UserWithNil, 'resources/user_with_nil'
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe "Enail validation", Perfectline::ValidateEmail::EmailValidator do
3
+ describe "Enail validation", Perfectline::ValidatesEmail::EmailValidator do
4
4
 
5
5
  context "with regular validator" do
6
6
  before do
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tanel Suurhans
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-07 00:00:00 +03:00
18
+ date: 2010-09-08 00:00:00 +03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -102,7 +102,7 @@ extra_rdoc_files:
102
102
  files:
103
103
  - README.markdown
104
104
  - install.rb
105
- - lib/validate_email.rb
105
+ - lib/validates_email.rb
106
106
  - rails/init.rb
107
107
  - spec/resources/user.rb
108
108
  - spec/resources/user_with_blank.rb
@@ -111,7 +111,7 @@ files:
111
111
  - spec/spec_helper.rb
112
112
  - spec/validate_email_spec.rb
113
113
  has_rdoc: true
114
- homepage: http://github.com/perfectline/validate_email/tree/master
114
+ homepage: http://github.com/perfectline/validates_email/tree/master
115
115
  licenses: []
116
116
 
117
117
  post_install_message: