contacts_client 0.0.51 → 0.0.52

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 +10 -10
  2. data/app/models/email.rb +4 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,17 +1,17 @@
1
1
  ---
2
2
  !binary "U0hBMjU2":
3
3
  metadata.gz: !binary |-
4
- Y2IyM2UxNjBkMTU0MjJjNjQ3OTc2YTY3ZmYyMGUwMzM3MTY0ZjQ0YzRhOGMz
5
- NjhjNzNhMTRmNWUzZmU3MzljZg==
4
+ NjZjNThhODkzMWUxOGY5OGNlOGQxMTEwNDExYTdkM2Y2ZDk5YWI3YWVmOGJi
5
+ NTRjNjNlNzUzMmUwMGE2NzhmOQ==
6
6
  data.tar.gz: !binary |-
7
- MWE0MzlmNzg0N2M1OTg5NjQ4NTI3NGYwMGFiZWYzNjFhZGI1MzBmZWM3ZmEy
8
- ZTgzYWQ4YmYyYWI2NWYyYzJiMg==
7
+ ZDE4ZmQ0MmRkMjI3MmZlYjBiMDhjZWUxMmI1NTc0NGIxNzFjZWM1NmQ2ZjJh
8
+ MDdlOWI5MzE4NjIxYmUyMTJlYw==
9
9
  SHA512:
10
10
  metadata.gz: !binary |-
11
- ZjI4NDgyZjU3NjgyYWJiMTJlNDhiN2U0ODhjOTRkZjFmOWZmMGM3ODU2ZmU4
12
- MWM3YjUwYTFhNDBiYTZiMDIzZGEwMzk0ZDAyYmVlZjNiNDlhM2E2NGUxNTRj
13
- NjY2NzVkNThjNjQ5NmM1NGIyODBhMGU5YmYwZjY5NmIwOGVhN2I=
11
+ MTRhODVkZjIyOWZmNmFiODJiNWU5YjY4ODFmNGM5ZDYwZGVkY2YzMTllMWZm
12
+ NjNhNzQ3ODJhZTM3YTEwMTgyOGExODc0NGZjNGE0YzBmMzA2NzRjMzlmN2Mz
13
+ MTgxNDhlODI5ZTZmNzZjOTUzZTM0M2JmZjJlZTFjNDg3YTI5ZjE=
14
14
  data.tar.gz: !binary |-
15
- OTJkYzA4OGQyZGU3NDk5YjI5ZTcxMmUyOWY4MmFiMWNhYTk4YjE3NTNmNDQw
16
- YzBhOGIwNDlmNzViODdhODM0YmQ4YWZjZDEyMTBmZjUwOGU4ZmYwYzQ0MjI2
17
- NzViNjkxYzMwNTZmZDBmZTFkMzkwNjM3OTUxNmYxYzkzNjFjNmI=
15
+ OTEwMjBmOTI3ZjExZTllN2NhMTE3NzhiNzZhZWU0MWYwZGJmNzhlNDczMDEx
16
+ NTE4YTkxYTIwZjE3MTkzZGQzZmVlNTU1ZjE4N2VkZDFkYzc1NmZiNGYyZWI1
17
+ YmExODJkNDBmYWQwMWI0N2FhMmVhNGRhZDUxYTVkODZlMDYxNmU=
data/app/models/email.rb CHANGED
@@ -17,7 +17,10 @@ class Email < ContactAttribute
17
17
  self.class.name
18
18
  end
19
19
 
20
- validates :value, format: { with: URI::MailTo::EMAIL_REGEXP }
20
+
21
+ # enable on rails4 # validates :value, { with: URI::MailTo::EMAIL_REGEXP }
22
+ validates :value, :email_format => true # before rails 4
23
+
21
24
 
22
25
  private
23
26
  def strip_whitespace
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contacts_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.51
4
+ version: 0.0.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dwayne Macgowan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-17 00:00:00.000000000 Z
11
+ date: 2019-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties