fanforce 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/fanforce/api/_main.rb +8 -8
- data/lib/fanforce/api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDQzNzczOWNiNmM0NjBhY2VkZDAwZmE3ZGIwNWYzNWU0MmRlNWEzOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTVhOWNiMjJkYTRlOTBhMGNkNzY5NTJkNDk4ODA2ZTM0MGE5ZDA1MQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDlmYmFlNjdiYTc0OTA2YTg1MjE5ZGM4ZDg1MGE0YmZiZDVkMGEyNTM2YzFh
|
10
|
+
MTBmODcyNmIyMGZjNTJlZmUwMjM3YTJhZjBlZWM0ODcyM2VmZDQ2N2QxYzk3
|
11
|
+
ZDg0YjJmN2EwODExZWZiYWNmMTU1NGY3MGUxYTYxYzk5Y2M2NTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjUxMzE4Yjc0NDY0YmVhY2JkMmY0OWIzNGNmYmVhMGM0NTMyMmJmZmI1YjJk
|
14
|
+
MjM2MWRiNWMxMjRiYWM1Y2ZhZmUwZGZlMmZlMzBhNjBiZmUzYWUyMjFkZjJi
|
15
|
+
OGI4ZjNiZjFkZWRmNDYzZDc5OTEwNWViYzU0ZjhlMDE2OTRhNDQ=
|
data/lib/fanforce/api/_main.rb
CHANGED
@@ -25,13 +25,6 @@ module Fanforce::Api
|
|
25
25
|
params.merge!(collect_known_params params_to_add)
|
26
26
|
end
|
27
27
|
|
28
|
-
def get(path, req_params={})
|
29
|
-
req_params = apply_auth(req_params)
|
30
|
-
RestClient.get(url(path, req_params), :accept => :json) do |response, request, result, &block|
|
31
|
-
Fanforce::Response.process(response, request, complete_url(path), req_params)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
28
|
def url(path, req_params={})
|
36
29
|
req_params = apply_auth(req_params)
|
37
30
|
"#{complete_url(path)}?#{to_query_string(req_params)}"
|
@@ -42,6 +35,13 @@ module Fanforce::Api
|
|
42
35
|
Fanforce::Utils.curl_command(method, complete_url(path), req_params)
|
43
36
|
end
|
44
37
|
|
38
|
+
def get(path, req_params={})
|
39
|
+
req_params = apply_auth(req_params)
|
40
|
+
RestClient.get(url(path, req_params), :accept => :json) do |response, request, result, &block|
|
41
|
+
Fanforce::Response.process(response, request, complete_url(path), req_params)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
45
|
def post(path, req_params={})
|
46
46
|
url = complete_url(path)
|
47
47
|
req_params = apply_auth(req_params)
|
@@ -61,7 +61,7 @@ module Fanforce::Api
|
|
61
61
|
def delete(path, req_params={})
|
62
62
|
url = complete_url(path)
|
63
63
|
req_params = apply_auth(req_params)
|
64
|
-
RestClient.delete(url,
|
64
|
+
RestClient.delete(url(path, req_params), :accept => :json) do |response, request, result, &block|
|
65
65
|
Fanforce::Api::Response.process(response, request, url, req_params)
|
66
66
|
end
|
67
67
|
end
|
data/lib/fanforce/api/version.rb
CHANGED