Skip to content

Commit bd9a346

Browse files
committed
Fix rubocop warning, update Gemfile.lock
1 parent 1d032a4 commit bd9a346

52 files changed

Lines changed: 71 additions & 59 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ gem "tailwindcss-rails"
2323
gem "tzinfo-data", platforms: %i[ windows jruby ]
2424

2525
# Use the database-backed adapters for Rails.cache, Active Job, and Action Cable
26+
gem "solid_cable"
2627
gem "solid_cache"
2728
gem "solid_queue"
28-
gem "solid_cable"
2929

3030
# Reduces boot times through caching; required in config/boot.rb
3131
gem "bootsnap", require: false

Gemfile.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ GEM
124124
ffi (1.17.3-aarch64-linux-musl)
125125
ffi (1.17.3-arm-linux-gnu)
126126
ffi (1.17.3-arm-linux-musl)
127+
ffi (1.17.3-arm64-darwin)
127128
ffi (1.17.3-x86_64-linux-gnu)
128129
ffi (1.17.3-x86_64-linux-musl)
129130
fugit (1.12.1)
@@ -200,6 +201,8 @@ GEM
200201
racc (~> 1.4)
201202
nokogiri (1.19.0-arm-linux-musl)
202203
racc (~> 1.4)
204+
nokogiri (1.19.0-arm64-darwin)
205+
racc (~> 1.4)
203206
nokogiri (1.19.0-x86_64-linux-gnu)
204207
racc (~> 1.4)
205208
nokogiri (1.19.0-x86_64-linux-musl)
@@ -350,6 +353,7 @@ GEM
350353
sqlite3 (2.9.0-aarch64-linux-musl)
351354
sqlite3 (2.9.0-arm-linux-gnu)
352355
sqlite3 (2.9.0-arm-linux-musl)
356+
sqlite3 (2.9.0-arm64-darwin)
353357
sqlite3 (2.9.0-x86_64-linux-gnu)
354358
sqlite3 (2.9.0-x86_64-linux-musl)
355359
sshkit (1.25.0)
@@ -368,11 +372,13 @@ GEM
368372
tailwindcss-ruby (4.1.18)
369373
tailwindcss-ruby (4.1.18-aarch64-linux-gnu)
370374
tailwindcss-ruby (4.1.18-aarch64-linux-musl)
375+
tailwindcss-ruby (4.1.18-arm64-darwin)
371376
tailwindcss-ruby (4.1.18-x86_64-linux-gnu)
372377
tailwindcss-ruby (4.1.18-x86_64-linux-musl)
373378
thor (1.5.0)
374379
thruster (0.1.18)
375380
thruster (0.1.18-aarch64-linux)
381+
thruster (0.1.18-arm64-darwin)
376382
thruster (0.1.18-x86_64-linux)
377383
timeout (0.6.0)
378384
tsort (0.2.0)
@@ -406,6 +412,7 @@ PLATFORMS
406412
aarch64-linux-musl
407413
arm-linux-gnu
408414
arm-linux-musl
415+
arm64-darwin-25
409416
x86_64-linux
410417
x86_64-linux-gnu
411418
x86_64-linux-musl
@@ -481,6 +488,7 @@ CHECKSUMS
481488
ffi (1.17.3-aarch64-linux-musl) sha256=020b33b76775b1abacc3b7d86b287cef3251f66d747092deec592c7f5df764b2
482489
ffi (1.17.3-arm-linux-gnu) sha256=5bd4cea83b68b5ec0037f99c57d5ce2dd5aa438f35decc5ef68a7d085c785668
483490
ffi (1.17.3-arm-linux-musl) sha256=0d7626bb96265f9af78afa33e267d71cfef9d9a8eb8f5525344f8da6c7d76053
491+
ffi (1.17.3-arm64-darwin) sha256=0c690555d4cee17a7f07c04d59df39b2fba74ec440b19da1f685c6579bb0717f
484492
ffi (1.17.3-x86_64-linux-gnu) sha256=3746b01f677aae7b16dc1acb7cb3cc17b3e35bdae7676a3f568153fb0e2c887f
485493
ffi (1.17.3-x86_64-linux-musl) sha256=086b221c3a68320b7564066f46fed23449a44f7a1935f1fe5a245bd89d9aea56
486494
fugit (1.12.1) sha256=5898f478ede9b415f0804e42b8f3fd53f814bd85eebffceebdbc34e1107aaf68
@@ -515,6 +523,7 @@ CHECKSUMS
515523
nokogiri (1.19.0-aarch64-linux-musl) sha256=eb70507f5e01bc23dad9b8dbec2b36ad0e61d227b42d292835020ff754fb7ba9
516524
nokogiri (1.19.0-arm-linux-gnu) sha256=572a259026b2c8b7c161fdb6469fa2d0edd2b61cd599db4bbda93289abefbfe5
517525
nokogiri (1.19.0-arm-linux-musl) sha256=23ed90922f1a38aed555d3de4d058e90850c731c5b756d191b3dc8055948e73c
526+
nokogiri (1.19.0-arm64-darwin) sha256=0811dfd936d5f6dd3f6d32ef790568bf29b2b7bead9ba68866847b33c9cf5810
518527
nokogiri (1.19.0-x86_64-linux-gnu) sha256=f482b95c713d60031d48c44ce14562f8d2ce31e3a9e8dd0ccb131e9e5a68b58c
519528
nokogiri (1.19.0-x86_64-linux-musl) sha256=1c4ca6b381622420073ce6043443af1d321e8ed93cc18b08e2666e5bd02ffae4
520529
ostruct (0.6.3) sha256=95a2ed4a4bd1d190784e666b47b2d3f078e4a9efda2fccf18f84ddc6538ed912
@@ -565,6 +574,7 @@ CHECKSUMS
565574
sqlite3 (2.9.0-aarch64-linux-musl) sha256=56a35cb2d70779afc2ac191baf2c2148242285ecfed72f9b021218c5c4917913
566575
sqlite3 (2.9.0-arm-linux-gnu) sha256=a19a21504b0d7c8c825fbbf37b358ae316b6bd0d0134c619874060b2eef05435
567576
sqlite3 (2.9.0-arm-linux-musl) sha256=fca5b26197c70e3363115d3faaea34d7b2ad9c7f5fa8d8312e31b64e7556ee07
577+
sqlite3 (2.9.0-arm64-darwin) sha256=a917bd9b84285766ff3300b7d79cd583f5a067594c8c1263e6441618c04a6ed3
568578
sqlite3 (2.9.0-x86_64-linux-gnu) sha256=72fff9bd750070ba3af695511ba5f0e0a2d8a9206f84869640b3e99dfaf3d5a5
569579
sqlite3 (2.9.0-x86_64-linux-musl) sha256=ef716ba7a66d7deb1ccc402ac3a6d7343da17fac862793b7f0be3d2917253c90
570580
sshkit (1.25.0) sha256=c8c6543cdb60f91f1d277306d585dd11b6a064cb44eab0972827e4311ff96744
@@ -574,11 +584,13 @@ CHECKSUMS
574584
tailwindcss-ruby (4.1.18) sha256=b62fad5b00494e92987ee319dfb5c5ad272f0ed93649963d62f08d2ba0f03fa7
575585
tailwindcss-ruby (4.1.18-aarch64-linux-gnu) sha256=e10f9560bccddbb4955fd535b3bcc8c7071a7df07404dd473a23fa791ec4e46b
576586
tailwindcss-ruby (4.1.18-aarch64-linux-musl) sha256=3c8426674718a2c98a0649c825ac0b3286ff52acd0b4052d7d19126cd74904f3
587+
tailwindcss-ruby (4.1.18-arm64-darwin) sha256=f940531d5a030c566d3d616004235bcd4c361abdd328f7d6c7e3a953a32e0155
577588
tailwindcss-ruby (4.1.18-x86_64-linux-gnu) sha256=e0a2220163246fe0126c5c5bafb95bc6206e7d21fce2a2878fd9c9a359137534
578589
tailwindcss-ruby (4.1.18-x86_64-linux-musl) sha256=d957cf545b09d2db7eb6267450cc1fc589e126524066537a0c4d5b99d701f4b2
579590
thor (1.5.0) sha256=e3a9e55fe857e44859ce104a84675ab6e8cd59c650a49106a05f55f136425e73
580591
thruster (0.1.18) sha256=f025103bc7c8e6747436bb9de058c366840d2871560574ea7070a9bc8608a889
581592
thruster (0.1.18-aarch64-linux) sha256=16f3d49468d76a9a5de86b7bdedf535b7b80da7c16495ca8ec96cfdc256870e2
593+
thruster (0.1.18-arm64-darwin) sha256=8b297797a354ec6a81ea156b44279b66bff8da2404112f70f4ec515c2f276cc2
582594
thruster (0.1.18-x86_64-linux) sha256=0ec1ff5f12289c1ac10cf8e28ce6b5266f4e73416b34a664b79d037c7d955c40
583595
timeout (0.6.0) sha256=6d722ad619f96ee383a0c557ec6eb8c4ecb08af3af62098a0be5057bf00de1af
584596
tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f

