Fingertips-validates_email-san 0.1.0 → 0.1.1

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/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 0
2
+ :patch: 1
3
3
  :major: 0
4
4
  :minor: 1
@@ -1,7 +1,7 @@
1
1
  module ActiveRecord
2
2
  module Validations #:nodoc:
3
3
  module ClassMethods
4
- local_part_illegal_chars = '[^@<>\(\)\[\]:;\\\s\.]'
4
+ local_part_illegal_chars = '[^@<>\(\)\[\]:;\\\\\s\.]'
5
5
  EMAIL_REGEXP = /^[^\.](#{local_part_illegal_chars}|\.#{local_part_illegal_chars})+@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i
6
6
 
7
7
  # Takes a list of attributes that should be validated to be valid
@@ -21,6 +21,7 @@ class ValidatesEmailTest < ActiveSupport::TestCase
21
21
 
22
22
  test "accepts valid email addresses" do
23
23
  %w{
24
+ sasha@example.com
24
25
  foo.bar.baz@example.com
25
26
  FOO.bar.BAZ@EXAMPLE.COM
26
27
  ML+foo@example.com
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Fingertips-validates_email-san
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran