Update Ruby minimum version to 2.7 (#14002)

* update ruby minimum version to 2.7

* test ruby in cirleci
This commit is contained in:
William Cheng
2022-11-13 12:14:21 +08:00
committed by GitHub
parent 4a5c9ff2d2
commit 2e44e78474
22 changed files with 24 additions and 45 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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'