fanforce-app-factory 0.31.1 → 0.34.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
|
+
YTVlNTg4MTQ0MGY1MDY1NmY1MWU0NjljYjY5MzlmMDkwNDMwNmQyMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTc1OTMyOTA4NGU3NzY0NzMwN2IyYjIxMzdhZjljMDY2NzJlYmE4Yg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTU1NmIxNWEzZDhjMTAwNmFkYzRlNzBmNmRiYjExZmNjODY4MWQ0YTk2YWVk
|
10
|
+
NDBkMDAxM2Q3MzhmNWNkYzAyNGQzNTJmNTkxM2ZlYjAzZGRmNGExNzBkNWRh
|
11
|
+
NjhlYmZlODZiYzgzNDZkYWUwZjcxMzQ0NjM1NTM0MGU3MTNiOWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGUwMzNjNjZlMTcwYWIxMjZmYmUxMWJjZWJhNmE5ZTMxMTk3ZTAxZDA2OWVk
|
14
|
+
MGE4ZTZlMmMxNmQyMjBhMmMyZTU3MzZkNmFjNDM0NzczMzcyYTJlZWFmZjk5
|
15
|
+
ZDlmZWE4Nzc3ODY5YTRlNWJhNWUxZmI1M2ExM2ZjM2FiZWIzYzM=
|
data/lib/fanforce/app_factory.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
ENV['RACK_ENV'] ||= 'development'
|
2
2
|
####################################################################################
|
3
|
+
require 'rack/jsonr'
|
3
4
|
require 'fanforce/api'
|
4
5
|
require 'fanforce/worker'
|
5
6
|
require 'active_support/all'
|
@@ -53,7 +54,9 @@ module FanforceApp
|
|
53
54
|
return sprockets.index.call(env)
|
54
55
|
end
|
55
56
|
require_relative 'app_factory/_init_sinatra'
|
56
|
-
FanforceApp::Sinatra.new
|
57
|
+
app = FanforceApp::Sinatra.new
|
58
|
+
Rack::JSONR.new(app, :method_override => :all).call(env)
|
59
|
+
app.call(env)
|
57
60
|
end
|
58
61
|
|
59
62
|
require_relative 'app_factory/config/core_config'
|