Skip to content

Commit 6394199

Browse files
authored
[ruby/sinatra] Use Puma 7.0 (#10103)
1 parent 24b87cd commit 6394199

File tree

7 files changed

+13
-9
lines changed

7 files changed

+13
-9
lines changed

frameworks/Ruby/sinatra-sequel/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ group :iodine, optional: true do
1818
end
1919

2020
group :puma, optional: true do
21-
gem 'puma', '~> 6.4', require: false
21+
gem 'puma', '~> 7.0', require: false
2222
end

frameworks/Ruby/sinatra-sequel/Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ GEM
1010
ruby2_keywords (~> 0.0.1)
1111
nio4r (2.7.4)
1212
pg (1.5.9)
13-
puma (6.6.0)
13+
puma (7.0.2)
1414
nio4r (~> 2.0)
1515
rack (3.2.0)
1616
rack-protection (4.1.1)
@@ -45,7 +45,7 @@ DEPENDENCIES
4545
iodine (~> 0.7)
4646
json (~> 2.8)
4747
pg (~> 1.5)
48-
puma (~> 6.4)
48+
puma (~> 7.0)
4949
sequel (~> 5.0)
5050
sequel_pg (~> 1.6)
5151
sinatra (~> 4.0)

frameworks/Ruby/sinatra-sequel/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ comparing a variety of web platforms.
1313
The tests will be run with:
1414

1515
* [Ruby 3.4](http://www.ruby-lang.org)
16-
* [Puma 6](http://puma.io)
16+
* [Puma 7](http://puma.io)
1717
* [Sinatra 4](http://www.sinatrarb.com)
1818
* [Sequel 5](http://sequel.jeremyevans.net)
1919
* [MySQL 5.5](https://www.mysql.com)

frameworks/Ruby/sinatra-sequel/config/mri_puma.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55

66
workers num_workers
77
threads num_threads, num_threads
8+
9+
before_fork do
10+
Sequel::DATABASES.each(&:disconnect)
11+
end

frameworks/Ruby/sinatra/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ group :iodine, optional: true do
1717
end
1818

1919
group :puma, optional: true do
20-
gem 'puma', '~> 6.4', require: false
20+
gem 'puma', '~> 7.0', require: false
2121
end

frameworks/Ruby/sinatra/Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ GEM
3636
ruby2_keywords (~> 0.0.1)
3737
nio4r (2.7.4)
3838
pg (1.5.9)
39-
puma (6.6.0)
39+
puma (7.0.2)
4040
nio4r (~> 2.0)
4141
rack (3.2.0)
4242
rack-protection (4.1.1)
@@ -72,7 +72,7 @@ DEPENDENCIES
7272
iodine (~> 0.7)
7373
json (~> 2.8)
7474
pg (~> 1.5)
75-
puma (~> 6.4)
75+
puma (~> 7.0)
7676
sinatra (~> 4.0)
7777
trilogy (~> 2.9.0)
7878

frameworks/Ruby/sinatra/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ comparing a variety of web platforms.
1313
The tests will be run with:
1414

1515
* [Ruby 3.4](http://www.ruby-lang.org)
16-
* [Puma 6](http://puma.io)
16+
* [Puma 7](http://puma.io)
1717
* [Sinatra 4](http://www.sinatrarb.com)
18-
* [ActiveRecord 7](https://github.com/rails/rails/tree/master/activerecord)
18+
* [ActiveRecord 8](https://github.com/rails/rails/tree/master/activerecord)
1919
* [MySQL 5.5](https://www.mysql.com)
2020
* [Postgres 9.3](https://www.postgresql.org)
2121

0 commit comments

Comments
 (0)