diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 07b8af3..6e08af7 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] - ruby: ['3.0', '3.1', head] + ruby: ['2.6', '2.7', '3.0', '3.1', head] runs-on: ${{ matrix.os }} steps: - name: Checkout @@ -42,6 +42,6 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '3.0' + ruby-version: '2.6' bundler-cache: true - run: bundle exec rubocop diff --git a/.rubocop.yml b/.rubocop.yml index 5dcf259..1564a1a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -14,7 +14,7 @@ AllCops: NewCops: enable DisplayCopNames: true DisplayStyleGuide: true - TargetRubyVersion: 3.0 + TargetRubyVersion: 2.6 Exclude: - 'bin/*' - 'node_modules/**/*' diff --git a/Gemfile b/Gemfile index 0d45081..ce4f885 100644 --- a/Gemfile +++ b/Gemfile @@ -7,7 +7,7 @@ gemspec gem "rake", "~> 13.0" gem "rspec", "~> 3.0" -gem "rubocop", "~> 1.21" -gem "rubocop-performance" -gem "rubocop-rspec" +gem "rubocop", "< 1.51" # TODO: this version dropped support for Ruby 2.6 +gem "rubocop-performance", "< 1.18.0" # TODO: this version dropped support for Ruby 2.6 +gem "rubocop-rspec", "< 2.21.0" # TODO: this version dropped support for Ruby 2.6 gem "simplecov", require: false diff --git a/Gemfile.lock b/Gemfile.lock index bdff693..a9a3ce1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -10,7 +10,6 @@ GEM diff-lcs (1.5.0) docile (1.4.0) json (2.6.3) - language_server-protocol (3.17.0.3) parallel (1.23.0) parser (3.2.2.3) ast (~> 2.4.1) @@ -33,30 +32,26 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) rspec-support (3.12.1) - rubocop (1.55.1) + rubocop (1.50.2) json (~> 2.3) - language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.2.2.3) + parser (>= 3.2.0.0) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.28.1, < 2.0) + rubocop-ast (>= 1.28.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) rubocop-ast (1.29.0) parser (>= 3.2.1.0) rubocop-capybara (2.18.0) rubocop (~> 1.41) - rubocop-factory_bot (2.23.1) - rubocop (~> 1.33) - rubocop-performance (1.18.0) + rubocop-performance (1.17.1) rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) - rubocop-rspec (2.23.0) + rubocop-rspec (2.20.0) rubocop (~> 1.33) rubocop-capybara (~> 2.17) - rubocop-factory_bot (~> 2.22) ruby-progressbar (1.13.0) simplecov (0.22.0) docile (~> 1.1) @@ -76,9 +71,9 @@ DEPENDENCIES package_json! rake (~> 13.0) rspec (~> 3.0) - rubocop (~> 1.21) - rubocop-performance - rubocop-rspec + rubocop (< 1.51) + rubocop-performance (< 1.18.0) + rubocop-rspec (< 2.21.0) simplecov BUNDLED WITH diff --git a/package_json.gemspec b/package_json.gemspec index eda4686..732f2c9 100644 --- a/package_json.gemspec +++ b/package_json.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |spec| spec.description = "It does stuff" spec.homepage = "https://github.com/G-Rath/package_json" spec.license = "MIT" - spec.required_ruby_version = ">= 3.0.0" + spec.required_ruby_version = ">= 2.6.0" spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"