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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDU1ZWM4ZmZhNjczM2Q4YmQzNGNhMjAzNmE2NGQwMzg4NzIzNmI5Mw==
4
+ ZWI4MzdiMTRmN2UwOGVlYTE2Yzg3ZWI4NTdiMmY3MDQ5YzU5YzJlNw==
5
5
  data.tar.gz: !binary |-
6
- MjBlMzFmM2E5ZDViNDYwMjQ5ZTEwMDdhOTBjYzY1ZTM3ZTA1MDZjOQ==
6
+ NDEwZGY1Y2Y2ZDJmMTg2MTBkZjBjNjQyNDgwMDU5ODFlMjY4MjViNQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NzMwZmI4NjQyM2FlZWFkMDFkNzI4YzgyZDlhNGY3Mjk1OTE0OGJhZjE5M2Ji
10
- YmRjYjA4MTE4NjcxNDAzNTUwNWI5OTc1NGE4MmQ4ZTM2ZjdhODUwOGRkMWQ2
11
- NDEzNjQ3YWZhMjgyMjcyNThkNGRkN2I5ODE1YTc4Y2Y0Y2U1NDY=
9
+ NTgyNzc2Mzk0ZGUwOTlhODU5OTJiNGEzOGI4NzdkNDMzMmZmNWUzZTlkMjQz
10
+ YTEyMGQxMjNkOGJhZGE0YjVjODlmYTk0YzEzMGU1M2JkNDAyZjcyZjcxOGRm
11
+ ZDJiOWEzMGFhZjQ5ZWM2Zjk1NDFjZjU4MjYzMTk3Nzc5NWVjYTE=
12
12
  data.tar.gz: !binary |-
13
- ZjE5YmM4ZWEyNGRlMTU3MDVjOTgwNGQyM2Q1YTU1MzhjODk4YzFkYmYyMzdl
14
- YThkODYwYTg4Y2UyNzFiNTJiMWY4ZGQ2MzcxNWFhMGM1NjgzOGJiNWY4NzQ1
15
- OTU5MDg0MjRiYjBkZDhhZjY0NjVkMDM1NmI0N2JiMjc5NTk4YmE=
13
+ MThkZTEzOGY5ZDQ3NDQ0NzlhZWZiYmI3YzZlMmM1NDU2YTBhOGVhMzkxOWMy
14
+ OTRmZGYzZDZjY2Y0MjI0NDQyMDA3OGNmNzAzNjgyMjhhYjNkYmI4OTM5OTY2
15
+ NzFlMTFiMGMzMWNjYTQ2YzQ2NGQxZDQ1MTRjMDc0Njc1YmRhMmU=
@@ -1,9 +1,5 @@
1
- class Fanforce
2
- require 'fanforce/errors'
3
- require_relative 'fanforce/api/version'
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
 
@@ -0,0 +1,9 @@
1
+ class Fanforce
2
+ require 'fanforce/errors'
3
+
4
+ require_relative 'api/_main'
5
+ require_relative 'api/version'
6
+ require_relative 'api/ff_globals'
7
+ require_relative 'api/error'
8
+ end
9
+
@@ -2,12 +2,10 @@ require 'rest-client'
2
2
  require_relative 'utils'
3
3
  require_relative 'response'
4
4
 
5
- module Fanforce::Api
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
 
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
- module Api
3
- VERSION = '0.8.0'
2
+ class Api
3
+ VERSION = '0.8.1'
4
4
  end
5
5
  end
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.0
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