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
|
-
|
4
|
+
ZmEyZWFmYjEzMzJjM2EzZDE1MDUyMTQxYWEyNDQwOTE3Njc5ZmQ1MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWUyYWMwZDczNDNkN2QwMDFiODM1ZDY1ZjZhZGUzNmY4YTU4OGI2Mw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjlhNzcwODI2MGViNGQzNWE2NmEwNjUyMzU1MjViYTkzZTkzZjA4NzVhMjYx
|
10
|
+
OGY2YmRjNjU0YTA4M2EzMWZiZTYzYTAyZTgyNWU2MWY1ZWRhY2Q3ZjAxOGE5
|
11
|
+
NzA1NzIwZjE5NGM3YWFkZWVkY2UzMGYxMWZlODNjODUxZjRlOWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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.
|
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?('
|
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
|
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.
|
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.
|
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.
|
264
|
+
version: '0.9'
|
265
265
|
- !ruby/object:Gem::Dependency
|
266
266
|
name: fanforce-errors
|
267
267
|
requirement: !ruby/object:Gem::Requirement
|