rack-app 5.3.1 → 5.3.2

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: 404abc3b20ea7c1083b6d6bcee08bede23080063
4
- data.tar.gz: 7fdd0ae3f7d9b9bf7f274f7cf4f048d9171542d3
3
+ metadata.gz: 75d771d3e7874808cfdaeeea7d4f2a4b173f75cd
4
+ data.tar.gz: 42d209dfc6c8fafdf6b69e68fdaf3e736e2e18f5
5
5
  SHA512:
6
- metadata.gz: 1d405976c7ec6ba8c4f4f4cd2e70b4f64269e71a02f4b3074afe48a5c3ec9f00532023a3335d1a2c7c1a949bdacbf8c330cdb66086c13838cb2960e51a107d0b
7
- data.tar.gz: a7bbdce241d51219b0060e0332094d5f111359504d9466e4b55736ef956f7f86a687db586b79b7b3146289e4fc4ce645839d204384fc5efb217a1683d37b8642
6
+ metadata.gz: b4bb51aa0b67b4322136672085a058004f8ac9a2c36ba2bfb332996ada02de5c5ea62b36b61f2434bc8f6a60708e9efeb79aaba46567de83fcc37f44ab136e77
7
+ data.tar.gz: 39e5569083207ebf6007ac940b0ba13093b4be4573f70366130b2522390b336e607e3ea53d8bc325f37713f913c5db6fc09b82e7e8db176542a46f84f55851a5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.3.1
1
+ 5.3.2
@@ -21,7 +21,10 @@ module Rack::App::Constants
21
21
  end
22
22
 
23
23
  module ENV
24
- PATH_INFO = (defined?(::Rack::PATH_INFO) ? ::Rack::PATH_INFO : "PATH_INFO".freeze)
24
+ PATH_INFO = (defined?(::Rack::PATH_INFO) ? ::Rack::PATH_INFO : "PATH_INFO".freeze)
25
+ REQUEST_METHOD = (defined?(::Rack::REQUEST_METHOD) ? ::Rack::REQUEST_METHOD : "REQUEST_METHOD".freeze)
26
+ REQUEST_PATH = (defined?(::Rack::REQUEST_PATH) ? ::Rack::REQUEST_PATH : "REQUEST_PATH".freeze)
27
+
25
28
  REQUEST_HANDLER = 'rack-app.handler'
26
29
  SERIALIZER = 'rack-app.serializer'
27
30
  PARSED_PARAMS = 'rack-app.parsed_params'
@@ -23,7 +23,7 @@ class Rack::App::FileServer
23
23
  def self.serve_file(env, file_path)
24
24
  file_server = self.new(File.dirname(file_path))
25
25
  env = env.dup
26
- env[::Rack::REQUEST_METHOD]= 'GET'
26
+ env[::Rack::App::Constants::ENV::REQUEST_METHOD]= 'GET'
27
27
  env[::Rack::App::Constants::ENV::PATH_INFO]= file_path
28
28
  file_server.call(env)
29
29
  end
@@ -2,7 +2,7 @@ class Rack::App::Router::Base
2
2
 
3
3
  def call(env)
4
4
 
5
- request_method= env[Rack::REQUEST_METHOD]
5
+ request_method= env[::Rack::App::Constants::ENV::REQUEST_METHOD]
6
6
  path_info= env[Rack::App::Constants::ENV::PATH_INFO]
7
7
 
8
8
  context = fetch_context(request_method, path_info)
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: 5.3.1
4
+ version: 5.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Luzsi