app/services/admins_xml_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def parse
55
first_name: node.at_xpath("USER_FNAME")&.text&.strip,
66
last_name: node.at_xpath("USER_LNAME")&.text&.strip,
77
login_id: node.at_xpath("USER_ID")&.text&.strip&.downcase,
8-
legacy_password_hash: node.at_xpath("PASSWORD")&.text&.strip
8+
legacy_password_hash: node.at_xpath("PASSWORD")&.text&.strip,
99
}
1010
end
1111
end

app/services/content_importer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def import
1313
files: { created: 0 },
1414
authors: { created: 0 },
1515
tags: { created: 0 },
16-
errors: []
16+
errors: [],
1717
}
1818

1919
parsed_content.each do |provider_data|

app/services/content_xml_parser.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def parse_topics(provider_node)
3030
issue: title_node.at_xpath("topic_issue")&.text&.strip,
3131
files: parse_files(title_node),
3232
authors: parse_authors(title_node),
33-
tags: parse_tags(title_node)
33+
tags: parse_tags(title_node),
3434
}
3535
end
3636

@@ -57,7 +57,7 @@ def parse_files(title_node)
5757
files << {
5858
filename: filename,
5959
file_size: file_node["file_size"]&.to_i,
60-
file_type: determine_file_type(filename)
60+
file_type: determine_file_type(filename),
6161
}
6262
end
6363

