contacts_client 0.0.47 → 0.0.48
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +11 -9
- data/app/models/email.rb +2 -2
- data/lib/contacts/shared_examples.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
---
|
2
|
-
!binary "
|
2
|
+
!binary "U0hBMjU2":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjFmYzk1MmZiNTdiMzQ3ZWRiN2FmMzYyNDg4NmFkOTY1NDFjNmFhMWJlZmY0
|
5
|
+
ZDMyYjIzZTI0NWU4OTFlZTkwNg==
|
5
6
|
data.tar.gz: !binary |-
|
6
|
-
|
7
|
+
MGRkYjg5NzUwZDRmZjYwZjdhNGIzZWFkMTU5YzFmNWZiZGU4NGU2NDIyZWRj
|
8
|
+
ZThjZmMyMmQ2N2I1OGUzNTJiZQ==
|
7
9
|
SHA512:
|
8
10
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
11
|
+
N2M5NWVmNWU2YmZlNjJlMDQ1ODNhMmYzOTI0ODljNWQ5NjZhM2QxZmU5ZTk1
|
12
|
+
ZjEyNjkwZWE4MGY4NWIyMWUzOWIxMTllZmI0MTI0MTZhZmVjODYwZTZlNDE5
|
13
|
+
ZmQyZjYzNzg5YjhjZjA2NGRjMmE2M2FjNmRmYmY3OGNiZWQ5Yzk=
|
12
14
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
15
|
+
NzEyMmIwNWJjY2E3NDY5OGU4YjZjOWY5YmZmYmY5ZjFkOTgzN2I3YTAwY2Qy
|
16
|
+
ZDA4MjNjZGU5ZWE5ZDBhNGY4MjM3NzAwN2RkNDIxODQwYzIzY2ZhNDM2NmVk
|
17
|
+
ZWVmNTI0ZTdkNDkzZmZmN2Y3YWI0MDIyZjhiMzczZGUwNjYzYTQ=
|
data/app/models/email.rb
CHANGED
@@ -17,10 +17,10 @@ class Email < ContactAttribute
|
|
17
17
|
self.class.name
|
18
18
|
end
|
19
19
|
|
20
|
-
validates :value, :
|
20
|
+
validates :value, format: { with: URI::MailTo::EMAIL_REGEXP }
|
21
21
|
|
22
22
|
private
|
23
23
|
def strip_whitespace
|
24
24
|
self.value = self.value.strip
|
25
25
|
end
|
26
|
-
end
|
26
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
shared_examples_for "it belongs to a contact" do
|
2
2
|
it { should validate_presence_of :contact_id }
|
3
3
|
it "should return account on #contact" do
|
4
|
-
PadmaContact.
|
4
|
+
expect(PadmaContact).to receive(:find).with(object.contact_id).and_return(PadmaContact.new(contact_id: object.contact_id))
|
5
5
|
object.contact.should be_a(PadmaContact)
|
6
6
|
end
|
7
7
|
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.
|
4
|
+
version: 0.0.48
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dwayne Macgowan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
|
-
rubygems_version: 2.
|
88
|
+
rubygems_version: 2.7.7
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: Client library for padma-contacts-ws
|