agilecrm-wrapper 1.3.2 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/agilecrm-wrapper/contact.rb +3 -6
- data/lib/agilecrm-wrapper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b212e67b480eee65cf527e1b4c5979c2e83871c
|
|
4
|
+
data.tar.gz: 44e4b001311b765d79a4d18aa6d7cd74fe661a2c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51fdabeb77e27e1eab87e1a4f30c7657fb0892bf92d98a963e0cc74aa33d869a911b7d2065de71e58188f0125e096a2c9555ffd2b87681227f5995299548c108
|
|
7
|
+
data.tar.gz: 07a983d9d670de5242765fe973364c5f28d7dfa840325a32e50fbb9b39ac5c567ab6cfba39df1dbc8774cb253d49e83691ef1cd730528cb81962f7bb15d297ee
|
|
@@ -3,7 +3,7 @@ require 'hashie'
|
|
|
3
3
|
|
|
4
4
|
module AgileCRMWrapper
|
|
5
5
|
class Contact < Hashie::Mash
|
|
6
|
-
SYSTEM_PROPERTIES = %w(first_name last_name company title email)
|
|
6
|
+
SYSTEM_PROPERTIES = %w(first_name last_name company title email address phone)
|
|
7
7
|
CONTACT_FIELDS = %w(id type tags lead_score star_value)
|
|
8
8
|
|
|
9
9
|
class << self
|
|
@@ -78,11 +78,8 @@ module AgileCRMWrapper
|
|
|
78
78
|
private
|
|
79
79
|
|
|
80
80
|
def parse_property(key, value)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
else
|
|
84
|
-
{ 'type' => 'CUSTOM', 'name' => key.to_s, 'value' => value }
|
|
85
|
-
end
|
|
81
|
+
type = system_propety?(key) ? 'SYSTEM' : 'CUSTOM'
|
|
82
|
+
{ 'type' => type, 'name' => key.to_s, 'value' => value }
|
|
86
83
|
end
|
|
87
84
|
|
|
88
85
|
def system_propety?(key)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: agilecrm-wrapper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cyle
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-09-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|