From 5ac30e95aba4a8fef8945fa7c03cdd464b751a30 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 17 Mar 2026 19:04:04 +0000 Subject: [PATCH 1/2] Bump pnpm/action-setup from 4 to 5 Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 4 to 5. - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](https://github.com/pnpm/action-setup/compare/v4...v5) --- updated-dependencies: - dependency-name: pnpm/action-setup dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/eslint.yml | 2 +- .github/workflows/javascript.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index b816f8fe..c71ba194 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@v5 - name: Set up Node uses: actions/setup-node@v6 with: diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml index 9cf2cbfc..0929e471 100644 --- a/.github/workflows/javascript.yml +++ b/.github/workflows/javascript.yml @@ -20,7 +20,7 @@ jobs: with: ruby-version: '4.0' bundler-cache: true - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@v5 - name: Set up Node uses: actions/setup-node@v6 with: From 3a1e7fc2de588efbb0464147bda7dffee2b9fdc4 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Tue, 17 Mar 2026 21:47:10 +0100 Subject: [PATCH 2/2] Fix rubocop --- .rubocop.yml | 4 ++++ lib/client_side_validations/action_view/form_helper.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index fe4ab0fa..cc32d2ff 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -90,3 +90,7 @@ Style/IfUnlessModifier: Style/NumericPredicate: Enabled: false + +Style/OneClassPerFile: + Exclude: + - 'test/**/*' diff --git a/lib/client_side_validations/action_view/form_helper.rb b/lib/client_side_validations/action_view/form_helper.rb index c26e970d..b84196db 100644 --- a/lib/client_side_validations/action_view/form_helper.rb +++ b/lib/client_side_validations/action_view/form_helper.rb @@ -86,7 +86,7 @@ def construct_validators @validators.each_with_object({}) do |object_opts, validator_hash| next unless object_opts[0].respond_to?(:client_side_validation_hash) - option_hash = object_opts[1].each_with_object({}) do |attr, result| + option_hash = object_opts[1].each_with_object({}) do |attr, result| # rubocop:disable Style/ReduceToHash -- False positive result[attr[0]] = attr[1][:options] end