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 CHANGED
@@ -1,15 +1,17 @@
1
1
  ---
2
- !binary "U0hBMQ==":
2
+ !binary "U0hBMjU2":
3
3
  metadata.gz: !binary |-
4
- YzFiODBiNzQ3MjU5YjI5MzM5NDUzMDA5NmZkN2ZkNWQxYzc1YjliMg==
4
+ NjFmYzk1MmZiNTdiMzQ3ZWRiN2FmMzYyNDg4NmFkOTY1NDFjNmFhMWJlZmY0
5
+ ZDMyYjIzZTI0NWU4OTFlZTkwNg==
5
6
  data.tar.gz: !binary |-
6
- NGQxNWI0OTcyN2I5ODkxOWNkYWE0ODc0ZTA0OTczYjIyYjY3NGJkMQ==
7
+ MGRkYjg5NzUwZDRmZjYwZjdhNGIzZWFkMTU5YzFmNWZiZGU4NGU2NDIyZWRj
8
+ ZThjZmMyMmQ2N2I1OGUzNTJiZQ==
7
9
  SHA512:
8
10
  metadata.gz: !binary |-
9
- YjBkOWNhNjM0NTZlZDFhNzc1ZmEzZTQwZmUzOTE1YzA2MjhiNmUxZjlmYzI4
10
- ZDY5Mjc4NmYxY2E3YTYxY2U4MDhiNDMzZmNlMGQ4OWQ1YTAzM2Q0NjhjYTEx
11
- NjQxMDRjNzFjMzA2NTdjZWFkZTJlMGE0ZTUwZDQzYmQ4ZmU0MmM=
11
+ N2M5NWVmNWU2YmZlNjJlMDQ1ODNhMmYzOTI0ODljNWQ5NjZhM2QxZmU5ZTk1
12
+ ZjEyNjkwZWE4MGY4NWIyMWUzOWIxMTllZmI0MTI0MTZhZmVjODYwZTZlNDE5
13
+ ZmQyZjYzNzg5YjhjZjA2NGRjMmE2M2FjNmRmYmY3OGNiZWQ5Yzk=
12
14
  data.tar.gz: !binary |-
13
- ZGM2MTI1N2JkMDczZDRmMzI2OGVkMmU1Y2Y5Zjc3OTQ5NjI5NmNmNGFjZWI0
14
- OTQyMzI2NzRjNzNjOGUxYzI5NjE0MDI0YWJlYzdkNTc3OTMwNTZjYTA2MjAz
15
- MmM2MjExZTFhZjRmOWYyZWU2NjQxZGE0ZDA1NDk4Njk3ZDgwNDg=
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, :email_format => true
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.should_receive(:find).with(object.contact_id).and_return(PadmaContact.new(contact_id: object.contact_id))
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.47
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: 2017-12-14 00:00:00.000000000 Z
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.4.3
88
+ rubygems_version: 2.7.7
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: Client library for padma-contacts-ws