Skip to content

Commit d5981af

Browse files
authored
[ruby/rack] Remove Unicorn (#10228)
Unicorn hasn't been updated for 4 years and seems unmaintained. It isn't the fastest on any of the benchmarks either.
1 parent 2fefcb1 commit d5981af

File tree

6 files changed

+1
-74
lines changed

6 files changed

+1
-74
lines changed

frameworks/Ruby/rack/Gemfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ group :puma, optional: true do
3535
gem 'puma', '~> 7.1'
3636
end
3737

38-
group :unicorn, optional: true do
39-
gem 'logger' # required by unicorn on Ruby 3.5
40-
gem 'unicorn', '~> 6.1', platforms: %i[ruby windows]
41-
end
42-
4338
group :development, optional: true do
4439
gem 'rack-test'
4540
gem 'rubocop', platforms: %i[ruby windows]

frameworks/Ruby/rack/Gemfile.lock

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ GEM
6161
io-stream (0.6.1)
6262
iodine (0.7.58)
6363
json (2.13.2)
64-
kgio (2.11.4)
6564
language_server-protocol (3.17.0.4)
6665
lint_roller (1.1.0)
6766
localhost (1.3.1)
@@ -104,7 +103,6 @@ GEM
104103
rackup (2.2.1)
105104
rack (>= 3)
106105
rainbow (3.1.1)
107-
raindrops (0.20.1)
108106
rake (13.3.0)
109107
regexp_parser (2.10.0)
110108
rubocop (1.73.2)
@@ -137,9 +135,6 @@ GEM
137135
unicode-display_width (3.1.4)
138136
unicode-emoji (~> 4.0, >= 4.0.4)
139137
unicode-emoji (4.0.4)
140-
unicorn (6.1.0)
141-
kgio (~> 2.6)
142-
raindrops (~> 0.7)
143138

144139
PLATFORMS
145140
arm64-darwin-24
@@ -163,7 +158,6 @@ DEPENDENCIES
163158
sequel
164159
sequel_pg
165160
tzinfo-data (= 1.2023.3)
166-
unicorn (~> 6.1)
167161

168162
BUNDLED WITH
169163
2.7.0

frameworks/Ruby/rack/benchmark_config.json

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,6 @@
4444
"display_name": "rack-iodine-mri-sequel-raw",
4545
"notes": ""
4646
},
47-
"unicorn": {
48-
"json_url": "/json",
49-
"plaintext_url": "/plaintext",
50-
"db_url": "/db",
51-
"query_url": "/queries?queries=",
52-
"fortune_url": "/fortunes",
53-
"update_url": "/updates?queries=",
54-
"port": 8080,
55-
"approach": "Realistic",
56-
"classification": "Platform",
57-
"orm": "raw",
58-
"database": "Postgres",
59-
"framework": "rack",
60-
"language": "Ruby",
61-
"platform": "Mri",
62-
"webserver": "Unicorn",
63-
"os": "Linux",
64-
"database_os": "Linux",
65-
"display_name": "rack-unicorn-mri-sequel-raw",
66-
"notes": ""
67-
},
6847
"falcon": {
6948
"json_url": "/json",
7049
"plaintext_url": "/plaintext",

frameworks/Ruby/rack/config/unicorn.rb

Lines changed: 0 additions & 11 deletions
This file was deleted.

frameworks/Ruby/rack/hello_world.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,7 @@ def respond(content_type, body)
101101
]
102102
end
103103

104-
if defined?(Unicorn)
105-
def headers(content_type, body)
106-
{
107-
CONTENT_TYPE => content_type,
108-
SERVER => SERVER_STRING,
109-
CONTENT_LENGTH => body.bytesize.to_s
110-
}
111-
end
112-
elsif defined?(Falcon) || defined?(Puma)
104+
if defined?(Falcon) || defined?(Puma)
113105
def headers(content_type, _)
114106
{
115107
CONTENT_TYPE => content_type,

frameworks/Ruby/rack/rack-unicorn.dockerfile

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)