fanforce 0.4.3 → 0.4.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.
- data/lib/fanforce/errors.rb +3 -2
- data/lib/fanforce/version.rb +1 -1
- metadata +1 -1
data/lib/fanforce/errors.rb
CHANGED
@@ -19,7 +19,8 @@ class Fanforce
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def curl_command
|
22
|
-
|
22
|
+
method = begin @request.method rescue nil end
|
23
|
+
case method
|
23
24
|
when :get
|
24
25
|
"curl \"#{@path}?#{to_param(@query_params)}\""
|
25
26
|
when :post
|
@@ -29,7 +30,7 @@ class Fanforce
|
|
29
30
|
when :delete
|
30
31
|
"curl --request DELETE \"#{@path}?#{to_param(@query_params)}\""
|
31
32
|
else
|
32
|
-
"
|
33
|
+
"Unknown request method so used POST: curl -X POST -d \"#{to_param(@query_params)}\" #{@path}"
|
33
34
|
end
|
34
35
|
end
|
35
36
|
def code() end
|
data/lib/fanforce/version.rb
CHANGED