rackup 0.2.3 → 2.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: 23caa71b03397adf9344168de947fca289d1e4df6c577678e8b7fc8285c522e9
4
- data.tar.gz: e39027a50a3f54eb0928d6cef394f79cdd52c71da06854f2fcf5ba3a5722c083
3
+ metadata.gz: c58b0cded0e6edaba53fc8bd56f6b86b362feb6c96933ad81ee31f618015adcb
4
+ data.tar.gz: e5bf647ba5b1108790c63ed32dd9684f948fa7d6347359bf70ad39497ac5e144
5
5
  SHA512:
6
- metadata.gz: be73868bc8995d73ae90f9e70bc6b8141ff5b0c26276cfcb8c010376cf3b7bdfc97d3836afad0524de61cee8c9cb910f16806becae671569fbb3484702c84e6c
7
- data.tar.gz: fdad77f1c5b70d027c67a893db852bb825631772854df4bfdfc08d3d5ab2a2c40212375bc318f276695ce659014b7f72a2c80d62b0c0c73a0f6069649f21c845
6
+ metadata.gz: b9b36c45895e8e373d4308b4893e4cb93d2db3cf0e9fa24043f773eac0c4e735eecceba460591caa78bf99ff7271b98e14e161aa590658a3801e7007f6cbb807
7
+ data.tar.gz: 32b1b2c2768b0f5cf1b45b1f5b8e75742318c6a172c4af7d8e64990739d0754823534091520b677026630fd96a7395ee275f414fdfef52c8b5ab6413725f1fb7
data/lib/rack/handler.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Released under the MIT License.
4
+ # Copyright, 2022-2023, by Samuel Williams.
5
+
3
6
  warn "Rack::Handler is deprecated and replaced by Rackup::Handler"
4
7
  require_relative '../rackup/handler'
5
8
  module Rack
data/lib/rack/server.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Released under the MIT License.
4
+ # Copyright, 2022-2023, by Samuel Williams.
5
+
3
6
  warn "Rack::Server is deprecated and replaced by Rackup::Server"
4
7
  require_relative '../rackup/server'
5
8
  module Rack
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Released under the MIT License.
4
+ # Copyright, 2022-2023, by Samuel Williams.
5
+
3
6
  module Rackup
4
7
  module Handler
5
8
  class CGI
@@ -1,5 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Released under the MIT License.
4
+ # Copyright, 2022-2023, by Samuel Williams.
5
+ # Copyright, 2022, by Jeremy Evans.
6
+
3
7
  require 'webrick'
4
8
  require 'stringio'
5
9
 
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Released under the MIT License.
4
+ # Copyright, 2022-2023, by Samuel Williams.
5
+
3
6
  module Rackup
4
7
  # *Handlers* connect web servers with Rack.
5
8
  #
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Released under the MIT License.
4
+ # Copyright, 2022-2023, by Samuel Williams.
5
+
3
6
  require 'zlib'
4
7
 
5
8
  require 'rack/constants'
data/lib/rackup/server.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Released under the MIT License.
4
+ # Copyright, 2022-2023, by Samuel Williams.
5
+
3
6
  require 'optparse'
4
7
  require 'fileutils'
5
8
 
@@ -1,25 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright, 2022, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
3
+ # Released under the MIT License.
4
+ # Copyright, 2022-2023, by Samuel Williams.
22
5
 
23
6
  module Rackup
24
- VERSION = "0.2.3"
7
+ VERSION = "2.0.0"
25
8
  end
data/lib/rackup.rb CHANGED
@@ -1,8 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Released under the MIT License.
4
+ # Copyright, 2022-2023, by Samuel Williams.
5
+
3
6
  require_relative 'rackup/handler'
4
7
  require_relative 'rackup/server'
5
8
  require_relative 'rackup/version'
6
9
 
7
10
  require_relative 'rackup/handler/webrick'
