forked from loafle/openapi-generator-original
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.summary = "{{gemSummary}}{{^gemSummary}}{{{appName}}} Ruby Gem{{/gemSummary}}"
|
||||||
s.description = "{{gemDescription}}{{^gemDescription}}{{{appDescription}}}{{^appDescription}}{{{appName}}} Ruby Gem{{/appDescription}}{{/gemDescription}}"
|
s.description = "{{gemDescription}}{{^gemDescription}}{{{appDescription}}}{{^appDescription}}{{{appName}}} Ruby Gem{{/appDescription}}{{/gemDescription}}"
|
||||||
s.license = "{{{gemLicense}}}{{^gemLicense}}Unlicense{{/gemLicense}}"
|
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}}
|
{{#isFaraday}}
|
||||||
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
|
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
- bundle install -j $(nproc)
|
- bundle install -j $(nproc)
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
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"
|
image: "ruby:$RUBY_VERSION"
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
language: ruby
|
language: ruby
|
||||||
cache: bundler
|
cache: bundler
|
||||||
rvm:
|
rvm:
|
||||||
- 2.3
|
|
||||||
- 2.4
|
|
||||||
- 2.5
|
|
||||||
- 2.6
|
|
||||||
- 2.7
|
- 2.7
|
||||||
- 3.0
|
- 3.0
|
||||||
|
- 3.1
|
||||||
script:
|
script:
|
||||||
- bundle install --path vendor/bundle
|
- bundle install --path vendor/bundle
|
||||||
- bundle exec rspec
|
- bundle exec rspec
|
||||||
|
6
pom.xml
6
pom.xml
@ -1163,9 +1163,6 @@
|
|||||||
<!-- clients -->
|
<!-- clients -->
|
||||||
<module>samples/client/petstore/perl</module>
|
<module>samples/client/petstore/perl</module>
|
||||||
<!--<module>samples/client/petstore/bash</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
|
<!-- comment out as it's not working as the moment
|
||||||
<module>samples/client/petstore/c</module>
|
<module>samples/client/petstore/c</module>
|
||||||
-->
|
-->
|
||||||
@ -1275,6 +1272,9 @@
|
|||||||
<!-- python clients which don't need the server running -->
|
<!-- python clients which don't need the server running -->
|
||||||
<module>samples/openapi3/client/petstore/python</module>
|
<module>samples/openapi3/client/petstore/python</module>
|
||||||
<module>samples/openapi3/client/petstore/python-prior</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>
|
</modules>
|
||||||
</profile>
|
</profile>
|
||||||
<!-- other tests in CircleCI -->
|
<!-- other tests in CircleCI -->
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
- bundle install -j $(nproc)
|
- bundle install -j $(nproc)
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
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"
|
image: "ruby:$RUBY_VERSION"
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
language: ruby
|
language: ruby
|
||||||
cache: bundler
|
cache: bundler
|
||||||
rvm:
|
rvm:
|
||||||
- 2.3
|
|
||||||
- 2.4
|
|
||||||
- 2.5
|
|
||||||
- 2.6
|
|
||||||
- 2.7
|
- 2.7
|
||||||
- 3.0
|
- 3.0
|
||||||
|
- 3.1
|
||||||
script:
|
script:
|
||||||
- bundle install --path vendor/bundle
|
- bundle install --path vendor/bundle
|
||||||
- bundle exec rspec
|
- bundle exec rspec
|
||||||
|
@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|||||||
s.summary = "OpenAPI Petstore Ruby Gem"
|
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.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.license = "Unlicense"
|
||||||
s.required_ruby_version = ">= 2.4"
|
s.required_ruby_version = ">= 2.7"
|
||||||
|
|
||||||
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
- bundle install -j $(nproc)
|
- bundle install -j $(nproc)
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
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"
|
image: "ruby:$RUBY_VERSION"
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
language: ruby
|
language: ruby
|
||||||
cache: bundler
|
cache: bundler
|
||||||
rvm:
|
rvm:
|
||||||
- 2.3
|
|
||||||
- 2.4
|
|
||||||
- 2.5
|
|
||||||
- 2.6
|
|
||||||
- 2.7
|
- 2.7
|
||||||
- 3.0
|
- 3.0
|
||||||
|
- 3.1
|
||||||
script:
|
script:
|
||||||
- bundle install --path vendor/bundle
|
- bundle install --path vendor/bundle
|
||||||
- bundle exec rspec
|
- bundle exec rspec
|
||||||
|
@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|||||||
s.summary = "OpenAPI Petstore Ruby Gem"
|
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.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.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', '>= 1.0.1', '< 3.0'
|
||||||
s.add_runtime_dependency 'faraday-multipart'
|
s.add_runtime_dependency 'faraday-multipart'
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
- bundle install -j $(nproc)
|
- bundle install -j $(nproc)
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
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"
|
image: "ruby:$RUBY_VERSION"
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
language: ruby
|
language: ruby
|
||||||
cache: bundler
|
cache: bundler
|
||||||
rvm:
|
rvm:
|
||||||
- 2.3
|
|
||||||
- 2.4
|
|
||||||
- 2.5
|
|
||||||
- 2.6
|
|
||||||
- 2.7
|
- 2.7
|
||||||
- 3.0
|
- 3.0
|
||||||
|
- 3.1
|
||||||
script:
|
script:
|
||||||
- bundle install --path vendor/bundle
|
- bundle install --path vendor/bundle
|
||||||
- bundle exec rspec
|
- bundle exec rspec
|
||||||
|
@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|||||||
s.summary = "OpenAPI Petstore Ruby Gem"
|
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.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.license = "Unlicense"
|
||||||
s.required_ruby_version = ">= 2.4"
|
s.required_ruby_version = ">= 2.7"
|
||||||
|
|
||||||
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
- bundle install -j $(nproc)
|
- bundle install -j $(nproc)
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
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"
|
image: "ruby:$RUBY_VERSION"
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
language: ruby
|
language: ruby
|
||||||
cache: bundler
|
cache: bundler
|
||||||
rvm:
|
rvm:
|
||||||
- 2.3
|
|
||||||
- 2.4
|
|
||||||
- 2.5
|
|
||||||
- 2.6
|
|
||||||
- 2.7
|
- 2.7
|
||||||
- 3.0
|
- 3.0
|
||||||
|
- 3.1
|
||||||
script:
|
script:
|
||||||
- bundle install --path vendor/bundle
|
- bundle install --path vendor/bundle
|
||||||
- bundle exec rspec
|
- bundle exec rspec
|
||||||
|
@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|||||||
s.summary = "OpenAPI Extension x-auth-id-alias Ruby Gem"
|
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.description = "This specification shows how to use x-auth-id-alias extension for API keys."
|
||||||
s.license = "Unlicense"
|
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'
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
- bundle install -j $(nproc)
|
- bundle install -j $(nproc)
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
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"
|
image: "ruby:$RUBY_VERSION"
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
language: ruby
|
language: ruby
|
||||||
cache: bundler
|
cache: bundler
|
||||||
rvm:
|
rvm:
|
||||||
- 2.3
|
|
||||||
- 2.4
|
|
||||||
- 2.5
|
|
||||||
- 2.6
|
|
||||||
- 2.7
|
- 2.7
|
||||||
- 3.0
|
- 3.0
|
||||||
|
- 3.1
|
||||||
script:
|
script:
|
||||||
- bundle install --path vendor/bundle
|
- bundle install --path vendor/bundle
|
||||||
- bundle exec rspec
|
- bundle exec rspec
|
||||||
|
@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|||||||
s.summary = "OpenAPI Extension with dynamic servers Ruby Gem"
|
s.summary = "OpenAPI Extension with dynamic servers Ruby Gem"
|
||||||
s.description = "This specification shows how to use dynamic servers."
|
s.description = "This specification shows how to use dynamic servers."
|
||||||
s.license = "Unlicense"
|
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'
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
- bundle install -j $(nproc)
|
- bundle install -j $(nproc)
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
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"
|
image: "ruby:$RUBY_VERSION"
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
language: ruby
|
language: ruby
|
||||||
cache: bundler
|
cache: bundler
|
||||||
rvm:
|
rvm:
|
||||||
- 2.3
|
|
||||||
- 2.4
|
|
||||||
- 2.5
|
|
||||||
- 2.6
|
|
||||||
- 2.7
|
- 2.7
|
||||||
- 3.0
|
- 3.0
|
||||||
|
- 3.1
|
||||||
script:
|
script:
|
||||||
- bundle install --path vendor/bundle
|
- bundle install --path vendor/bundle
|
||||||
- bundle exec rspec
|
- 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.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.description = "This specification shows how to generate aliases to maps and arrays as models."
|
||||||
s.license = "Unlicense"
|
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'
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user