diff --git a/.rubocop.yml b/.rubocop.yml index 5be728a..34aa9d1 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,6 +1,7 @@ require: - rubocop-performance - rubocop-rspec + - rubocop-rake AllCops: TargetRubyVersion: 3.0.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a9076c..16a4a64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +### [1.0.9] 2024-02-18 + +Changes + +- Update ruby gems. +- Use rubocop-rake gem to run rubocop checks. +- Add rubocop to default rake tasks in Rakefile. + ### [1.0.8] 2024-01-19 Changes diff --git a/Gemfile.lock b/Gemfile.lock index 198bd82..192d0fa 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GEM byebug (11.1.3) coderay (1.1.3) concurrent-ruby (1.2.3) - diff-lcs (1.5.0) + diff-lcs (1.5.1) docile (1.4.0) dry-configurable (1.1.0) dry-core (~> 1.0, < 2) @@ -44,7 +44,7 @@ GEM language_server-protocol (3.17.0.3) method_source (1.0.0) parallel (1.24.0) - parser (3.2.2.4) + parser (3.3.0.5) ast (~> 2.4.1) racc pry (0.14.2) @@ -56,31 +56,31 @@ GEM racc (1.7.3) rainbow (3.1.1) rake (13.1.0) - reek (6.2.0) + reek (6.3.0) dry-schema (~> 1.13.0) - parser (~> 3.2.0) + parser (~> 3.3.0) rainbow (>= 2.0, < 4.0) rexml (~> 3.1) regexp_parser (2.9.0) rexml (3.2.6) - rspec (3.12.0) - rspec-core (~> 3.12.0) - rspec-expectations (~> 3.12.0) - rspec-mocks (~> 3.12.0) - rspec-core (3.12.2) - rspec-support (~> 3.12.0) - rspec-expectations (3.12.3) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.0) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-mocks (3.12.6) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-support (3.12.1) - rubocop (1.59.0) + rspec-support (~> 3.13.0) + rspec-support (3.13.0) + rubocop (1.60.2) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.2.2.4) + parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) @@ -96,6 +96,8 @@ GEM rubocop-performance (1.20.2) rubocop (>= 1.48.1, < 2.0) rubocop-ast (>= 1.30.0, < 2.0) + rubocop-rake (0.6.0) + rubocop (~> 1.0) rubocop-rspec (2.26.1) rubocop (~> 1.40) rubocop-capybara (~> 2.17) @@ -108,7 +110,7 @@ GEM simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) unicode-display_width (2.5.0) - zeitwerk (2.6.12) + zeitwerk (2.6.13) PLATFORMS x86_64-darwin-19 @@ -124,6 +126,7 @@ DEPENDENCIES rspec (>= 3.10) rubocop (~> 1.35) rubocop-performance (~> 1.14, >= 1.14.3) + rubocop-rake (~> 0.6.0) rubocop-rspec (~> 2.12, >= 2.12.1) simplecov (~> 0.22.0) diff --git a/Rakefile b/Rakefile index 82bb534..cca7175 100644 --- a/Rakefile +++ b/Rakefile @@ -1,8 +1,12 @@ # frozen_string_literal: true -require 'bundler/gem_tasks' -require 'rspec/core/rake_task' +require "bundler/gem_tasks" +require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) -task default: :spec +require "rubocop/rake_task" + +RuboCop::RakeTask.new + +task default: %i[spec rubocop] diff --git a/immutable_struct_ex.gemspec b/immutable_struct_ex.gemspec index 02a9791..8f3e0ee 100644 --- a/immutable_struct_ex.gemspec +++ b/immutable_struct_ex.gemspec @@ -38,6 +38,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec', '>= 3.10' spec.add_development_dependency 'rubocop', '~> 1.35' spec.add_development_dependency 'rubocop-performance', '~> 1.14', '>= 1.14.3' + spec.add_development_dependency 'rubocop-rake', '~> 0.6.0' spec.add_development_dependency 'rubocop-rspec', '~> 2.12', '>= 2.12.1' spec.add_development_dependency 'simplecov', '~> 0.22.0' spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6' diff --git a/lib/immutable_struct_ex/version.rb b/lib/immutable_struct_ex/version.rb index 587b822..5a3601e 100644 --- a/lib/immutable_struct_ex/version.rb +++ b/lib/immutable_struct_ex/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module ImmutableStructEx - VERSION = '1.0.8' + VERSION = '1.0.9' end