validate_email 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.markdown +1 -1
  2. data/lib/validate_email.rb +1 -1
  3. metadata +11 -11
@@ -39,7 +39,7 @@ The gem only supports Rails 3 (has dependencies in ActiveModel and ActiveSupport
39
39
 
40
40
  #### I18n
41
41
 
42
- The default error message `is not valid email`.
42
+ The default error message `is not a valid email address`.
43
43
  You can pass the `:message => "my custom error"` option to your validation to define your own, custom message.
44
44
 
45
45
  ## Authors
@@ -6,7 +6,7 @@ module ActiveModel
6
6
  class EmailValidator < ActiveModel::EachValidator
7
7
 
8
8
  def initialize(options)
9
- options.reverse_merge!(:message => "is not valid email")
9
+ options.reverse_merge!(:message => "is not a valid email address")
10
10
  super(options)
11
11
  end
12
12
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 4
9
- version: 0.1.4
8
+ - 5
9
+ version: 0.1.5
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-16 00:00:00 +03:00
18
+ date: 2010-11-03 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -118,14 +118,14 @@ files:
118
118
  - init.rb
119
119
  - install.rb
120
120
  - lib/validate_email.rb
121
- - spec/resources/user_with_blank.rb
122
- - spec/resources/user_with_nil.rb
121
+ - spec/resources/user.rb
123
122
  - spec/resources/user_with_ar.rb
124
123
  - spec/resources/user_with_ar_legacy.rb
124
+ - spec/resources/user_with_blank.rb
125
125
  - spec/resources/user_with_legacy.rb
126
- - spec/resources/user.rb
127
- - spec/validate_email_spec.rb
126
+ - spec/resources/user_with_nil.rb
128
127
  - spec/spec_helper.rb
128
+ - spec/validate_email_spec.rb
129
129
  has_rdoc: true
130
130
  homepage: http://github.com/perfectline/validates_email/tree/master
131
131
  licenses: []
@@ -159,11 +159,11 @@ signing_key:
159
159
  specification_version: 3
160
160
  summary: Library for validating email addresses in Rails 3 models.
161
161
  test_files:
162
- - spec/resources/user_with_blank.rb
163
- - spec/resources/user_with_nil.rb
162
+ - spec/resources/user.rb
164
163
  - spec/resources/user_with_ar.rb
165
164
  - spec/resources/user_with_ar_legacy.rb
165
+ - spec/resources/user_with_blank.rb
166
166
  - spec/resources/user_with_legacy.rb
167
- - spec/resources/user.rb
168
- - spec/validate_email_spec.rb
167
+ - spec/resources/user_with_nil.rb
169
168
  - spec/spec_helper.rb
169
+ - spec/validate_email_spec.rb