8
- require_relative 'rackup/handler/cgi'
11
+ require_relative 'rackup/handler/cgi'
data/license.md ADDED
@@ -0,0 +1,79 @@
1
+ # MIT License
2
+
3
+ Copyright, 2007-2009, by Leah Neukirchen.
4
+ Copyright, 2008, by Marc-André Cournoyer.
5
+ Copyright, 2009, by Aaron Pfeifer.
6
+ Copyright, 2009, by Graham Batty.
7
+ Copyright, 2009-2010, by Michael Fellinger.
8
+ Copyright, 2009, by Genki Takiuchi.
9
+ Copyright, 2009, by Joshua Peek.
10
+ Copyright, 2009, by Yehuda Katz + Carl Lerche.
11
+ Copyright, 2009, by Carl Lerche.
12
+ Copyright, 2010, by Julik Tarkhanov.
13
+ Copyright, 2010-2016, by James Tucker.
14
+ Copyright, 2010, by Timur Batyrshin.
15
+ Copyright, 2010, by Loren Segal.
16
+ Copyright, 2010, by Andrew Bortz.
17
+ Copyright, 2010, by John Barnette.
18
+ Copyright, 2010, by John Sumsion.
19
+ Copyright, 2010, by Graham.
20
+ Copyright, 2011-2018, by Aaron Patterson.
21
+ Copyright, 2011, by Konstantin Haase.
22
+ Copyright, 2011, by Blake Mizerany.
23
+ Copyright, 2011, by Tsutomu Kuroda.
24
+ Copyright, 2012, by Jean Boussier.
25
+ Copyright, 2012, by Trevor Wennblom.
26
+ Copyright, 2012, by Anurag Priyam.
27
+ Copyright, 2012, by Hrvoje Šimić.
28
+ Copyright, 2013, by Uchio KONDO.
29
+ Copyright, 2013, by Tim Moore.
30
+ Copyright, 2013, by Postmodern.
31
+ Copyright, 2013, by Bas Vodde.
32
+ Copyright, 2013, by Joe Fiorini.
33
+ Copyright, 2014, by Wyatt Pan.
34
+ Copyright, 2014, by Lenny Marks.
35
+ Copyright, 2014, by Igor Bochkariov.
36
+ Copyright, 2014, by Max Cantor.
37
+ Copyright, 2014, by David Celis.
38
+ Copyright, 2014, by Rafael Mendonça França.
39
+ Copyright, 2014, by Jeremy Kemper.
40
+ Copyright, 2014, by Richard Schneeman.
41
+ Copyright, 2015, by Peter Wilmott.
42
+ Copyright, 2015, by Sean McGivern.
43
+ Copyright, 2015, by Tadashi Saito.
44
+ Copyright, 2015, by deepj.
45
+ Copyright, 2015, by Zachary Scott.
46
+ Copyright, 2016, by Sophie Deziel.
47
+ Copyright, 2016, by Kazuya Hotta.
48
+ Copyright, 2017, by Ryunosuke Sato.
49
+ Copyright, 2017-2023, by Samuel Williams.
50
+ Copyright, 2018, by Dillon Welch.
51
+ Copyright, 2018, by Yoshiyuki Hirano.
52
+ Copyright, 2018, by Nick LaMuro.
53
+ Copyright, 2019, by Rafael França.
54
+ Copyright, 2019, by Krzysztof Rybka.
55
+ Copyright, 2019, by Misaki Shioi.
56
+ Copyright, 2020-2022, by Jeremy Evans.
57
+ Copyright, 2021, by Katsuhiko YOSHIDA.
58
+ Copyright, 2021, by KS.
59
+ Copyright, 2021, by Stephen Paul Weber.
60
+ Copyright, 2022, by Akira Matsuda.
61
+ Copyright, 2022, by Andrew Hoglund.
62
+
63
+ Permission is hereby granted, free of charge, to any person obtaining a copy
64
+ of this software and associated documentation files (the "Software"), to deal
65
+ in the Software without restriction, including without limitation the rights
66
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
67
+ copies of the Software, and to permit persons to whom the Software is
68
+ furnished to do so, subject to the following conditions:
69
+
70
+ The above copyright notice and this permission notice shall be included in all
71
+ copies or substantial portions of the Software.
72
+
73
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
74
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
75
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
76
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
77
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
78
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
79
+ SOFTWARE.
data/readme.md ADDED
@@ -0,0 +1,31 @@
1
+ # Rackup
2
+
3
+ `rackup` provides a command line interface for running a Rack-compatible application.
4
+
5
+ [![Development Status](https://github.com/rack/rackup/workflows/Test/badge.svg)](https://github.com/rack/rackup/actions?workflow=Test)
6
+
7
+ ## Installation
8
+
9
+ ``` bash
10
+ $ gem install rackup
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ In a directory with your `config.ru` simply run the command:
16
+
17
+ ``` bash
18
+ $ rackup
19
+ ```
20
+
21
+ Your application should now be available locally, typically `http://localhost:9292`.
22
+
23
+ ## Contributing
24
+
25
+ We welcome contributions to this project.
26
+
27
+ 1. Fork it.
28
+ 2. Create your feature branch (`git checkout -b my-new-feature`).
29
+ 3. Commit your changes (`git commit -am 'Add some feature'`).
30
+ 4. Push to the branch (`git push origin my-new-feature`).
31
+ 5. Create new Pull Request.
data/security.md ADDED
@@ -0,0 +1,3 @@
1
+ # Security Policy
2
+
3
+ Please see our main security policy: https://github.com/rack/rack/security/policy
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rackup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Rack Contributors
7
+ - Samuel Williams
8
+ - Jeremy Evans
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2022-11-11 00:00:00.000000000 Z
12
+ date: 2023-01-18 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rack
@@ -16,14 +17,14 @@ dependencies:
16
17
  requirements:
17
18
  - - ">="
18
19
  - !ruby/object:Gem::Version
19
- version: 3.0.0.beta1
20
+ version: '3'
20
21
  type: :runtime
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
25
  - - ">="
25
26
  - !ruby/object:Gem::Version
26
- version: 3.0.0.beta1
27
+ version: '3'
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: webrick
29
30
  requirement: !ruby/object:Gem::Requirement
@@ -39,33 +40,33 @@ dependencies:
39
40
  - !ruby/object:Gem::Version
40
41
  version: '0'
41
42
  - !ruby/object:Gem::Dependency
42
- name: minitest
43
+ name: bundler
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
- - - "~>"
46
+ - - ">="
46
47
  - !ruby/object:Gem::Version
47
- version: '5.0'
48
+ version: '0'
48
49
  type: :development
49
50
  prerelease: false
50
51
  version_requirements: !ruby/object:Gem::Requirement
51
52
  requirements:
52
- - - "~>"
53
+ - - ">="
53
54
  - !ruby/object:Gem::Version
54
- version: '5.0'
55
+ version: '0'
55
56
  - !ruby/object:Gem::Dependency
56
- name: minitest-sprint
57
+ name: minitest
57
58
  requirement: !ruby/object:Gem::Requirement
58
59
  requirements:
59
- - - ">="
60
+ - - "~>"
60
61
  - !ruby/object:Gem::Version
61
- version: '0'
62
+ version: '5.0'
62
63
  type: :development
63
64
  prerelease: false
64
65
  version_requirements: !ruby/object:Gem::Requirement
65
66
  requirements:
66
- - - ">="
67
+ - - "~>"
67
68
  - !ruby/object:Gem::Version
68
- version: '0'
69
+ version: '5.0'
69
70
  - !ruby/object:Gem::Dependency
70
71
  name: minitest-global_expectations
71
72
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +82,7 @@ dependencies:
81
82
  - !ruby/object:Gem::Version
82
83
  version: '0'
83
84
  - !ruby/object:Gem::Dependency
84
- name: bundler
85
+ name: minitest-sprint
85
86
  requirement: !ruby/object:Gem::Requirement
86
87
  requirements:
87
88
  - - ">="
@@ -115,7 +116,6 @@ executables:
115
116
  extensions: []
116
117
  extra_rdoc_files: []
117
118
  files:
118
- - LICENSE.md
119
119
  - bin/rackup
120
120
  - lib/rack/handler.rb
121
121
  - lib/rack/server.rb
@@ -126,6 +126,9 @@ files:
126
126
  - lib/rackup/lobster.rb
127
127
  - lib/rackup/server.rb
128
128
  - lib/rackup/version.rb
129
+ - license.md
130
+ - readme.md
131
+ - security.md
129
132
  homepage: https://github.com/rack/rackup
130
133
  licenses:
131
134
  - MIT
@@ -145,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
148
  - !ruby/object:Gem::Version
146
149
  version: '0'
147
150
  requirements: []
148
- rubygems_version: 3.3.7
151
+ rubygems_version: 3.4.1
149
152
  signing_key:
150
153
  specification_version: 4
151
154
  summary: A general server command for Rack applications.
data/LICENSE.md DELETED
@@ -1,22 +0,0 @@
1
- Released under the MIT license.
2
-
3
- Copyright, 2007-2021, by [Leah Neukirchen](https://leahneukirchen.org).
4
- Copyright, 2022, by [Samuel G. D. Williams](https://www.codeotaku.com).
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in
14
- all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
- THE SOFTWARE.