valid_email2 2.1.2 → 2.2.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/valid_email2.rb +0 -1
- data/lib/valid_email2/address.rb +8 -5
- data/lib/valid_email2/version.rb +1 -1
- data/spec/valid_email2_spec.rb +12 -0
- data/vendor/disposable_emails.yml +1263 -6
- metadata +2 -3
- data/lib/email_validator.rb +0 -10
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: valid_email2
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2. | 
| 4 | 
            +
              version: 2.2.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Micke Lisinge
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2018-01-25 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -98,7 +98,6 @@ files: | |
| 98 98 | 
             
            - gemfiles/activemodel3.gemfile
         | 
| 99 99 | 
             
            - gemfiles/activemodel4.gemfile
         | 
| 100 100 | 
             
            - gemfiles/activemodel5.gemfile
         | 
| 101 | 
            -
            - lib/email_validator.rb
         | 
| 102 101 | 
             
            - lib/valid_email2.rb
         | 
| 103 102 | 
             
            - lib/valid_email2/address.rb
         | 
| 104 103 | 
             
            - lib/valid_email2/email_validator.rb
         | 
    
        data/lib/email_validator.rb
    DELETED
    
    | @@ -1,10 +0,0 @@ | |
| 1 | 
            -
            # This is a shim for keeping backwards compatibility.
         | 
| 2 | 
            -
            # See the discussion in: https://github.com/lisinge/valid_email2/pull/79
         | 
| 3 | 
            -
            class EmailValidator < ValidEmail2::EmailValidator
         | 
| 4 | 
            -
              def validate_each(record, attribute, value)
         | 
| 5 | 
            -
                warn "DEPRECATION WARNING: The email validator from valid_email2 has been " +
         | 
| 6 | 
            -
                     "deprecated in favour of using the namespaced 'valid_email_2/email' validator. " +
         | 
| 7 | 
            -
                     "For more information see https://github.com/lisinge/valid_email2#upgrading-to-v200"
         | 
| 8 | 
            -
                super
         | 
| 9 | 
            -
              end
         | 
| 10 | 
            -
            end
         |