can_has_validations 1.0.1 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb1dc3533f35f980fd7061b9ac1aaa3b8cf4f9c43af0ed1d7d6d4fb898bf7931
4
- data.tar.gz: 02d171105d2abf207de0a182e0f7a81344afafb0c8191d2e186929f4dfe0344a
3
+ metadata.gz: b18aa1039ebc20678d9781ff0e90d495253b6d40fa39c3ffec9ae69c03b6d298
4
+ data.tar.gz: 6657e468172b9f6cdbd7f69f7d68a105c82661b521e5473d50fda8ca37387558
5
5
  SHA512:
6
- metadata.gz: ef067e3db2f6f0d157390794db619f77048c3cce20951efd2ee17276be321fad01f9923c984b268f9d95db51235a1afb191d6d3d763cae245176adcc39e73f70
7
- data.tar.gz: b46c618a0b3d4cea672626766b71944ccef2e2150495bbc2de06329edf4c1ff521e0903e18dde409404af7f32a0561887d6df45d3dba907906b8397e500a9b2f
6
+ metadata.gz: 129fe04836706f5aa89ba7d1116b857375bd3088f1b3953247c045c8c75c385adc981d2d1e0189810aae40009689c4a18da2f714ac52b79869ba01ea3cd9f823
7
+ data.tar.gz: 3454442e03e74108c632ac8f7dfed962850e36a5ce16afd595eb21b1855653edf8c4cefa4181f4eb7f65b308fc85a7d2341afcbab0a7d31ad268f4e0da000e8e
@@ -1,4 +1,4 @@
1
- Copyright 2012-2019 thomas morgan
1
+ Copyright 2012-2020 thomas morgan
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -18,6 +18,7 @@ module ActiveModel::Validations
18
18
  end
19
19
 
20
20
  def email_valid?(value)
21
+ return unless value
21
22
  recipient, domain = value.split('@', 2)
22
23
  is_valid = true
23
24
 
@@ -1,3 +1,3 @@
1
1
  module CanHasValidations
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: can_has_validations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-18 00:00:00.000000000 Z
11
+ date: 2020-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails