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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2013e2d034f5dca54e51a98fdb96ac579beb0fe
4
- data.tar.gz: 3bbd6cd32160f0483c3d838ea3c5f0d92298cc5c
3
+ metadata.gz: 1998e450ca5ae998d5886ffcb2512c9da445ee18
4
+ data.tar.gz: 0f380ffbf163d7d2b3d2cf50f4beeef8e36e7ad9
5
5
  SHA512:
6
- metadata.gz: 2c012c753753bdd0cbcf8c57f3936a0a553cac5ca3c1e211c4f86ec7d985de87fb4d691007bedae2849f00a2fb8b262b4e9b6e734152a1ce1f40a9df4e08007e
7
- data.tar.gz: dd42ad0fdf96506d8927110e23af8756e58e5c8414cc71573e2dbe3c73af2a65b198e54e7abe473106ab9eb76e472e5e690b96e810d9ff95c6a2c88ea929e865
6
+ metadata.gz: 0db6eba001d205e76f4624d686030d689dfb3f003ce6dc8c46a358c4aed2765b86d3c2c07199b0db0c8cfed1eb90817979d4c0cb863319298f9ef6e1f83ea4d9
7
+ data.tar.gz: 0b8ff96c50443fc826a832417b9025010f379d322e9dbda0427cfc1a12d1fd8fc8c8502f50d5b0b2ab8ae1a2a4429eb1cabb020e5a9440247b1ba3c690b0c902
@@ -1,5 +1,5 @@
1
1
  module ZohoCrm
2
2
  class Client
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
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
- URI.escape(data)
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.3
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-10-08 00:00:00.000000000 Z
11
+ date: 2015-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty