Quellcode durchsuchen

[ruby/rack] Update puma to 7.0.2 (#10107)

7.0.2 fixes several issues in 7.0.0.pre1.
Petrik de Heus vor 2 Tagen
Ursprung
Commit
2d0b0f627f

+ 1 - 1
frameworks/Ruby/rack/Gemfile

@@ -33,7 +33,7 @@ group :pitchfork, optional: true do
 end
 
 group :puma, optional: true do
-  gem 'puma', '7.0.0.pre1'
+  gem 'puma', '~> 7.0'
 end
 
 group :unicorn, optional: true do

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

@@ -94,7 +94,7 @@ GEM
     protocol-rack (0.11.2)
       protocol-http (~> 0.43)
       rack (>= 1.0)
-    puma (7.0.0.pre1)
+    puma (7.0.2)
       nio4r (~> 2.0)
     racc (1.8.1)
     rack (3.2.0)
@@ -156,7 +156,7 @@ DEPENDENCIES
   passenger (~> 6.0)
   pg (~> 1.5)
   pitchfork (~> 0.17)
-  puma (= 7.0.0.pre1)
+  puma (~> 7.0)
   rack (~> 3.0)
   rack-test
   rubocop

+ 0 - 11
frameworks/Ruby/rack/config/puma.rb

@@ -19,14 +19,3 @@ end
 
 workers num_workers
 threads num_threads, num_threads
-  # Use the `preload_app!` method when specifying a `workers` number.
-  # This directive tells Puma to first boot the application and load code
-  # before forking the application. This takes advantage of Copy On Write
-  # process behavior so workers use less memory.
-  #
-  preload_app!
-
-
-
-
-

+ 0 - 1
frameworks/Ruby/rack/pg_db.rb

@@ -28,7 +28,6 @@ class PgDb
     @world_select = @connection['SELECT id, randomNumber FROM World WHERE id = ?', :$id].prepare(:select, :select_by_id)
     @world_update = @connection['UPDATE World SET randomNumber = ? WHERE id = ?', :$random_number, :$id].prepare(:update,
                                                                                                                  :update_by_id)
-
     @fortune_select = @connection['SELECT id, message FROM Fortune'].prepare(:select, :select_all)
   end