Procházet zdrojové kódy

[ruby/sinatra] Use Puma 7.0 (#10103)

Petrik de Heus před 21 hodinami
rodič
revize
6394199979

+ 1 - 1
frameworks/Ruby/sinatra-sequel/Gemfile

@@ -18,5 +18,5 @@ group :iodine, optional: true do
 end
 
 group :puma, optional: true do
-  gem 'puma', '~> 6.4', require: false
+  gem 'puma', '~> 7.0', require: false
 end

+ 2 - 2
frameworks/Ruby/sinatra-sequel/Gemfile.lock

@@ -10,7 +10,7 @@ GEM
       ruby2_keywords (~> 0.0.1)
     nio4r (2.7.4)
     pg (1.5.9)
-    puma (6.6.0)
+    puma (7.0.2)
       nio4r (~> 2.0)
     rack (3.2.0)
     rack-protection (4.1.1)
@@ -45,7 +45,7 @@ DEPENDENCIES
   iodine (~> 0.7)
   json (~> 2.8)
   pg (~> 1.5)
-  puma (~> 6.4)
+  puma (~> 7.0)
   sequel (~> 5.0)
   sequel_pg (~> 1.6)
   sinatra (~> 4.0)

+ 1 - 1
frameworks/Ruby/sinatra-sequel/README.md

@@ -13,7 +13,7 @@ comparing a variety of web platforms.
 The tests will be run with:
 
 * [Ruby 3.4](http://www.ruby-lang.org)
-* [Puma 6](http://puma.io)
+* [Puma 7](http://puma.io)
 * [Sinatra 4](http://www.sinatrarb.com)
 * [Sequel 5](http://sequel.jeremyevans.net)
 * [MySQL 5.5](https://www.mysql.com)

+ 4 - 0
frameworks/Ruby/sinatra-sequel/config/mri_puma.rb

@@ -5,3 +5,7 @@ num_workers, num_threads = auto_tune
 
 workers num_workers
 threads num_threads, num_threads
+
+before_fork do
+  Sequel::DATABASES.each(&:disconnect)
+end

+ 1 - 1
frameworks/Ruby/sinatra/Gemfile

@@ -17,5 +17,5 @@ group :iodine, optional: true do
 end
 
 group :puma, optional: true do
-  gem 'puma', '~> 6.4', require: false
+  gem 'puma', '~> 7.0', require: false
 end

+ 2 - 2
frameworks/Ruby/sinatra/Gemfile.lock

@@ -36,7 +36,7 @@ GEM
       ruby2_keywords (~> 0.0.1)
     nio4r (2.7.4)
     pg (1.5.9)
-    puma (6.6.0)
+    puma (7.0.2)
       nio4r (~> 2.0)
     rack (3.2.0)
     rack-protection (4.1.1)
@@ -72,7 +72,7 @@ DEPENDENCIES
   iodine (~> 0.7)
   json (~> 2.8)
   pg (~> 1.5)
-  puma (~> 6.4)
+  puma (~> 7.0)
   sinatra (~> 4.0)
   trilogy (~> 2.9.0)
 

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

@@ -13,9 +13,9 @@ comparing a variety of web platforms.
 The tests will be run with:
 
 * [Ruby 3.4](http://www.ruby-lang.org)
-* [Puma 6](http://puma.io)
+* [Puma 7](http://puma.io)
 * [Sinatra 4](http://www.sinatrarb.com)
-* [ActiveRecord 7](https://github.com/rails/rails/tree/master/activerecord)
+* [ActiveRecord 8](https://github.com/rails/rails/tree/master/activerecord)
 * [MySQL 5.5](https://www.mysql.com)
 * [Postgres 9.3](https://www.postgresql.org)