email_valid8 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/email_valid8.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d47e5e536d6c7c9a2d77ab95356c26da915decc951678e3bb2f299fb81dcc10b
4
- data.tar.gz: 63f1c5ee17fd08512609d8f16b6df58fe8454fd13bbc091f6b0fd959892fbc45
3
+ metadata.gz: 37a4e583c07667ce31d8e3996c8809d83045b55f4ef0daadb803162351cb55a4
4
+ data.tar.gz: f784354b4b15c7830f55aeeeaf3753b4304e7acb74cdc1baa985e30cab5a7ec1
5
5
  SHA512:
6
- metadata.gz: 5d0fdb21f25ea672e6224fecca501569f536152ed6215daf60a2ddfe4db08a96d91acd24dc313a046a3a5114fe87f08770750c512472d3a7f0d27b692cb703ca
7
- data.tar.gz: d7623c30273311f002b653242342ce1d81e4a9955eddc63987f01b54c309f3cd9e69634d54967e463d6c8d4c9a0efc147e6cb179d9c6f1009eca4b3b6786850f
6
+ metadata.gz: 86a43ad49857a3fc37ef03a2e0dce21f6233f9cf2968d228caf13c6225c0bade4df3a0c3b46876fafbaab14cc078e96d5b668c9f68fc144b1238ee190f9406d0
7
+ data.tar.gz: 887525004aa1f87570c7b4ed6241f8469e810f73e098bdc9de06d878099946d840b1abfa27269a4d64a972a48088faf94a45d85111e17fd2a9599281123370b0
@@ -29,6 +29,6 @@ class EmailAddressValidator < ActiveModel::Validator
29
29
  end
30
30
 
31
31
  def self.valid?(email)
32
- email =~ URI::MailTo::EMAIL_REGEXP && email !~ /[A-Z]/
32
+ (email =~ URI::MailTo::EMAIL_REGEXP && email !~ /[A-Z]/) || false
33
33
  end
34
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: email_valid8
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Boyd