From a3fe606721c3471f92c20a688ac0ea77e18e4239 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Sat, 11 Nov 2023 10:08:59 +0000 Subject: [PATCH] Require Ruby 2.7 This reflects the actual transitive dependency imposed by google-protobuf --- .github/workflows/ci.yml | 2 +- .ruby-version | 2 +- Gemfile | 2 ++ sqlint.gemspec | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea0175c..2275d55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: matrix: os: [ubuntu-latest] # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0' - ruby: [2.4, 2.5, 2.6, 2.7, '3.0', '3.1', '3.2'] + ruby: ['2.7', '3.0', '3.1', '3.2'] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 diff --git a/.ruby-version b/.ruby-version index b0f6bf0..1effb00 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.4.10 +2.7 diff --git a/Gemfile b/Gemfile index 3ce717f..e481850 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ +ruby ">= 2.7" + source "https://rubygems.org" gem "pg_query", ">= 1.0" diff --git a/sqlint.gemspec b/sqlint.gemspec index 681b43b..6f2f41d 100644 --- a/sqlint.gemspec +++ b/sqlint.gemspec @@ -8,7 +8,7 @@ Gem::Specification.new do |s| s.name = 'sqlint' s.version = SQLint::VERSION s.platform = Gem::Platform::RUBY - s.required_ruby_version = '>= 1.9.3' + s.required_ruby_version = '>= 2.7' s.authors = ['Steve Purcell', 'Kieran Trezona-le Comte'] s.description = <<-EOF Simple SQL linter.