Browse Source

[ruby/grape] Update Ruby to 3.4 (#9650)

Also set Date header for Puma only.
Petrik de Heus 5 months ago
parent
commit
d9e8d81e3f

+ 1 - 1
frameworks/Ruby/grape/Gemfile

@@ -4,6 +4,6 @@ gem 'mysql2', '0.5.6'
 gem 'unicorn', '6.1.0'
 gem 'unicorn', '6.1.0'
 gem 'puma', '~> 6.4'
 gem 'puma', '~> 6.4'
 gem 'activerecord', '~> 7.1.0', :require => 'active_record'
 gem 'activerecord', '~> 7.1.0', :require => 'active_record'
-gem 'grape', '2.0.0'
+gem 'grape', '2.1.1'
 gem 'multi_json', require: 'multi_json'
 gem 'multi_json', require: 'multi_json'
 gem 'oj', '~> 3.16'
 gem 'oj', '~> 3.16'

+ 1 - 1
frameworks/Ruby/grape/README.md

@@ -11,7 +11,7 @@ comparing a variety of web servers.
 ## Infrastructure Software Versions
 ## Infrastructure Software Versions
 The tests were run with:
 The tests were run with:
 
 
-* [Ruby 3.3](http://www.ruby-lang.org/)
+* [Ruby 3.4](http://www.ruby-lang.org/)
 * [Grape 2.0.0](http://www.ruby-grape.org/)
 * [Grape 2.0.0](http://www.ruby-grape.org/)
 * [Unicorn 6.1.0](https://yhbt.net/unicorn/)
 * [Unicorn 6.1.0](https://yhbt.net/unicorn/)
 * [Puma 6.4](https://puma.io/)
 * [Puma 6.4](https://puma.io/)

+ 1 - 1
frameworks/Ruby/grape/config.ru

@@ -77,7 +77,7 @@ module Acme
 
 
   class API < Grape::API
   class API < Grape::API
     before do
     before do
-      header 'Date', Time.now.httpdate
+      header 'Date', Time.now.httpdate if defined?(Puma)
       header 'Server', 'WebServer'
       header 'Server', 'WebServer'
     end
     end
     content_type :json, 'application/json'
     content_type :json, 'application/json'

+ 1 - 1
frameworks/Ruby/grape/grape-unicorn.dockerfile

@@ -1,4 +1,4 @@
-FROM ruby:3.3
+FROM ruby:3.4
 
 
 ENV RUBY_YJIT_ENABLE=1
 ENV RUBY_YJIT_ENABLE=1
 
 

+ 1 - 1
frameworks/Ruby/grape/grape.dockerfile

@@ -1,4 +1,4 @@
-FROM ruby:3.3
+FROM ruby:3.4
 
 
 ENV RUBY_YJIT_ENABLE=1
 ENV RUBY_YJIT_ENABLE=1