Skip to content

Commit 2d0b0f6

Browse files
authored
[ruby/rack] Update puma to 7.0.2 (#10107)
7.0.2 fixes several issues in 7.0.0.pre1.
1 parent 2526605 commit 2d0b0f6

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

frameworks/Ruby/rack/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ group :pitchfork, optional: true do
3333
end
3434

3535
group :puma, optional: true do
36-
gem 'puma', '7.0.0.pre1'
36+
gem 'puma', '~> 7.0'
3737
end
3838

3939
group :unicorn, optional: true do

frameworks/Ruby/rack/Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ GEM
9494
protocol-rack (0.11.2)
9595
protocol-http (~> 0.43)
9696
rack (>= 1.0)
97-
puma (7.0.0.pre1)
97+
puma (7.0.2)
9898
nio4r (~> 2.0)
9999
racc (1.8.1)
100100
rack (3.2.0)
@@ -156,7 +156,7 @@ DEPENDENCIES
156156
passenger (~> 6.0)
157157
pg (~> 1.5)
158158
pitchfork (~> 0.17)
159-
puma (= 7.0.0.pre1)
159+
puma (~> 7.0)
160160
rack (~> 3.0)
161161
rack-test
162162
rubocop

frameworks/Ruby/rack/config/puma.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,3 @@
1919

2020
workers num_workers
2121
threads num_threads, num_threads
22-
# Use the `preload_app!` method when specifying a `workers` number.
23-
# This directive tells Puma to first boot the application and load code
24-
# before forking the application. This takes advantage of Copy On Write
25-
# process behavior so workers use less memory.
26-
#
27-
preload_app!
28-
29-
30-
31-
32-

frameworks/Ruby/rack/pg_db.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def prepare_statements
2828
@world_select = @connection['SELECT id, randomNumber FROM World WHERE id = ?', :$id].prepare(:select, :select_by_id)
2929
@world_update = @connection['UPDATE World SET randomNumber = ? WHERE id = ?', :$random_number, :$id].prepare(:update,
3030
:update_by_id)
31-
3231
@fortune_select = @connection['SELECT id, message FROM Fortune'].prepare(:select, :select_all)
3332
end
3433

0 commit comments

Comments
 (0)