contacts_client 0.0.32 → 0.0.33

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/padma_contact.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTA4NWE3ZGNjN2NlNGNjZDdlZjRhNGU1NWUyNzZjNTk4MjAzNjQ2MA==
4
+ MjQ3ZWMyZWQwMTg2ZjAyZjQ2MGUxZjNjMGE3ODhiZjE1MDQzYzIzMA==
5
5
  data.tar.gz: !binary |-
6
- ZGJhZGI3NzUwM2M1NTU4YTY1ZjBlNzBkNGRkZjY3YzFlNDc3YzFjYQ==
6
+ MzM0NmU4ZTJiZDI3OGY1MTVhODNlZmU4MTU4MDkxZTM2NmZmODljYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjVmNWIxMjdiY2Q0ZjNmNDYxOThmMGNjYjJlMDMyNTg2MmJiZGVlOWFkYmRh
10
- NmJlMTZiN2E0MWZkMmYzYjU5NjljODQwNDM4NjYwMTQ1M2U0YzRjMzk2MjQ5
11
- ZTdkNjdmYjgxYzlkYjZhZTk4ZDQ4MGFjNmFjZTU1NGJhMjMzNTA=
9
+ ZGM2ZWNkODljZTUwOGIzMWI2Yzc5ZGEyNzY0YmZlNmI4ZDlkYTc3MDBlMDc3
10
+ MDY5NGRlMDkzYTlmODMzYzg2MzgyOGNiMmU0MDdkOGMzNGVlZGE5ZTU2MGE1
11
+ M2JkZjkxNWJlZDBiZjk3YjA1NjliNmE0MGFkZDNmNTc0ZGJhN2I=
12
12
  data.tar.gz: !binary |-
13
- YWE2ZmIxNDM4ODZjNmIwMTVkODNmMmFmYWU5OTQzZmIyYjQ5YmU1ZjIxN2U4
14
- NjEzYTllYWM5ODcwNTgzMzY3NmFlNWMyNGUxNDAzN2QzYTAzYTY5YzJjMTM2
15
- YTJlZTAwZmE2Y2QzZjEzNmNlNDUyY2M2ZWQyNzFkMWE1ODMzMDI=
13
+ ZTY2NWRiNjNlYzJhYTljMDNiOWEzOGYwOTVkZDlmMmQwYTg5ZmE5NjQ0OTA3
14
+ MzViOTg0ZWRiMTBmOWY1YWJjNWQ5MjQzNTJkYjllMDJlZGVhYTRlOWVkMTA1
15
+ N2U1ZDhjMDRmYjQ1NDcwMTMxNTBjNzZmNGE3Y2E1ZWMxNzU4Yjk=
@@ -108,7 +108,7 @@ class PadmaContact < LogicalModel
108
108
  ContactAttribute::AVAILABLE_TYPES.each do |type|
109
109
  define_method(type.to_s.pluralize) do
110
110
  if self.contact_attributes
111
- self.contact_attributes.reject { |attr| !attr.is_a? type.to_s.camelize.constantize }.sort_by { |x| [x.primary ? 0 : 1, x._id] }
111
+ self.contact_attributes.select{ |attr| attr && attr.is_a?(type.to_s.camelize.constantize)}.sort_by{|x| x.primary ? 0 : 1 }
112
112
  end
113
113
  end
114
114
  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.32
4
+ version: 0.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dwayne Macgowan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-23 00:00:00.000000000 Z
11
+ date: 2015-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties