zoho_crm 1.0.3 → 1.0.4
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/zoho_crm/version.rb +1 -1
- data/lib/zoho_crm.rb +2 -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: 1998e450ca5ae998d5886ffcb2512c9da445ee18
|
4
|
+
data.tar.gz: 0f380ffbf163d7d2b3d2cf50f4beeef8e36e7ad9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0db6eba001d205e76f4624d686030d689dfb3f003ce6dc8c46a358c4aed2765b86d3c2c07199b0db0c8cfed1eb90817979d4c0cb863319298f9ef6e1f83ea4d9
|
7
|
+
data.tar.gz: 0b8ff96c50443fc826a832417b9025010f379d322e9dbda0427cfc1a12d1fd8fc8c8502f50d5b0b2ab8ae1a2a4429eb1cabb020e5a9440247b1ba3c690b0c902
|
data/lib/zoho_crm/version.rb
CHANGED
data/lib/zoho_crm.rb
CHANGED
@@ -54,6 +54,7 @@ module ZohoCrm
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def new_contact(auth_token, data)
|
57
|
+
binding.pry
|
57
58
|
xml_data = format_contacts(data)
|
58
59
|
formatted_data = escape_xml(xml_data)
|
59
60
|
new_contact = NEW_CONTACT + "authtoken=#{auth_token}&scope=crmapi&xmlData=#{formatted_data}"
|
@@ -187,7 +188,7 @@ module ZohoCrm
|
|
187
188
|
end
|
188
189
|
|
189
190
|
def escape_xml(data)
|
190
|
-
|
191
|
+
CGI.escape(data)
|
191
192
|
end
|
192
193
|
|
193
194
|
def raise_api_exception(response)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zoho_crm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ciaran Lofts
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|