advisors_command_client 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5aeebf86a4c6f6bae609aa928dc58edb8376dee
|
4
|
+
data.tar.gz: b3e58ad73336dd6295e7f3d96db8a80062a2e69e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb01f93fb130bb3cfd00d3c1fcd6551b9196fe80342968a8a739864708f0112541db6e5071e2fbfb1e0945b5dbd149261f76e1673dd0ae578f9a9f13ebecf95d
|
7
|
+
data.tar.gz: 78c5472141980d94d788769e0d90b9ea1783ca79add4739d0acbc4230ee09b7d2e58697b7fd71bd4da2fb13b5bd6fe7b556512fe1954e0ece771176192fdcbf2
|
@@ -8,8 +8,13 @@ module AdvisorsCommandClient
|
|
8
8
|
def search(query)
|
9
9
|
response = @connection.get('search', {search: query, from: 'orocrm_contact'})
|
10
10
|
if response.success?
|
11
|
-
return
|
12
|
-
|
11
|
+
return Array(response.body['data']).map do |obj|
|
12
|
+
begin
|
13
|
+
self.find(obj['record_id'].to_i)
|
14
|
+
rescue Faraday::Error::ParsingError
|
15
|
+
puts "Error parsing response for contact ID: #{obj['record_id']}"
|
16
|
+
next nil
|
17
|
+
end
|
13
18
|
end.compact
|
14
19
|
else
|
15
20
|
raise ::AdvisorsCommandClient::SearchError, "Error connecting to advisors command."
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: advisors_command_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Ostrowski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|