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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a30c5a6a7a52cf10668a197253627275f90ba81d
4
- data.tar.gz: cd85ee7bdec9cf5eb1e53af589605c457668c860
3
+ metadata.gz: ad0634aa27072d041d303866d44bb69147c16f39
4
+ data.tar.gz: 5690b5b2ffccc18185c24bafb3dba43ec0151c3a
5
5
  SHA512:
6
- metadata.gz: 49dc51b403873944044214cb28eeeade45e671a0536e65018fd23fc410c4adfc8fd1553a3d0e772425ea9783b1b699057cbb3656bc1e9e5928118d3bf0eda696
7
- data.tar.gz: 1a5ad56cb83e4688cdb65221705f96feb9dd97b7ddf784a77ae60ca1ef7b5e030b6a0d70c9c002a37f374ac2abce2e2e86645eb919172f148bfe4386e174d210
6
+ metadata.gz: 36a9ed73f45f852b8bfae648fdf9b0c9c7592bed73e5e0ffb7115c43976f508cd3dd23616d4d5534566665042a437ca52f324b7a8d6e82760265af0f92b804ce
7
+ data.tar.gz: aa40ad2f54af2102cdb2be1994cc645b2cee4af856975399b91d39e7cb1d129d97d6e4a2919424d4fbde38f33daacb4446a9c98f962d08a36f8a16600137629d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.3.0
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'
@@ -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::REQUEST_HANDLER]
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::REQUEST_HANDLER]= handler(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::REQUEST_HANDLER].instance_exec(&@hook_block)
16
+ env[Rack::App::Constants::ENV::HANDLER].instance_exec(&@hook_block)
17
17
  nil
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.0
4
+ version: 6.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Luzsi