fanforce 0.7.4 → 0.7.5

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTJmN2M4ZjdkMzk5Y2Y4YTMwNTcxMjg4MmNmNTZiY2E3NDE3ZmQ1OQ==
4
+ MDQzNzczOWNiNmM0NjBhY2VkZDAwZmE3ZGIwNWYzNWU0MmRlNWEzOQ==
5
5
  data.tar.gz: !binary |-
6
- YjlhZGMyYTUzZWIxNzhlMWM3YzVmNmRmY2I1MTMzNzhjNTRkYmNiMQ==
6
+ YTVhOWNiMjJkYTRlOTBhMGNkNzY5NTJkNDk4ODA2ZTM0MGE5ZDA1MQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MmY5NDBmMWE4OWI4OWFhOWM3NWNhOGY5MTFkN2NhOGU0MjgyZjZhNTI5MTJl
10
- NzFmNWQ5Y2NiOGM5ZWY1MGQ2ODNlYWEwOTc0N2NkNTkzZDBkNTg5NzcyMTQw
11
- MGM5ZTk2OGMwYjc3MjcwNTFhZjA2Y2UxNWU4ZmNlNmFhZWM0NWY=
9
+ NDlmYmFlNjdiYTc0OTA2YTg1MjE5ZGM4ZDg1MGE0YmZiZDVkMGEyNTM2YzFh
10
+ MTBmODcyNmIyMGZjNTJlZmUwMjM3YTJhZjBlZWM0ODcyM2VmZDQ2N2QxYzk3
11
+ ZDg0YjJmN2EwODExZWZiYWNmMTU1NGY3MGUxYTYxYzk5Y2M2NTY=
12
12
  data.tar.gz: !binary |-
13
- ZWM5MmQ5ODQyNzM4OWYxZjY2NDkyMjY1YTk4ZTNmMTRlZDIwN2YwZDQ2MjQ0
14
- NGU5OGNlMjc2MzJhMDhmZDg1OWJmN2Y1ODU0NGYwYjA0M2QzYmJjYTFlMTgy
15
- YWRlNzAwODUwYmM4NzJiNzA3MzMxZWY5YTQxMDg1NDQyYmI0OTk=
13
+ YjUxMzE4Yjc0NDY0YmVhY2JkMmY0OWIzNGNmYmVhMGM0NTMyMmJmZmI1YjJk
14
+ MjM2MWRiNWMxMjRiYWM1Y2ZhZmUwZGZlMmZlMzBhNjBiZmUzYWUyMjFkZjJi
15
+ OGI4ZjNiZjFkZWRmNDYzZDc5OTEwNWViYzU0ZjhlMDE2OTRhNDQ=
@@ -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, {:params => to_query_string(req_params), :accept => :json}) do |response, request, result, &block|
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
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  module Api
3
- VERSION = '0.7.4'
3
+ VERSION = '0.7.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark