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 +4 -4
- data/VERSION +1 -1
- data/lib/rack/app/constants.rb +1 -1
- data/lib/rack/app/middlewares/configuration.rb +1 -1
- data/lib/rack/app/request.rb +16 -0
- data/lib/rack/app.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b3058bb6d9204572e2c65f667ea438a8122a47463fb4403ce033f05bf026234
|
4
|
+
data.tar.gz: 8948e893f2801919abce11a18b437530263dadb3111daa8a4fa3ec3a58fee66f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0407ce827d7f76bbaa08b240977f985ce7f4eb77adc38ebb44e0e08cda29d2d873db29f351220d867cfa6bfd6d57dd244a1a07103466d01c052076a468c27a0
|
7
|
+
data.tar.gz: 674026a697470157da4809c7270223e1177c662553f5d09a1c6260a979ed3cdec9e9233c8504ac0bdfdcff12b7b6cd7e4afb392e3596f5c45f42fe86bf343341
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
10.0.0
|
data/lib/rack/app/constants.rb
CHANGED
@@ -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
|
@@ -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
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:
|
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-
|
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
|