spectator-validates_email 0.0.8 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/validates_email/version.rb +1 -1
  2. metadata +19 -20
  3. data/README.rdoc +0 -77
@@ -1,3 +1,3 @@
1
1
  module ValidatesEmail
2
- VERSION = "0.0.8"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spectator-validates_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-12 00:00:00.000000000Z
12
+ date: 2012-03-09 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
16
- requirement: &70142609996260 !ruby/object:Gem::Requirement
16
+ requirement: &70231125664720 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70142609996260
24
+ version_requirements: *70231125664720
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activemodel
27
- requirement: &70142609995780 !ruby/object:Gem::Requirement
27
+ requirement: &70231125664240 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,51 +32,51 @@ dependencies:
32
32
  version: 3.0.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70142609995780
35
+ version_requirements: *70231125664240
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70142609995320 !ruby/object:Gem::Requirement
38
+ requirement: &70231125663640 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
- - - ~>
41
+ - - ! '>='
42
42
  - !ruby/object:Gem::Version
43
43
  version: 1.0.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70142609995320
46
+ version_requirements: *70231125663640
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &70142609994860 !ruby/object:Gem::Requirement
49
+ requirement: &70231125663180 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
- - - ~>
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: 2.0.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70142609994860
57
+ version_requirements: *70231125663180
58
58
  - !ruby/object:Gem::Dependency
59
- name: sqlite3-ruby
60
- requirement: &70142609994400 !ruby/object:Gem::Requirement
59
+ name: sqlite3
60
+ requirement: &70231125662620 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
- - - ~>
63
+ - - ! '>='
64
64
  - !ruby/object:Gem::Version
65
65
  version: 1.3.1
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70142609994400
68
+ version_requirements: *70231125662620
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
- requirement: &70142609993900 !ruby/object:Gem::Requirement
71
+ requirement: &70231125661880 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
- - - ~>
74
+ - - ! '>='
75
75
  - !ruby/object:Gem::Version
76
76
  version: 0.8.7
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70142609993900
79
+ version_requirements: *70231125661880
80
80
  description: Rails 3 plugin to validate email addresses against RFC 2822 and RFC 3696
81
81
  email:
82
82
  - yury.velikanau@gmail.com
@@ -88,7 +88,6 @@ files:
88
88
  - lib/validates_email/version.rb
89
89
  - lib/validates_email.rb
90
90
  - MIT-LICENSE
91
- - README.rdoc
92
91
  homepage: http://github.com/spectator/validates_email
93
92
  licenses: []
94
93
  post_install_message:
@@ -1,77 +0,0 @@
1
- = validates_email
2
-
3
- validates_email is a Rails 3 plugin that validates email addresses against RFC 2822 and RFC 3696
4
-
5
- == Installation
6
-
7
- rails plugin install git://github.com/spectator/validates_email.git
8
-
9
- or
10
-
11
- gem 'spectator-validates_email', :require => 'validates_email'
12
-
13
- == Usage
14
-
15
- class User < ActiveRecord::Base
16
- validates :primary_email, :email => true
17
- end
18
-
19
- As well as any other Rails 3 validation this one has the same triggers, such as <tt>:on</tt>, <tt>:if</tt>, <tt>:unless</tt>, <tt>:allow_blank</tt>, and <tt>:allow_nil</tt>.
20
-
21
- Also, you can pass your own custom error message.
22
-
23
- class User < ActiveRecord::Base
24
- validates :primary_email, :email => { :message => 'is not an email address' }
25
- end
26
-
27
- If you like to check MX Records for email, you can use <tt>:mx</tt> option.
28
-
29
- class User < ActiveRecord::Base
30
- validates :primary_email, :email => { :mx => true }
31
- end
32
-
33
- And if you like to check MX Records with fallback to A record, use <tt>:a_fallback</tt> option.
34
-
35
- class User < ActiveRecord::Base
36
- validates :primary_email, :email => { :mx => { :a_fallback => true } }
37
- end
38
-
39
- == I18n
40
-
41
- If you don't specify your own error message, then ActiveRecord's <tt>:invalid</tt> error message will be used to show the error.
42
-
43
- If do check MX Records, then you have to specify your own error message or add it to your traslations:
44
-
45
- activerecord:
46
- errors:
47
- messages:
48
- mx_invalid: "is not valid"
49
-
50
- == Credits
51
-
52
- Most of the code were taken from Alex Dunae (dunae.ca) plugin (see http://github.com/alexdunae/validates_email_format_of/) and adopted for Rails 3, so pass all beers to him.
53
-
54
- == Contributors
55
-
56
- * Petr Blaho
57
- * Christian Eichhorn
58
- * Alexander Zubkov
59
-
60
- == How to contribute
61
-
62
- * Fork
63
- * Make changes
64
- * Write specs
65
- * Do pull request
66
-
67
- == Testing
68
-
69
- To execute unit tests run <tt>rake spec</tt> within plugin folder.
70
-
71
- The unit tests for this plugin use an in-memory sqlite3 database.
72
-
73
- == Notes
74
-
75
- Compatible with following ruby versions:
76
- * Ruby 1.8.7
77
- * Ruby 1.9.2