rack-app 9.0.0 → 10.0.0

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
  SHA256:
3
- metadata.gz: d6895f4a62b9e5714c7f31f100ffdd705dfb3af6d4e73f823b99fca71526602f
4
- data.tar.gz: 8377e012c98cc1010ffb9af5cca8ae46d79d9bb4dd8ad80799eb2e02fef2aff9
3
+ metadata.gz: 7b3058bb6d9204572e2c65f667ea438a8122a47463fb4403ce033f05bf026234
4
+ data.tar.gz: 8948e893f2801919abce11a18b437530263dadb3111daa8a4fa3ec3a58fee66f
5
5
  SHA512:
6
- metadata.gz: 21c9910e0cea0f738cab34e536cd9c180ef29f611ceaa54cb1909feddb6e0749ad6791bec4ef2a97d17d5da2267d28371773d77e70b4c8c813d79ac776bc836b
7
- data.tar.gz: 2ad9151b5b2570acab5b52631ec8298ac48182fc4869075ba30a42f706f666f5580143fb3fbae7332145431cee1d08e2df87538df46337f96ce1699c7a88be83
6
+ metadata.gz: f0407ce827d7f76bbaa08b240977f985ce7f4eb77adc38ebb44e0e08cda29d2d873db29f351220d867cfa6bfd6d57dd244a1a07103466d01c052076a468c27a0
7
+ data.tar.gz: 674026a697470157da4809c7270223e1177c662553f5d09a1c6260a979ed3cdec9e9233c8504ac0bdfdcff12b7b6cd7e4afb392e3596f5c45f42fe86bf343341
data/VERSION CHANGED
@@ -1 +1 @@
1
- 9.0.0
1
+ 10.0.0
@@ -45,7 +45,7 @@ module Rack::App::Constants
45
45
  SERIALIZER = 'rack-app.serializer'.freeze
46
46
  CONTENT_TYPE = 'CONTENT_TYPE'.freeze
47
47
 
48
- PARAMS_GETTER = 'rack-app.params.getter'
48
+ PARAMS_GETTER = 'rack-app.params.getter'.freeze
49
49
  PARAMS = 'rack-app.params.object'.freeze
50
50
 
51
51
  MERGED_PARAMS = 'rack-app.params.merged'.freeze
@@ -24,7 +24,7 @@ class Rack::App::Middlewares::Configuration
24
24
  protected
25
25
 
26
26
  def setup_handler(env)
27
- request = ::Rack::Request.new(env)
27
+ request = ::Rack::App::Request.new(env)
28
28
  response = ::Rack::Response.new
29
29
  h = @handler_class.new
30
30
  h.env = env
@@ -0,0 +1,16 @@
1
+ require "rack/request"
2
+ class Rack::App::Request < ::Rack::Request
3
+
4
+ def params
5
+ @env[::Rack::App::Constants::ENV::PARAMS].to_hash
6
+ end
7
+
8
+ def path_segments_params
9
+ @env[::Rack::App::Constants::ENV::PARAMS].path_segments_params
10
+ end
11
+
12
+ def query_string_params
13
+ @env[::Rack::App::Constants::ENV::PARAMS].query_string_params
14
+ end
15
+
16
+ end
data/lib/rack/app.rb CHANGED
@@ -15,6 +15,7 @@ class Rack::App
15
15
  require 'rack/app/logger'
16
16
  require 'rack/app/params'
17
17
  require 'rack/app/router'
18
+ require 'rack/app/request'
18
19
  require 'rack/app/payload'
19
20
  require 'rack/app/handlers'
20
21
  require 'rack/app/endpoint'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.0
4
+ version: 10.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Luzsi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-06 00:00:00.000000000 Z
11
+ date: 2023-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -155,6 +155,7 @@ files:
155
155
  - lib/rack/app/payload/parser.rb
156
156
  - lib/rack/app/payload/parser/builder.rb
157
157
  - lib/rack/app/payload/parser/builder/formats.rb
158
+ - lib/rack/app/request.rb
158
159
  - lib/rack/app/request_configurator.rb
159
160
  - lib/rack/app/request_stream.rb
160
161
  - lib/rack/app/router.rb