Skip to content

Commit 12fd1f1

Browse files
build(deps-dev): bump rubocop-performance from 1.23.1 to 1.24.0 (#6272)
* build(deps-dev): bump rubocop-performance from 1.23.1 to 1.24.0 Bumps [rubocop-performance](https://github.com/rubocop/rubocop-performance) from 1.23.1 to 1.24.0. - [Release notes](https://github.com/rubocop/rubocop-performance/releases) - [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md) - [Commits](rubocop/rubocop-performance@v1.23.1...v1.24.0) --- updated-dependencies: - dependency-name: rubocop-performance dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix: lint --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: elasticspoon <mail@yuribocharov.dev>
1 parent f1ccc01 commit 12fd1f1

File tree

3 files changed

+42
-39
lines changed

3 files changed

+42
-39
lines changed

Gemfile.lock

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ GEM
379379
pretender (0.5.0)
380380
actionpack (>= 6.1)
381381
prettyprint (0.2.0)
382+
prism (1.4.0)
382383
pry (0.14.2)
383384
coderay (~> 1.1)
384385
method_source (~> 1.0)
@@ -488,25 +489,28 @@ GEM
488489
rswag-ui (2.16.0)
489490
actionpack (>= 5.2, < 8.1)
490491
railties (>= 5.2, < 8.1)
491-
rubocop (1.71.2)
492+
rubocop (1.73.2)
492493
json (~> 2.3)
493-
language_server-protocol (>= 3.17.0)
494+
language_server-protocol (~> 3.17.0.2)
495+
lint_roller (~> 1.1.0)
494496
parallel (~> 1.10)
495497
parser (>= 3.3.0.2)
496498
rainbow (>= 2.2.2, < 4.0)
497499
regexp_parser (>= 2.9.3, < 3.0)
498500
rubocop-ast (>= 1.38.0, < 2.0)
499501
ruby-progressbar (~> 1.7)
500502
unicode-display_width (>= 2.4.0, < 4.0)
501-
rubocop-ast (1.38.0)
502-
parser (>= 3.3.1.0)
503+
rubocop-ast (1.43.0)
504+
parser (>= 3.3.7.2)
505+
prism (~> 1.4)
503506
rubocop-capybara (2.21.0)
504507
rubocop (~> 1.41)
505508
rubocop-factory_bot (2.26.1)
506509
rubocop (~> 1.61)
507-
rubocop-performance (1.23.1)
508-
rubocop (>= 1.48.1, < 2.0)
509-
rubocop-ast (>= 1.31.1, < 2.0)
510+
rubocop-performance (1.24.0)
511+
lint_roller (~> 1.1)
512+
rubocop (>= 1.72.1, < 2.0)
513+
rubocop-ast (>= 1.38.0, < 2.0)
510514
rubocop-rails (2.26.2)
511515
activesupport (>= 4.2.0)
512516
rack (>= 1.1)
@@ -558,18 +562,18 @@ GEM
558562
actionpack (>= 6.1)
559563
activesupport (>= 6.1)
560564
sprockets (>= 3.0.0)
561-
standard (1.45.0)
565+
standard (1.47.0)
562566
language_server-protocol (~> 3.17.0.2)
563567
lint_roller (~> 1.0)
564-
rubocop (~> 1.71.0)
568+
rubocop (~> 1.73.0)
565569
standard-custom (~> 1.0.0)
566-
standard-performance (~> 1.6)
570+
standard-performance (~> 1.7)
567571
standard-custom (1.0.2)
568572
lint_roller (~> 1.0)
569573
rubocop (~> 1.50)
570-
standard-performance (1.6.0)
574+
standard-performance (1.7.0)
571575
lint_roller (~> 1.1)
572-
rubocop-performance (~> 1.23.0)
576+
rubocop-performance (~> 1.24.0)
573577
standard-rails (1.2.0)
574578
lint_roller (~> 1.0)
575579
rubocop-rails (~> 2.26.0)

app/controllers/imports_controller.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ class ImportsController < ApplicationController
44
include ActionView::Helpers::UrlHelper
55
after_action :verify_authorized
66

7+
ERR_FAILED_IMPORT_NOTE = "Note: An additional 'error' column has been added to the file. " \
8+
"Please note the failure reason and remove the column when resubmitting."
9+
ERR_FILE_NOT_ATTACHED = "You must attach a CSV file in order to import information!"
10+
ERR_FILE_NOT_FOUND = "CSV import file not found."
11+
ERR_FILE_EMPTY = "File can not be empty."
12+
ERR_INVALID_HEADER = "Looks like this CSV contains invalid formatting. " \
13+
"Please download an example CSV for reference and try again."
14+
715
def index
816
authorize :import
917
@import_type = params.fetch(:import_type, "volunteer")
@@ -46,14 +54,6 @@ def download_failed
4654

4755
private
4856

49-
ERR_FAILED_IMPORT_NOTE = "Note: An additional 'error' column has been added to the file. " \
50-
"Please note the failure reason and remove the column when resubmitting."
51-
ERR_FILE_NOT_ATTACHED = "You must attach a CSV file in order to import information!"
52-
ERR_FILE_NOT_FOUND = "CSV import file not found."
53-
ERR_FILE_EMPTY = "File can not be empty."
54-
ERR_INVALID_HEADER = "Looks like this CSV contains invalid formatting. " \
55-
"Please download an example CSV for reference and try again."
56-
5757
def header
5858
{
5959
"volunteer" => VolunteerImporter::IMPORT_HEADER,

app/models/case_contact_report.rb

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
class CaseContactReport
2-
attr_reader :case_contacts, :columns
2+
COLUMNS = [
3+
:internal_contact_number,
4+
:duration_minutes,
5+
:contact_types,
6+
:contact_made,
7+
:contact_medium,
8+
:occurred_at,
9+
:added_to_system_at,
10+
:miles_driven,
11+
:wants_driving_reimbursement,
12+
:casa_case_number,
13+
:creator_email,
14+
:creator_name,
15+
:supervisor_name,
16+
:case_contact_notes,
17+
:court_topics
18+
]
319

20+
attr_reader :case_contacts, :columns
421
def initialize(args = {})
522
@columns = filtered_columns(args)
623
@case_contacts = filtered_case_contacts(args)
@@ -34,22 +51,4 @@ def filtered_columns(args)
3451
COLUMNS
3552
end
3653
end
37-
38-
COLUMNS = [
39-
:internal_contact_number,
40-
:duration_minutes,
41-
:contact_types,
42-
:contact_made,
43-
:contact_medium,
44-
:occurred_at,
45-
:added_to_system_at,
46-
:miles_driven,
47-
:wants_driving_reimbursement,
48-
:casa_case_number,
49-
:creator_email,
50-
:creator_name,
51-
:supervisor_name,
52-
:case_contact_notes,
53-
:court_topics
54-
]
5554
end

0 commit comments

Comments
 (0)