app/services/stats_service.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def overview
1313
total_authors: Author.count,
1414
total_tags: Tag.count,
1515
total_favorites: Favorite.count,
16-
total_local_files: LocalFile.count
16+
total_local_files: LocalFile.count,
1717
}
1818
end
1919

@@ -28,7 +28,7 @@ def activity_summary
2828
searches: base_query.searches.count,
2929
favorites: base_query.favorites.count,
3030
unfavorites: base_query.unfavorites.count,
31-
unique_users: base_query.distinct.count(:user_id)
31+
unique_users: base_query.distinct.count(:user_id),
3232
}
3333
end
3434

@@ -146,7 +146,7 @@ def group_by_day(relation, column)
146146
# No string interpolation - each column has a literal SQL expression
147147
DATE_SQL_EXPRESSIONS = {
148148
"created_at" => Arel.sql("DATE(created_at)"),
149-
"updated_at" => Arel.sql("DATE(updated_at)")
149+
"updated_at" => Arel.sql("DATE(updated_at)"),
150150
}.freeze
151151

152152
def date_sql_for_column(column)
@@ -162,7 +162,7 @@ module GroupByDayExtension
162162
# Pre-defined SQL expressions for allowed columns (no interpolation)
163163
DATE_SQL_EXPRESSIONS = {
164164
"created_at" => Arel.sql("DATE(created_at)"),
165-
"updated_at" => Arel.sql("DATE(updated_at)")
165+
"updated_at" => Arel.sql("DATE(updated_at)"),
166166
}.freeze
167167

168168
def group_by_day(column)

app/services/users_xml_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def parse
66
last_name: node.at_xpath("USER_LNAME")&.text&.strip,
77
login_id: node.at_xpath("USER_ID")&.text&.strip&.downcase,
88
login_count: node.at_xpath("LOGIN_COUNTER")&.text&.to_i || 0,
9-
favorites: parse_favorites(node.at_xpath("FAVOURITE")&.text)
9+
favorites: parse_favorites(node.at_xpath("FAVOURITE")&.text),
1010
}
1111
end
1212
end

config/initializers/filter_parameter_logging.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# Use this to limit dissemination of sensitive information.
55
# See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.
66
Rails.application.config.filter_parameters += [
7-
:passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, :cvv, :cvc
7+
:passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, :cvv, :cvc,
88
]

spec/helpers/admin/base_helper_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require 'rails_helper'
1+
require "rails_helper"
22

33
# Specs in this file have access to a helper object that includes
44
# the Admin::BaseHelper. For example:

spec/helpers/admin/dashboard_helper_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require 'rails_helper'
1+
require "rails_helper"
22

33
# Specs in this file have access to a helper object that includes
44
# the Admin::DashboardHelper. For example:

0 commit comments

Comments
 (0)