fanforce-api 0.8.0 → 0.8.1
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 +8 -8
- data/lib/fanforce.rb +3 -7
- data/lib/fanforce/api.rb +9 -0
- data/lib/fanforce/api/_main.rb +2 -4
- data/lib/fanforce/api/version.rb +2 -2
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWI4MzdiMTRmN2UwOGVlYTE2Yzg3ZWI4NTdiMmY3MDQ5YzU5YzJlNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDEwZGY1Y2Y2ZDJmMTg2MTBkZjBjNjQyNDgwMDU5ODFlMjY4MjViNQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTgyNzc2Mzk0ZGUwOTlhODU5OTJiNGEzOGI4NzdkNDMzMmZmNWUzZTlkMjQz
|
10
|
+
YTEyMGQxMjNkOGJhZGE0YjVjODlmYTk0YzEzMGU1M2JkNDAyZjcyZjcxOGRm
|
11
|
+
ZDJiOWEzMGFhZjQ5ZWM2Zjk1NDFjZjU4MjYzMTk3Nzc5NWVjYTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MThkZTEzOGY5ZDQ3NDQ0NzlhZWZiYmI3YzZlMmM1NDU2YTBhOGVhMzkxOWMy
|
14
|
+
OTRmZGYzZDZjY2Y0MjI0NDQyMDA3OGNmNzAzNjgyMjhhYjNkYmI4OTM5OTY2
|
15
|
+
NzFlMTFiMGMzMWNjYTQ2YzQ2NGQxZDQ1MTRjMDc0Njc1YmRhMmU=
|
data/lib/fanforce.rb
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
require_relative 'fanforce/api/_main'
|
5
|
-
require_relative 'fanforce/api/ff_globals'
|
6
|
-
require_relative 'fanforce/api/error'
|
7
|
-
include Fanforce::Api
|
1
|
+
require './fanforce/api'
|
2
|
+
class Fanforce < Fanforce::Api
|
3
|
+
# ToDo: remove Fanforce::Api from inheritance. Fanforce should be a bare class.
|
8
4
|
end
|
9
5
|
|
data/lib/fanforce/api.rb
ADDED
data/lib/fanforce/api/_main.rb
CHANGED
@@ -2,12 +2,10 @@ require 'rest-client'
|
|
2
2
|
require_relative 'utils'
|
3
3
|
require_relative 'response'
|
4
4
|
|
5
|
-
|
5
|
+
class Fanforce::Api
|
6
6
|
include Fanforce::Api::Utils
|
7
7
|
include Fanforce::Errors
|
8
8
|
|
9
|
-
def self.included(base) base.extend(self) end
|
10
|
-
|
11
9
|
def initialize(arg={})
|
12
10
|
if arg.is_a?(Hash)
|
13
11
|
add_params(arg)
|
@@ -38,7 +36,7 @@ module Fanforce::Api
|
|
38
36
|
def get(path, req_params={})
|
39
37
|
req_params = apply_auth(req_params)
|
40
38
|
RestClient.get(url(path, req_params), :accept => :json) do |response, request, result, &block|
|
41
|
-
Fanforce::Response.process(response, request, complete_url(path), req_params)
|
39
|
+
Fanforce::Api::Response.process(response, request, complete_url(path), req_params)
|
42
40
|
end
|
43
41
|
end
|
44
42
|
|
data/lib/fanforce/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fanforce-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Caleb Clark
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- Rakefile
|
69
69
|
- fanforce-api.gemspec
|
70
70
|
- lib/fanforce.rb
|
71
|
+
- lib/fanforce/api.rb
|
71
72
|
- lib/fanforce/api/_main.rb
|
72
73
|
- lib/fanforce/api/error.rb
|
73
74
|
- lib/fanforce/api/ff_globals.rb
|