valid8ors 0.0.6 → 0.0.7

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.
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in valid8ors.gemspec
4
+ gem 'rake'
4
5
  gemspec
@@ -2,7 +2,7 @@
2
2
 
3
3
  class EmailFormatValidator < ActiveModel::EachValidator
4
4
 
5
- EMAIL_PATTERN = /\A[\w\-_\.]+@((?:[\w\-\.]+\.)+[a-z]{2,})\Z/i
5
+ EMAIL_PATTERN = /\A[\w\-\+_\.]+@((?:[\w\-\.]+\.)+[a-z]{2,})\Z/i
6
6
 
7
7
  def validate_each(record, attribute, value)
8
8
  unless value =~ EMAIL_PATTERN
@@ -86,7 +86,8 @@ class TestEmailFormatValidator < MiniTest::Unit::TestCase
86
86
  '-and-this-address-is-254-characters-exactly-so-it-should-be-valid-and-im-going-to-add-some-more' +
87
87
  '-words-here-to-increase-the-lenght-blah-blah-blah-blah-bla.org',
88
88
  # 'bracketed-IP-instead-of-domain@[127.0.0.1]',
89
- 'local@sub.domains.com'
89
+ 'local@sub.domains.com',
90
+ 'first+last@domain.com'
90
91
  ]
91
92
  end
92
93
 
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.6"
6
+ s.version = "0.0.7"
7
7
  s.authors = ["Axel Vergult", "Vincent Pochet", "Ben Colon"]
8
8
  s.email = ["axel@official.fm", "vincent@official.fm", "ben@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.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-01-18 00:00:00.000000000Z
14
+ date: 2012-03-02 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activemodel
18
- requirement: &70154231871280 !ruby/object:Gem::Requirement
18
+ requirement: &70251716111360 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,7 +23,7 @@ dependencies:
23
23
  version: '0'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70154231871280
26
+ version_requirements: *70251716111360
27
27
  description: Rails 3 awesome custom validators
28
28
  email:
29
29
  - axel@official.fm
@@ -63,12 +63,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
63
  - - ! '>='
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
+ segments:
67
+ - 0
68
+ hash: 4557959331409826166
66
69
  required_rubygems_version: !ruby/object:Gem::Requirement
67
70
  none: false
68
71
  requirements:
69
72
  - - ! '>='
70
73
  - !ruby/object:Gem::Version
71
74
  version: '0'
75
+ segments:
76
+ - 0
77
+ hash: 4557959331409826166
72
78
  requirements: []
73
79
  rubyforge_project:
74
80
  rubygems_version: 1.8.10