From b0882af77cedacdcbb91fb002cfb573980b9bf19 Mon Sep 17 00:00:00 2001 From: Erik Kessler Date: Mon, 9 Jan 2023 08:07:45 -0500 Subject: [PATCH] Add support for Ruby 3.2 and drop support for Ruby 2.6 (#52) --- .circleci/config.yml | 8 ++++---- .rubocop.yml | 2 +- CHANGELOG.md | 4 ++++ lib/salsify_rubocop/version.rb | 2 +- salsify_rubocop.gemspec | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5a35951..6825a22 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,14 +2,14 @@ version: 2.1 jobs: lint: docker: - - image: salsify/ruby_ci:2.6.6 + - image: salsify/ruby_ci:2.7.7 working_directory: ~/salsify_rubocop steps: - checkout - restore_cache: keys: - - v1-gems-ruby-2.6.6-{{ checksum "salsify_rubocop.gemspec" }}-{{ checksum "Gemfile" }} - - v1-gems-ruby-2.6.6- + - v1-gems-ruby-2.7.7-{{ checksum "salsify_rubocop.gemspec" }}-{{ checksum "Gemfile" }} + - v1-gems-ruby-2.7.7- - run: name: Install Gems command: | @@ -66,7 +66,7 @@ workflows: matrix: parameters: ruby_version: - - "2.6.6" - "2.7.2" - "3.0.0" - "3.1.1" + - "3.2.0" diff --git a/.rubocop.yml b/.rubocop.yml index d151021..26e0626 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -2,7 +2,7 @@ inherit_from: - conf/rubocop.yml AllCops: - TargetRubyVersion: 2.6 + TargetRubyVersion: 2.7 Layout/LineLength: Exclude: diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dc407c..d9a8bc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # salsify_rubocop +## 1.42.1 +- Drop support for Ruby 2.6 as it is EOL +- Add support for Ruby 3.2 + ## 1.42.0 - Upgrade `rubocop` to v1.42.0. - Upgrade `rubocop-performance` to v1.15.2. diff --git a/lib/salsify_rubocop/version.rb b/lib/salsify_rubocop/version.rb index f9e087d..6f37a06 100644 --- a/lib/salsify_rubocop/version.rb +++ b/lib/salsify_rubocop/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module SalsifyRubocop - VERSION = '1.42.0' + VERSION = '1.42.1' end diff --git a/salsify_rubocop.gemspec b/salsify_rubocop.gemspec index fa8f89c..588b343 100644 --- a/salsify_rubocop.gemspec +++ b/salsify_rubocop.gemspec @@ -30,7 +30,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ['lib'] - spec.required_ruby_version = '>= 2.6' + spec.required_ruby_version = '>= 2.7' spec.add_development_dependency 'bundler', '~> 2.0' spec.add_development_dependency 'rake', '~> 13.0'