diff --git a/modules/openapi-generator/src/main/resources/ruby-client/gemspec.mustache b/modules/openapi-generator/src/main/resources/ruby-client/gemspec.mustache
index 4d5da109fb0..64a45113ebb 100644
--- a/modules/openapi-generator/src/main/resources/ruby-client/gemspec.mustache
+++ b/modules/openapi-generator/src/main/resources/ruby-client/gemspec.mustache
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
s.summary = "{{gemSummary}}{{^gemSummary}}{{{appName}}} Ruby Gem{{/gemSummary}}"
s.description = "{{gemDescription}}{{^gemDescription}}{{{appDescription}}}{{^appDescription}}{{{appName}}} Ruby Gem{{/appDescription}}{{/gemDescription}}"
s.license = "{{{gemLicense}}}{{^gemLicense}}Unlicense{{/gemLicense}}"
- s.required_ruby_version = "{{{gemRequiredRubyVersion}}}{{^gemRequiredRubyVersion}}>= 2.4{{/gemRequiredRubyVersion}}"
+ s.required_ruby_version = "{{{gemRequiredRubyVersion}}}{{^gemRequiredRubyVersion}}>= 2.7{{/gemRequiredRubyVersion}}"
{{#isFaraday}}
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
diff --git a/modules/openapi-generator/src/main/resources/ruby-client/gitlab-ci.mustache b/modules/openapi-generator/src/main/resources/ruby-client/gitlab-ci.mustache
index 3d57c5b30c0..3a253c45c05 100644
--- a/modules/openapi-generator/src/main/resources/ruby-client/gitlab-ci.mustache
+++ b/modules/openapi-generator/src/main/resources/ruby-client/gitlab-ci.mustache
@@ -7,7 +7,7 @@
- bundle install -j $(nproc)
parallel:
matrix:
- - RUBY_VERSION: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
+ - RUBY_VERSION: ['2.7', '3.0', '3.1']
image: "ruby:$RUBY_VERSION"
cache:
paths:
diff --git a/modules/openapi-generator/src/main/resources/ruby-client/travis.mustache b/modules/openapi-generator/src/main/resources/ruby-client/travis.mustache
index 0d1ed3815a6..ed7f55c38ce 100644
--- a/modules/openapi-generator/src/main/resources/ruby-client/travis.mustache
+++ b/modules/openapi-generator/src/main/resources/ruby-client/travis.mustache
@@ -1,12 +1,9 @@
language: ruby
cache: bundler
rvm:
- - 2.3
- - 2.4
- - 2.5
- - 2.6
- 2.7
- 3.0
+ - 3.1
script:
- bundle install --path vendor/bundle
- bundle exec rspec
diff --git a/pom.xml b/pom.xml
index 58ffb5e74b1..fec9d30b507 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1163,9 +1163,6 @@
samples/client/petstore/perl
- samples/client/petstore/ruby-faraday
- samples/client/petstore/ruby
- samples/client/petstore/ruby-autoload
@@ -1275,6 +1272,9 @@
samples/openapi3/client/petstore/python
samples/openapi3/client/petstore/python-prior
+ samples/client/petstore/ruby-faraday
+ samples/client/petstore/ruby
+ samples/client/petstore/ruby-autoload
diff --git a/samples/client/petstore/ruby-autoload/.gitlab-ci.yml b/samples/client/petstore/ruby-autoload/.gitlab-ci.yml
index 3d57c5b30c0..3a253c45c05 100644
--- a/samples/client/petstore/ruby-autoload/.gitlab-ci.yml
+++ b/samples/client/petstore/ruby-autoload/.gitlab-ci.yml
@@ -7,7 +7,7 @@
- bundle install -j $(nproc)
parallel:
matrix:
- - RUBY_VERSION: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
+ - RUBY_VERSION: ['2.7', '3.0', '3.1']
image: "ruby:$RUBY_VERSION"
cache:
paths:
diff --git a/samples/client/petstore/ruby-autoload/.travis.yml b/samples/client/petstore/ruby-autoload/.travis.yml
index 09210fc0376..88f8fc7cdfd 100644
--- a/samples/client/petstore/ruby-autoload/.travis.yml
+++ b/samples/client/petstore/ruby-autoload/.travis.yml
@@ -1,12 +1,9 @@
language: ruby
cache: bundler
rvm:
- - 2.3
- - 2.4
- - 2.5
- - 2.6
- 2.7
- 3.0
+ - 3.1
script:
- bundle install --path vendor/bundle
- bundle exec rspec
diff --git a/samples/client/petstore/ruby-autoload/petstore.gemspec b/samples/client/petstore/ruby-autoload/petstore.gemspec
index 0877b824074..d1e4d319efc 100644
--- a/samples/client/petstore/ruby-autoload/petstore.gemspec
+++ b/samples/client/petstore/ruby-autoload/petstore.gemspec
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
s.summary = "OpenAPI Petstore Ruby Gem"
s.description = "This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\"
s.license = "Unlicense"
- s.required_ruby_version = ">= 2.4"
+ s.required_ruby_version = ">= 2.7"
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
diff --git a/samples/client/petstore/ruby-faraday/.gitlab-ci.yml b/samples/client/petstore/ruby-faraday/.gitlab-ci.yml
index 3d57c5b30c0..3a253c45c05 100644
--- a/samples/client/petstore/ruby-faraday/.gitlab-ci.yml
+++ b/samples/client/petstore/ruby-faraday/.gitlab-ci.yml
@@ -7,7 +7,7 @@
- bundle install -j $(nproc)
parallel:
matrix:
- - RUBY_VERSION: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
+ - RUBY_VERSION: ['2.7', '3.0', '3.1']
image: "ruby:$RUBY_VERSION"
cache:
paths:
diff --git a/samples/client/petstore/ruby-faraday/.travis.yml b/samples/client/petstore/ruby-faraday/.travis.yml
index 09210fc0376..88f8fc7cdfd 100644
--- a/samples/client/petstore/ruby-faraday/.travis.yml
+++ b/samples/client/petstore/ruby-faraday/.travis.yml
@@ -1,12 +1,9 @@
language: ruby
cache: bundler
rvm:
- - 2.3
- - 2.4
- - 2.5
- - 2.6
- 2.7
- 3.0
+ - 3.1
script:
- bundle install --path vendor/bundle
- bundle exec rspec
diff --git a/samples/client/petstore/ruby-faraday/petstore.gemspec b/samples/client/petstore/ruby-faraday/petstore.gemspec
index 49365488bfd..33078e3e3bc 100644
--- a/samples/client/petstore/ruby-faraday/petstore.gemspec
+++ b/samples/client/petstore/ruby-faraday/petstore.gemspec
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
s.summary = "OpenAPI Petstore Ruby Gem"
s.description = "This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\"
s.license = "Unlicense"
- s.required_ruby_version = ">= 2.4"
+ s.required_ruby_version = ">= 2.7"
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
s.add_runtime_dependency 'faraday-multipart'
diff --git a/samples/client/petstore/ruby/.gitlab-ci.yml b/samples/client/petstore/ruby/.gitlab-ci.yml
index 3d57c5b30c0..3a253c45c05 100644
--- a/samples/client/petstore/ruby/.gitlab-ci.yml
+++ b/samples/client/petstore/ruby/.gitlab-ci.yml
@@ -7,7 +7,7 @@
- bundle install -j $(nproc)
parallel:
matrix:
- - RUBY_VERSION: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
+ - RUBY_VERSION: ['2.7', '3.0', '3.1']
image: "ruby:$RUBY_VERSION"
cache:
paths:
diff --git a/samples/client/petstore/ruby/.travis.yml b/samples/client/petstore/ruby/.travis.yml
index 09210fc0376..88f8fc7cdfd 100644
--- a/samples/client/petstore/ruby/.travis.yml
+++ b/samples/client/petstore/ruby/.travis.yml
@@ -1,12 +1,9 @@
language: ruby
cache: bundler
rvm:
- - 2.3
- - 2.4
- - 2.5
- - 2.6
- 2.7
- 3.0
+ - 3.1
script:
- bundle install --path vendor/bundle
- bundle exec rspec
diff --git a/samples/client/petstore/ruby/petstore.gemspec b/samples/client/petstore/ruby/petstore.gemspec
index 0877b824074..d1e4d319efc 100644
--- a/samples/client/petstore/ruby/petstore.gemspec
+++ b/samples/client/petstore/ruby/petstore.gemspec
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
s.summary = "OpenAPI Petstore Ruby Gem"
s.description = "This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\"
s.license = "Unlicense"
- s.required_ruby_version = ">= 2.4"
+ s.required_ruby_version = ">= 2.7"
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/.gitlab-ci.yml b/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/.gitlab-ci.yml
index 3d57c5b30c0..3a253c45c05 100644
--- a/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/.gitlab-ci.yml
+++ b/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/.gitlab-ci.yml
@@ -7,7 +7,7 @@
- bundle install -j $(nproc)
parallel:
matrix:
- - RUBY_VERSION: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
+ - RUBY_VERSION: ['2.7', '3.0', '3.1']
image: "ruby:$RUBY_VERSION"
cache:
paths:
diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/.travis.yml b/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/.travis.yml
index 97801c6e8f1..3bd3ccb5234 100644
--- a/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/.travis.yml
+++ b/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/.travis.yml
@@ -1,12 +1,9 @@
language: ruby
cache: bundler
rvm:
- - 2.3
- - 2.4
- - 2.5
- - 2.6
- 2.7
- 3.0
+ - 3.1
script:
- bundle install --path vendor/bundle
- bundle exec rspec
diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/x_auth_id_alias.gemspec b/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/x_auth_id_alias.gemspec
index 5d8bb1f70f2..01a0dba6c1e 100644
--- a/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/x_auth_id_alias.gemspec
+++ b/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/x_auth_id_alias.gemspec
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
s.summary = "OpenAPI Extension x-auth-id-alias Ruby Gem"
s.description = "This specification shows how to use x-auth-id-alias extension for API keys."
s.license = "Unlicense"
- s.required_ruby_version = ">= 2.4"
+ s.required_ruby_version = ">= 2.7"
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
diff --git a/samples/openapi3/client/features/dynamic-servers/ruby/.gitlab-ci.yml b/samples/openapi3/client/features/dynamic-servers/ruby/.gitlab-ci.yml
index 3d57c5b30c0..3a253c45c05 100644
--- a/samples/openapi3/client/features/dynamic-servers/ruby/.gitlab-ci.yml
+++ b/samples/openapi3/client/features/dynamic-servers/ruby/.gitlab-ci.yml
@@ -7,7 +7,7 @@
- bundle install -j $(nproc)
parallel:
matrix:
- - RUBY_VERSION: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
+ - RUBY_VERSION: ['2.7', '3.0', '3.1']
image: "ruby:$RUBY_VERSION"
cache:
paths:
diff --git a/samples/openapi3/client/features/dynamic-servers/ruby/.travis.yml b/samples/openapi3/client/features/dynamic-servers/ruby/.travis.yml
index a3ef1366beb..a652409715e 100644
--- a/samples/openapi3/client/features/dynamic-servers/ruby/.travis.yml
+++ b/samples/openapi3/client/features/dynamic-servers/ruby/.travis.yml
@@ -1,12 +1,9 @@
language: ruby
cache: bundler
rvm:
- - 2.3
- - 2.4
- - 2.5
- - 2.6
- 2.7
- 3.0
+ - 3.1
script:
- bundle install --path vendor/bundle
- bundle exec rspec
diff --git a/samples/openapi3/client/features/dynamic-servers/ruby/dynamic_servers.gemspec b/samples/openapi3/client/features/dynamic-servers/ruby/dynamic_servers.gemspec
index 532ee498f6d..0e00a8d1e98 100644
--- a/samples/openapi3/client/features/dynamic-servers/ruby/dynamic_servers.gemspec
+++ b/samples/openapi3/client/features/dynamic-servers/ruby/dynamic_servers.gemspec
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
s.summary = "OpenAPI Extension with dynamic servers Ruby Gem"
s.description = "This specification shows how to use dynamic servers."
s.license = "Unlicense"
- s.required_ruby_version = ">= 2.4"
+ s.required_ruby_version = ">= 2.7"
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
diff --git a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/.gitlab-ci.yml b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/.gitlab-ci.yml
index 3d57c5b30c0..3a253c45c05 100644
--- a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/.gitlab-ci.yml
+++ b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/.gitlab-ci.yml
@@ -7,7 +7,7 @@
- bundle install -j $(nproc)
parallel:
matrix:
- - RUBY_VERSION: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
+ - RUBY_VERSION: ['2.7', '3.0', '3.1']
image: "ruby:$RUBY_VERSION"
cache:
paths:
diff --git a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/.travis.yml b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/.travis.yml
index 09210fc0376..88f8fc7cdfd 100644
--- a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/.travis.yml
+++ b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/.travis.yml
@@ -1,12 +1,9 @@
language: ruby
cache: bundler
rvm:
- - 2.3
- - 2.4
- - 2.5
- - 2.6
- 2.7
- 3.0
+ - 3.1
script:
- bundle install --path vendor/bundle
- bundle exec rspec
diff --git a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/petstore.gemspec b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/petstore.gemspec
index 149a50918cd..781989f19ac 100644
--- a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/petstore.gemspec
+++ b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/petstore.gemspec
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
s.summary = "OpenAPI Extension generating aliases to maps and arrays as models Ruby Gem"
s.description = "This specification shows how to generate aliases to maps and arrays as models."
s.license = "Unlicense"
- s.required_ruby_version = ">= 2.4"
+ s.required_ruby_version = ">= 2.7"
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'