rack-app 6.3.0 → 6.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rack/app.rb +1 -1
- data/lib/rack/app/constants.rb +1 -1
- data/lib/rack/app/endpoint/executor.rb +1 -1
- data/lib/rack/app/middlewares/configuration.rb +1 -1
- data/lib/rack/app/middlewares/hooks/base.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad0634aa27072d041d303866d44bb69147c16f39
|
4
|
+
data.tar.gz: 5690b5b2ffccc18185c24bafb3dba43ec0151c3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36a9ed73f45f852b8bfae648fdf9b0c9c7592bed73e5e0ffb7115c43976f508cd3dd23616d4d5534566665042a437ca52f324b7a8d6e82760265af0f92b804ce
|
7
|
+
data.tar.gz: aa40ad2f54af2102cdb2be1994cc645b2cee4af856975399b91d39e7cb1d129d97d6e4a2919424d4fbde38f33daacb4446a9c98f962d08a36f8a16600137629d
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
6.3.
|
1
|
+
6.3.1
|
data/lib/rack/app.rb
CHANGED
@@ -7,9 +7,9 @@ class Rack::App
|
|
7
7
|
require 'rack/app/version'
|
8
8
|
require 'rack/app/constants'
|
9
9
|
|
10
|
+
require 'rack/app/utils'
|
10
11
|
require 'rack/app/cli'
|
11
12
|
require 'rack/app/test'
|
12
|
-
require 'rack/app/utils'
|
13
13
|
require 'rack/app/block'
|
14
14
|
require 'rack/app/logger'
|
15
15
|
require 'rack/app/params'
|
data/lib/rack/app/constants.rb
CHANGED
@@ -39,10 +39,10 @@ module Rack::App::Constants
|
|
39
39
|
REQUEST_METHOD = Rack::App::Constants.rack_constant(:REQUEST_METHOD, "REQUEST_METHOD")
|
40
40
|
|
41
41
|
ROUTER = 'rack-app.router'.freeze
|
42
|
+
HANDLER = 'rack-app.handler'.freeze
|
42
43
|
EXTNAME = 'rack-app.extname'.freeze
|
43
44
|
SERIALIZER = 'rack-app.serializer'.freeze
|
44
45
|
CONTENT_TYPE = 'CONTENT_TYPE'.freeze
|
45
|
-
REQUEST_HANDLER = 'rack-app.handler'.freeze
|
46
46
|
|
47
47
|
PARAMS_GETTER = 'rack-app.params.getter'
|
48
48
|
PARAMS = 'rack-app.params.object'.freeze
|
@@ -11,7 +11,7 @@ class Rack::App::Endpoint::Executor
|
|
11
11
|
protected
|
12
12
|
|
13
13
|
def execute(env)
|
14
|
-
request_handler = env[Rack::App::Constants::ENV::
|
14
|
+
request_handler = env[Rack::App::Constants::ENV::HANDLER]
|
15
15
|
set_response_body(request_handler, get_response_body(request_handler))
|
16
16
|
return request_handler.response
|
17
17
|
end
|
@@ -11,7 +11,7 @@ class Rack::App::Middlewares::Configuration
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def call(env)
|
14
|
-
env[::Rack::App::Constants::ENV::
|
14
|
+
env[::Rack::App::Constants::ENV::HANDLER]= handler(env)
|
15
15
|
env[::Rack::App::Constants::ENV::SERIALIZER]= @serializer
|
16
16
|
env[::Rack::App::Constants::ENV::PAYLOAD_PARSER]= @payload_parser
|
17
17
|
env[::Rack::App::Constants::ENV::PAYLOAD_GETTER]= lambda do
|
@@ -13,7 +13,7 @@ class Rack::App::Middlewares::Hooks::Base
|
|
13
13
|
|
14
14
|
def execute_hook(env)
|
15
15
|
catch :rack_response do
|
16
|
-
env[Rack::App::Constants::ENV::
|
16
|
+
env[Rack::App::Constants::ENV::HANDLER].instance_exec(&@hook_block)
|
17
17
|
nil
|
18
18
|
end
|
19
19
|
end
|