瀏覽代碼

[ruby] Cleanup references to Unicorn and Passenger (#10059)

Most Unicorn and Passenger variants have been removed but there were
still some references.
Petrik de Heus 3 周之前
父節點
當前提交
fb5b6af23e

+ 1 - 9
frameworks/Ruby/rack-sequel/hello_world.rb

@@ -130,15 +130,7 @@ class HelloWorld
     ]
   end
 
-  if defined?(Unicorn)
-    def headers(content_type, body)
-      {
-        CONTENT_TYPE => content_type,
-        SERVER => SERVER_STRING,
-        CONTENT_LENGTH => body.bytesize.to_s
-      }
-    end
-  elsif defined?(Puma)
+  if defined?(Puma)
     def headers(content_type, _)
       {
         CONTENT_TYPE => content_type,

+ 0 - 1
frameworks/Ruby/roda-sequel/Gemfile

@@ -1,6 +1,5 @@
 source "https://rubygems.org"
 
-gem 'base64' # required by passenger on Ruby 3.4
 gem "erubi", "~> 1.12"
 gem "json", "~> 2.8"
 gem "sequel", "~> 5.67"

+ 0 - 2
frameworks/Ruby/roda-sequel/Gemfile.lock

@@ -1,7 +1,6 @@
 GEM
   remote: https://rubygems.org/
   specs:
-    base64 (0.2.0)
     bigdecimal (3.1.9)
     erubi (1.13.1)
     iodine (0.7.58)
@@ -27,7 +26,6 @@ PLATFORMS
   x86_64-linux
 
 DEPENDENCIES
-  base64
   erubi (~> 1.12)
   iodine (~> 0.7)
   json (~> 2.8)

+ 0 - 2
frameworks/Ruby/sinatra/README.md

@@ -14,8 +14,6 @@ The tests will be run with:
 
 * [Ruby 3.4](http://www.ruby-lang.org)
 * [Puma 6](http://puma.io)
-* [Passenger 6](https://www.phusionpassenger.com)
-* [Unicorn 6](https://bogomips.org/unicorn/)
 * [Sinatra 4](http://www.sinatrarb.com)
 * [ActiveRecord 7](https://github.com/rails/rails/tree/master/activerecord)
 * [MySQL 5.5](https://www.mysql.com)

+ 0 - 68
frameworks/Ruby/sinatra/config.toml

@@ -34,71 +34,3 @@ orm = "Full"
 platform = "Rack"
 webserver = "Puma"
 versus = "rack-puma-mri"
-
-[postgres-passenger-mri]
-urls.plaintext = "/plaintext"
-urls.json = "/json"
-urls.db = "/db"
-urls.query = "/queries?queries="
-urls.update = "/updates?queries="
-urls.fortune = "/fortunes"
-approach = "Realistic"
-classification = "Micro"
-database = "Postgres"
-database_os = "Linux"
-os = "Linux"
-orm = "Full"
-platform = "Rack"
-webserver = "Passenger"
-versus = "rack-postgres-passenger-mri"
-
-[postgres-unicorn-mri]
-urls.plaintext = "/plaintext"
-urls.json = "/json"
-urls.db = "/db"
-urls.query = "/queries?queries="
-urls.update = "/updates?queries="
-urls.fortune = "/fortunes"
-approach = "Realistic"
-classification = "Micro"
-database = "Postgres"
-database_os = "Linux"
-os = "Linux"
-orm = "Full"
-platform = "Rack"
-webserver = "Unicorn"
-versus = "rack-postgres-unicorn-mri"
-
-[passenger-mri]
-urls.plaintext = "/plaintext"
-urls.json = "/json"
-urls.db = "/db"
-urls.query = "/queries?queries="
-urls.update = "/updates?queries="
-urls.fortune = "/fortunes"
-approach = "Realistic"
-classification = "Micro"
-database = "MySQL"
-database_os = "Linux"
-os = "Linux"
-orm = "Full"
-platform = "Rack"
-webserver = "Passenger"
-versus = "rack-passenger-mri"
-
-[unicorn-mri]
-urls.plaintext = "/plaintext"
-urls.json = "/json"
-urls.db = "/db"
-urls.query = "/queries?queries="
-urls.update = "/updates?queries="
-urls.fortune = "/fortunes"
-approach = "Realistic"
-classification = "Micro"
-database = "MySQL"
-database_os = "Linux"
-os = "Linux"
-orm = "Full"
-platform = "Rack"
-webserver = "Unicorn"
-versus = "rack-unicorn-mri"