mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-08 08:30:56 +00:00
Update Ruby minimum version to 2.7 (#14002)
* update ruby minimum version to 2.7 * test ruby in cirleci
This commit is contained in:
parent
4a5c9ff2d2
commit
2e44e78474
@ -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'
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
6
pom.xml
6
pom.xml
@ -1163,9 +1163,6 @@
|
||||
<!-- clients -->
|
||||
<module>samples/client/petstore/perl</module>
|
||||
<!--<module>samples/client/petstore/bash</module>-->
|
||||
<module>samples/client/petstore/ruby-faraday</module>
|
||||
<module>samples/client/petstore/ruby</module>
|
||||
<module>samples/client/petstore/ruby-autoload</module>
|
||||
<!-- comment out as it's not working as the moment
|
||||
<module>samples/client/petstore/c</module>
|
||||
-->
|
||||
@ -1275,6 +1272,9 @@
|
||||
<!-- python clients which don't need the server running -->
|
||||
<module>samples/openapi3/client/petstore/python</module>
|
||||
<module>samples/openapi3/client/petstore/python-prior</module>
|
||||
<module>samples/client/petstore/ruby-faraday</module>
|
||||
<module>samples/client/petstore/ruby</module>
|
||||
<module>samples/client/petstore/ruby-autoload</module>
|
||||
</modules>
|
||||
</profile>
|
||||
<!-- other tests in CircleCI -->
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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'
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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'
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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'
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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'
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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'
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user