From ec402c9e4b5d3f04def8ce32f11ef3844773766e Mon Sep 17 00:00:00 2001 From: Tricia Jenkins Date: Fri, 21 Feb 2025 16:18:36 -0700 Subject: [PATCH] TargetRubyVersion for rubocop Layout/LineLength: Line is too long. [153/120] (https://rubystyle.guide#max-line-length) --- .rubocop.yml | 2 +- lib/tasks/digitization_batch_ingest.rake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 323fc773d..b3c2c864b 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -22,7 +22,7 @@ AllCops: - "node_modules/**/*" ExtraDetails: true NewCops: enable - TargetRubyVersion: 3.1 + TargetRubyVersion: 3.4 # readability is Actually Good Layout/EmptyLinesAroundClassBody: diff --git a/lib/tasks/digitization_batch_ingest.rake b/lib/tasks/digitization_batch_ingest.rake index b5e94ccf8..dc1135bdb 100644 --- a/lib/tasks/digitization_batch_ingest.rake +++ b/lib/tasks/digitization_batch_ingest.rake @@ -41,7 +41,7 @@ namespace :digitization do # - Give `title` 80 characters of space. # - `processing` should be the longest `status` # - batch `size` should be pretty small to ensure that the jobs can finish in a timely manner - puts format '%38s,%80s,%12s,%7s', 'id', 'title', 'status', 'size' + puts format '%38s,%80s,%12s,%7d', 'id', 'title', 'status', 'size' Digitization::BatchMetadataIngest.order(created_at: :desc).limit(limit).each do |batch_ingest| puts format '%38s,%80s,%12s,%7d', batch_ingest.id, batch_ingest.title, batch_ingest.status, batch_ingest.books.count