diff --git a/.circleci/config.yml b/.circleci/config.yml index 951435e..539fdd2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2.1 jobs: test: docker: - - image: cimg/ruby:3.2.2 + - image: cimg/ruby:3.3.4 auth: username: $DOCKERHUB_USERNAME password: $DOCKERHUB_TOKEN @@ -32,7 +32,7 @@ jobs: push_to_rubygems: docker: - - image: cimg/ruby:3.2.2 + - image: cimg/ruby:3.3.4 auth: username: $DOCKERHUB_USERNAME password: $DOCKERHUB_TOKEN diff --git a/.github/workflows/pronto.yml b/.github/workflows/pronto.yml index c00f493..ff42f4f 100644 --- a/.github/workflows/pronto.yml +++ b/.github/workflows/pronto.yml @@ -30,7 +30,7 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: "3.2.2" + ruby-version: "3.3.4" bundler-cache: true - name: Setup pronto diff --git a/Gemfile b/Gemfile index eb46c57..6807e7e 100644 --- a/Gemfile +++ b/Gemfile @@ -4,8 +4,8 @@ source "https://rubygems.org" gemspec -gem "bundler", "~> 2.4" +gem "bundler", "~> 2.5" gem "byebug" gem "rake", "~> 13.1" -gem "rspec", ">= 3.12" +gem "rspec", ">= 3.13" gem "rspec_junit_formatter" diff --git a/lib/rf/stylez/version.rb b/lib/rf/stylez/version.rb index b248f60..fd724c3 100644 --- a/lib/rf/stylez/version.rb +++ b/lib/rf/stylez/version.rb @@ -2,6 +2,6 @@ module Rf module Stylez - VERSION = "1.1.1" + VERSION = "1.2.0" end end diff --git a/rf-stylez.gemspec b/rf-stylez.gemspec index 63e81b9..7e310b4 100644 --- a/rf-stylez.gemspec +++ b/rf-stylez.gemspec @@ -20,12 +20,13 @@ Gem::Specification.new do |spec| spec.executables = ["rf-stylez"] spec.require_paths = ["lib"] - spec.add_runtime_dependency "get_env", "~> 0.2.1" - spec.add_runtime_dependency "pronto", "~> 0.11.2" - spec.add_runtime_dependency "pronto-rubocop", "~> 0.11.5" - spec.add_runtime_dependency "reek", "~> 6.2" - spec.add_runtime_dependency "rubocop", "1.59.0" - spec.add_runtime_dependency "rubocop-rails", "2.23.1" - spec.add_runtime_dependency "rubocop-rspec", "2.26.1" - spec.add_runtime_dependency "unparser", "~> 0.6" + spec.add_dependency "get_env", "~> 0.2.1" + spec.add_dependency "pronto", "~> 0.11.2" + spec.add_dependency "pronto-rubocop", "~> 0.11.5" + spec.add_dependency "reek", "~> 6.2" + spec.add_dependency "rubocop", "1.65.1" + spec.add_dependency "rubocop-performance", "1.21.1" + spec.add_dependency "rubocop-rails", "2.25.1" + spec.add_dependency "rubocop-rspec", "3.0.4" + spec.add_dependency "unparser", "~> 0.6.15" end diff --git a/ruby/rubocop.yml b/ruby/rubocop.yml index 6eca67f..6f72640 100644 --- a/ruby/rubocop.yml +++ b/ruby/rubocop.yml @@ -1,5 +1,5 @@ AllCops: - TargetRubyVersion: 3.2 + TargetRubyVersion: 3.3 NewCops: enable SuggestExtensions: false Include: @@ -20,6 +20,7 @@ inherit_from: require: - rf/stylez - rubocop-rspec + - rubocop-performance - get_env/cops # Custom cops @@ -62,6 +63,8 @@ Layout/MultilineMethodCallIndentation: RSpec/NotToNot: Enabled: true EnforcedStyle: to_not +RSpec/PredicateMatcher: + Enabled: false Style/Documentation: Enabled: true @@ -70,6 +73,8 @@ Style/Documentation: Style/FrozenStringLiteralComment: Enabled: true EnforcedStyle: always +Style/NumericLiterals: + Enabled: false Style/StringLiterals: Description: 'Checks if uses of quotes match the configured preference.' StyleGuide: '#consistent-string-literals'