rack 3.1.16 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/rack/version.rb CHANGED
@@ -5,17 +5,13 @@
5
5
  # Rack is freely distributable under the terms of an MIT-style license.
6
6
  # See MIT-LICENSE or https://opensource.org/licenses/MIT.
7
7
 
8
- # The Rack main module, serving as a namespace for all core Rack
9
- # modules and classes.
10
- #
11
- # All modules meant for use in your application are <tt>autoload</tt>ed here,
12
- # so it should be enough just to <tt>require 'rack'</tt> in your code.
13
-
14
8
  module Rack
15
- RELEASE = "3.1.16"
9
+ VERSION = "3.2.0"
10
+
11
+ RELEASE = VERSION
16
12
 
17
13
  # Return the Rack release as a dotted string.
18
14
  def self.release
19
- RELEASE
15
+ VERSION
20
16
  end
21
17
  end
data/lib/rack.rb CHANGED
@@ -34,7 +34,6 @@ module Rack
34
34
  autoload :Headers, "rack/headers"
35
35
  autoload :Lint, "rack/lint"
36
36
  autoload :Lock, "rack/lock"
37
- autoload :Logger, "rack/logger"
38
37
  autoload :MediaType, "rack/media_type"
39
38
  autoload :MethodOverride, "rack/method_override"
40
39
  autoload :Mime, "rack/mime"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.16
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leah Neukirchen
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-06-04 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: minitest
@@ -75,9 +75,9 @@ email: leah@vuxu.org
75
75
  executables: []
76
76
  extensions: []
77
77
  extra_rdoc_files:
78
- - README.md
79
78
  - CHANGELOG.md
80
79
  - CONTRIBUTING.md
80
+ - README.md
81
81
  files:
82
82
  - CHANGELOG.md
83
83
  - CONTRIBUTING.md
@@ -107,7 +107,6 @@ files:
107
107
  - lib/rack/headers.rb
108
108
  - lib/rack/lint.rb
109
109
  - lib/rack/lock.rb
110
- - lib/rack/logger.rb
111
110
  - lib/rack/media_type.rb
112
111
  - lib/rack/method_override.rb
113
112
  - lib/rack/mime.rb
@@ -142,6 +141,7 @@ metadata:
142
141
  changelog_uri: https://github.com/rack/rack/blob/main/CHANGELOG.md
143
142
  documentation_uri: https://rubydoc.info/github/rack/rack
144
143
  source_code_uri: https://github.com/rack/rack
144
+ rubygems_mfa_required: 'true'
145
145
  rdoc_options: []
146
146
  require_paths:
147
147
  - lib
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
158
  requirements: []
159
- rubygems_version: 3.6.2
159
+ rubygems_version: 3.6.7
160
160
  specification_version: 4
161
161
  summary: A modular Ruby webserver interface.
162
162
  test_files: []
data/lib/rack/logger.rb DELETED
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'logger'
4
- require_relative 'constants'
5
-
6
- warn "Rack::Logger is deprecated and will be removed in Rack 3.2.", uplevel: 1
7
-
8
- module Rack
9
- # Sets up rack.logger to write to rack.errors stream
10
- class Logger
11
- def initialize(app, level = ::Logger::INFO)
12
- @app, @level = app, level
13
- end
14
-
15
- def call(env)
16
- logger = ::Logger.new(env[RACK_ERRORS])
17
- logger.level = @level
18
-
19
- env[RACK_LOGGER] = logger
20
- @app.call(env)
21
- end
22
- end
23
- end