Skip to content

Commit d9e8d81

Browse files
authored
[ruby/grape] Update Ruby to 3.4 (TechEmpower#9650)
Also set Date header for Puma only.
1 parent d761d56 commit d9e8d81

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

frameworks/Ruby/grape/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ gem 'mysql2', '0.5.6'
44
gem 'unicorn', '6.1.0'
55
gem 'puma', '~> 6.4'
66
gem 'activerecord', '~> 7.1.0', :require => 'active_record'
7-
gem 'grape', '2.0.0'
7+
gem 'grape', '2.1.1'
88
gem 'multi_json', require: 'multi_json'
99
gem 'oj', '~> 3.16'

frameworks/Ruby/grape/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ comparing a variety of web servers.
1111
## Infrastructure Software Versions
1212
The tests were run with:
1313

14-
* [Ruby 3.3](http://www.ruby-lang.org/)
14+
* [Ruby 3.4](http://www.ruby-lang.org/)
1515
* [Grape 2.0.0](http://www.ruby-grape.org/)
1616
* [Unicorn 6.1.0](https://yhbt.net/unicorn/)
1717
* [Puma 6.4](https://puma.io/)

frameworks/Ruby/grape/config.ru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module Acme
7777

7878
class API < Grape::API
7979
before do
80-
header 'Date', Time.now.httpdate
80+
header 'Date', Time.now.httpdate if defined?(Puma)
8181
header 'Server', 'WebServer'
8282
end
8383
content_type :json, 'application/json'

frameworks/Ruby/grape/grape-unicorn.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:3.3
1+
FROM ruby:3.4
22

33
ENV RUBY_YJIT_ENABLE=1
44

frameworks/Ruby/grape/grape.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:3.3
1+
FROM ruby:3.4
22

33
ENV RUBY_YJIT_ENABLE=1
44

0 commit comments

Comments
 (0)