sugarcrb 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sugarcrb/version.rb +1 -1
- data/lib/sugarcrb.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5d420f076e54b1471006f8f9a0c776b5404f6b1
|
4
|
+
data.tar.gz: c46b3fcad00a038190c6b9c9657ce534faa4a107
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95bd4d964a09fa6e7d4763e0d6307264ffa7700f2603946d3302c88e4d951aaea4e927682a69842b8999b6dc12c33f797f68fb8bc363e5bc303561898ab80a9a
|
7
|
+
data.tar.gz: bf6064086e6b4b96a38729a7a924cb6f94cdf275c8409dbbcd7842f47034fd7fe297f41ef435f2b2bb9ef18e86c5ff5ee22441e85b2a03ca3b18fa7cc61e6423
|
data/lib/sugarcrb/version.rb
CHANGED
data/lib/sugarcrb.rb
CHANGED
@@ -62,7 +62,7 @@ class Sugarcrb
|
|
62
62
|
response = case method
|
63
63
|
when "post" then RestClient.post "#{@host}/rest/v10/#{endpoint}", data, headers={"OAuth-Token" => @access_token}
|
64
64
|
when "get" then RestClient.get "#{@host}/rest/v10/#{endpoint}", headers={"OAuth-Token" => @access_token}
|
65
|
-
when "put" then RestClient.put "#{@host}/rest/v10/#{endpoint}", data, headers={"OAuth-Token" => @access_token}
|
65
|
+
when "put" then RestClient.put "#{@host}/rest/v10/#{endpoint}", JSON.generate(data), {:content_type => :json}, headers={"OAuth-Token" => @access_token}
|
66
66
|
when "delete" then RestClient.delete "#{@host}/rest/v10/#{endpoint}", headers={"OAuth-Token" => @access_token}
|
67
67
|
end
|
68
68
|
|