fanforce-app-factory 0.7.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjUzYzdhN2FlNTYxOWFkZjg1OTlmYmY0MTRmNDhlNGVlNGM5OTcxZA==
4
+ ZmEyZWFmYjEzMzJjM2EzZDE1MDUyMTQxYWEyNDQwOTE3Njc5ZmQ1MA==
5
5
  data.tar.gz: !binary |-
6
- YjY0ODdhOTdmMTBlNjgzZmM0ZGYyZDI1YzE4NjRjOGJlNDhiNjVmOQ==
6
+ NWUyYWMwZDczNDNkN2QwMDFiODM1ZDY1ZjZhZGUzNmY4YTU4OGI2Mw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NzM1ZmVhM2EyMDMwNDE3MjlkZjdkYTZlMjA2MmUzNDIzOWRlNjllYjVlZTUz
10
- ZGQxYzg2M2EwZTNkZGYxOThiNmQ3MzY3N2EyMDJkMzMwNmMwOWM1OTNlMWI2
11
- NWRiMjkyMzQ1MmRiZWU1NjM5YzEyZTQ3OTI1NzZmMTAzMTdlNzM=
9
+ YjlhNzcwODI2MGViNGQzNWE2NmEwNjUyMzU1MjViYTkzZTkzZjA4NzVhMjYx
10
+ OGY2YmRjNjU0YTA4M2EzMWZiZTYzYTAyZTgyNWU2MWY1ZWRhY2Q3ZjAxOGE5
11
+ NzA1NzIwZjE5NGM3YWFkZWVkY2UzMGYxMWZlODNjODUxZjRlOWY=
12
12
  data.tar.gz: !binary |-
13
- YmZhZGI4NTM4ODc5MzMzY2Q4ZTk1MjI5ZGNhNTEwMjk2YzY0MWRiMjAxYTMy
14
- OTdmYzhiYWU0NTRiMjYyODkwNjBkYTNhNWY3ODBhYTVjY2JlN2VhZDFmMDMw
15
- NjAwMWEwYWFmNTJlMzE3ZjBiYjIyZjRkZGJlMTA1ZTIzOGMyZjU=
13
+ NjAyMmI4OTdmMDBjZTE0MTg0YWZmYzNmMTMxMDU2OWM4YWE5MmRlZjAzYzMx
14
+ OTcxZTAyMDc4NmNiMGVhNzMyZmRlZWY2NDlmM2M3N2YwNGU1ODBlM2I2MTEy
15
+ ZDAzNWFkMWExM2ZkMjczMjM5Y2Q1MjlhNjM5ZDVlYWNkOTI5YzM=
@@ -35,6 +35,6 @@ Gem::Specification.new do |gem|
35
35
  gem.add_runtime_dependency 'uglifier', '~> 1.3'
36
36
 
37
37
  gem.add_runtime_dependency 'rack-jsonr', '~> 0.2'
38
- gem.add_runtime_dependency 'fanforce-api', '~> 0.8'
38
+ gem.add_runtime_dependency 'fanforce-api', '~> 0.9'
39
39
  gem.add_runtime_dependency 'fanforce-errors', '~> 0.2'
40
40
  end
@@ -8,7 +8,7 @@ class FanforceApp::Sinatra
8
8
  error 400..600 do
9
9
  e = env['sinatra.error'] or (next response if e.nil?)
10
10
 
11
- if Object.const_defined?('Fanforce') and Fanforce.const_defined?('Api') and e.is_a?(Fanforce::Api::Error)
11
+ if Object.const_defined?('Fanforce') and Fanforce.const_defined?('API') and e.is_a?(Fanforce::API::Error)
12
12
  errors = e.errors
13
13
  else
14
14
  errors = e.respond_to?(:public_errors) ? e.public_errors : []
@@ -7,7 +7,7 @@ module Sinatra::FanforceHelpers
7
7
 
8
8
  def ff
9
9
  return @ff if @ff.present?
10
- @ff = Fanforce.new(params)
10
+ @ff = Fanforce::API.new(params)
11
11
  #return @ff if !@ff.valid_fanforce_request? and !@ff.valid_fanforce_js_request?
12
12
 
13
13
  @ff.auth Sinatra::FanforceHelpers.find_api_key(ff.params[:fanforce_id])
@@ -38,4 +38,10 @@ class FanforceApp::Sinatra
38
38
  end
39
39
  get '/dashboard.html' do route_dashboard(params) end
40
40
 
41
+ # PING-PONG ####################################################################
42
+ def route_ping_pong(params)
43
+ json success: true
44
+ end
45
+ get '/ping-pong' do route_ping_pong(params) end
46
+
41
47
  end
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  module AppFactory
3
- VERSION = '0.7.1'
3
+ VERSION = '0.8.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-app-factory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark
@@ -254,14 +254,14 @@ dependencies:
254
254
  requirements:
255
255
  - - ~>
256
256
  - !ruby/object:Gem::Version
257
- version: '0.8'
257
+ version: '0.9'
258
258
  type: :runtime
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
262
  - - ~>
263
263
  - !ruby/object:Gem::Version
264
- version: '0.8'
264
+ version: '0.9'
265
265
  - !ruby/object:Gem::Dependency
266
266
  name: fanforce-errors
267
267
  requirement: !ruby/object:Gem::Requirement