rackup 2.2.0 → 2.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 500a1eebb3f2dc73a7f4e0b50753603f19f4b2c841a55c01c047188ed6d2214f
4
- data.tar.gz: 7e51b56d52e396e9c208b06c7a25be3389d0df9c55c3c3333f0379e5aec73719
3
+ metadata.gz: 5f990d6a3b6103f23a015bacb051fd97d92b81abe5ecf57dc327c7b260d1514e
4
+ data.tar.gz: 92844c4a1bd05547a93a0b4742c20cf6c41b05a67f43d90fc38a17bb147d8fe0
5
5
  SHA512:
6
- metadata.gz: 9aa96ee4990bf4d93f23c4d3d2b16b28c793e9f4fabc2a24a007f241067262168608bcf0e2091368131563dfe9bb4b7fc2845330a75e96c7886b956a12e5f933
7
- data.tar.gz: 62821749a10a8f337c3f0b4dde6f83fab067c68a1d3864f74a8cd1b28fb62d8be8430a571112ea5f5b60b753ad278140d130ec3f73c3a67f739345b288f73a49
6
+ metadata.gz: 6ba5437ff800937391e10b6018de1097eb6022329820e6588d34324c35d78a606dc0bdfb17299ee2e9f251a474f765fc87b954bf58ea5ea1754b7848cc8db174
7
+ data.tar.gz: 68c499a29127a5989a4d893cdd64706850d03a30b257ad1b3f3745507652d5678a83eecb18aa398e8c4bfcfd18a2891e1f718e7dc969033d068584d03cfe7128
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2022-2023, by Samuel Williams.
5
5
 
6
6
  module Rackup
7
- VERSION = "2.2.0"
7
+ VERSION = "2.2.1"
8
8
  end
data/lib/rackup.rb CHANGED
@@ -6,3 +6,16 @@
6
6
  require_relative 'rackup/handler'
7
7
  require_relative 'rackup/server'
8
8
  require_relative 'rackup/version'
9
+
10
+ begin
11
+ # Although webrick is gone from Ruby since 3.0, it still warns all the way
12
+ # through to 3.3. Only on 3.4 will requiring it not produce a warning anymore.
13
+ verbose, $VERBOSE = $VERBOSE, nil
14
+ require 'webrick'
15
+ # If the user happens to have webrick in their bundle, make the handler available.
16
+ require_relative 'rackup/handler/webrick'
17
+ rescue LoadError
18
+ # ¯\_(ツ)_/¯
19
+ ensure
20
+ $VERBOSE = verbose
21
+ end
data/releases.md CHANGED
@@ -5,3 +5,20 @@ All notable changes to this project will be documented in this file. For info on
5
5
  ## v2.2.0
6
6
 
7
7
  - Remove old rack shims.
8
+ - Remove `webrick` dependency.
9
+
10
+ ## v2.1.0
11
+
12
+ - Correctly support streaming responses with `webrick`.
13
+
14
+ ## v2.0.0
15
+
16
+ - Initial release and migration of code from `rack`.
17
+
18
+ ## v1.0.1
19
+
20
+ - Fix `rackup.rb` invalid requires.
21
+
22
+ ## v1.0.0
23
+
24
+ - Initial release of empty shim for Rack v2.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rackup
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -67,7 +67,7 @@ authors:
67
67
  autorequire:
68
68
  bindir: bin
69
69
  cert_chain: []
70
- date: 2024-11-02 00:00:00.000000000 Z
70
+ date: 2024-11-13 00:00:00.000000000 Z
71
71
  dependencies:
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: rack
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubygems_version: 3.5.11
127
+ rubygems_version: 3.5.22
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: A general server command for Rack applications.