contacts_client 0.0.30 → 0.0.31

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 +8 -8
  2. data/app/models/telephone.rb +1 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjU5Y2M5MTk4Zjk2NGI1ZGY4ZmVjM2Q3MjRmNDJkMWY0M2Y2ODBmOQ==
4
+ NmQ5NzViN2ViNWRiOWFkZmNmNjc0Yjg1YWQwYjliYzQ2ZTU2NDRlNg==
5
5
  data.tar.gz: !binary |-
6
- YWJiNTNjZTVlN2I3MDliNGYwZGIxYjI5YmVhNmFhMjRhYjRmZjE3NQ==
6
+ YTA0ZGM0OTIwNDc1NGQ4Y2U3MWRiM2FhNjEyZWFmNDBiOTk0ZjUyMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDgwZTYwOGM1NGZkN2I2N2FkMjQzYjFlMTZhMDdkMTAzODU1ZTliMTY1ZjY5
10
- YTFhNzRkYjI1OTFlZmU3YjE2NjQzYzVkNTc4MjFlYmRhN2QwZTEyZGE4YTJi
11
- MjY4ODJmMDczMzk0MzI5M2UzNjMxYmZmZDc1ZDg0YmI0OGYxNTc=
9
+ OTEwNTk1MmNhYjUxYTgxZTdiN2QyOTRkNjJlYmVmNzc4YWE1OTgyMmNkMDVl
10
+ NTc2YTQ1ZGI3YWYzNmIyMmI5NzIzZWNjYjBjOTM4MjVmYzA3NGZiMmEzNmQx
11
+ ZjNhMjM0MTY5MzViNmUwYzNlOGQ2NzBlOWFmZmRhOTdlYWVkYzg=
12
12
  data.tar.gz: !binary |-
13
- M2IzZTY0MGNlYmQ3ZTI3N2IzNmRjYzMyNzkwMzk4N2I3ZjFlZGU2ZmMwMzZm
14
- NDJiMzk5YWVlZDg2ZmFiOTI4MmExNzQzNjQzOWQ4N2Y0MjMzZjAwOGVhNDFh
15
- NTJkYWQ3MTlkMzhiMTU4ZWMxMjNmMTliNmYwZjBhNzFjOWY4ZmI=
13
+ NTQwNjNlMDMwZTAwYjI5ZGI4M2YyNTVjMmE3Mzg4MWE2ZWQ3OThiMmMxNTNm
14
+ ZWZjYWY0MjBhZGUzY2UwNWRjMGYzODI3ZmViZDA2ODMzNWFhNTZiZjA0ZmM0
15
+ MTkzZGFjZjc5ZjQxNzkxY2Q2OWIxNjRkMjNhZmM3Y2Q5ZDUyNTI=
@@ -1,5 +1,6 @@
1
1
  class Telephone < ContactAttribute
2
2
  include ActiveModel::Validations::Callbacks
3
+ before_validation :strip_whitespace
3
4
 
4
5
  self.attribute_keys = [:_id, :_type, :public, :primary, :category, :value, :contact_id]
5
6
  self.hydra = Contacts::HYDRA
@@ -11,10 +12,6 @@ class Telephone < ContactAttribute
11
12
 
12
13
  attr_accessor :category, :value, :public, :primary
13
14
 
14
- before_validation :strip_whitespace
15
-
16
- validates :value, :numericality => true, :unless => :masked?
17
-
18
15
  def masked?
19
16
  value.present? && value.last == '#'
20
17
  end
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.30
4
+ version: 0.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dwayne Macgowan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-20 00:00:00.000000000 Z
11
+ date: 2014-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties