From 0c98b42342c5425edc9950ce0af36aabe8da7532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Rosick=C3=BD?= Date: Mon, 22 Jan 2024 20:28:13 +0100 Subject: [PATCH] rubocop & rubies --- .github/workflows/ruby.yml | 1 - .rubocop.yml | 42 ++++++++++++++++++++++++++++++++++++++ CHANGELOG.md | 3 +++ Gemfile | 6 +++--- 4 files changed, 48 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 514273f..10bfff5 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -16,7 +16,6 @@ jobs: fail-fast: true matrix: include: - - { ruby: 2.7, c-o-e: false } - { ruby: '3.0', c-o-e: false } - { ruby: 3.1, c-o-e: false } - { ruby: 3.2, c-o-e: false } diff --git a/.rubocop.yml b/.rubocop.yml index 4e27e6e..e7f31b1 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -310,6 +310,48 @@ Style/RedundantStringEscape: # new in 1.37 Enabled: true Style/SelectByRegexp: # new in 1.22 Enabled: true +Lint/DuplicateMatchPattern: # new in 1.50 + Enabled: true +Lint/ItWithoutArgumentsInBlock: # new in 1.59 + Enabled: true +Lint/LiteralAssignmentInCondition: # new in 1.58 + Enabled: true +Lint/MixedCaseRange: # new in 1.53 + Enabled: true +Lint/RedundantRegexpQuantifiers: # new in 1.53 + Enabled: true +Metrics/CollectionLiteralLength: # new in 1.47 + Enabled: true +Style/DataInheritance: # new in 1.49 + Enabled: true +Style/DirEmpty: # new in 1.48 + Enabled: true +Style/ExactRegexpMatch: # new in 1.51 + Enabled: true +Style/FileEmpty: # new in 1.48 + Enabled: true +Style/RedundantArrayConstructor: # new in 1.52 + Enabled: true +Style/RedundantCurrentDirectoryInPath: # new in 1.53 + Enabled: true +Style/RedundantFilterChain: # new in 1.52 + Enabled: true +Style/RedundantLineContinuation: # new in 1.49 + Enabled: true +Style/RedundantRegexpArgument: # new in 1.53 + Enabled: true +Style/RedundantRegexpConstructor: # new in 1.52 + Enabled: true +Style/ReturnNilInPredicateMethodDefinition: # new in 1.53 + Enabled: true +Style/SingleLineDoEndBlock: # new in 1.57 + Enabled: true +Style/SuperWithArgsParentheses: # new in 1.58 + Enabled: true +Style/YAMLFileRead: # new in 1.53 + Enabled: true +Performance/MapMethodChain: # new in 1.19 + Enabled: true Performance/AncestorsInclude: Enabled: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ef0dfa..d6e46b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 1.2.0 (22 January 2024) - update TerserJS to [5.27.0] - remove sourcemap patches +- `pure_new` option added +- EOL rubies are no longer tested +- update rubocop ## 1.1.20 (27 November 2023) - update TerserJS to [5.24.0] diff --git a/Gemfile b/Gemfile index 6d01c80..aaf5212 100644 --- a/Gemfile +++ b/Gemfile @@ -4,9 +4,9 @@ source "https://rubygems.org" gemspec -unless RUBY_VERSION < '2.6' +unless RUBY_VERSION < '2.7' group :development do - gem 'rubocop', '~> 1.46.0' - gem 'rubocop-performance', '~> 1.16.0', :require => false + gem 'rubocop', '~> 1.60.1' + gem 'rubocop-performance', '~> 1.20.2', :require => false end end