Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

Commit 2fd353c

Browse files
committed
gem/rubocop
1 parent f02b96d commit 2fd353c

5 files changed

Lines changed: 54 additions & 55 deletions

File tree

src-colladmin/Gemfile.lock

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,48 +18,48 @@ GEM
1818
remote: https://rubygems.org/
1919
specs:
2020
ast (2.4.3)
21-
aws-eventstream (1.3.2)
22-
aws-partitions (1.1103.0)
23-
aws-sdk-core (3.224.0)
21+
aws-eventstream (1.4.0)
22+
aws-partitions (1.1124.0)
23+
aws-sdk-core (3.226.2)
2424
aws-eventstream (~> 1, >= 1.3.0)
2525
aws-partitions (~> 1, >= 1.992.0)
2626
aws-sigv4 (~> 1.9)
2727
base64
2828
jmespath (~> 1, >= 1.6.1)
2929
logger
30-
aws-sdk-ec2 (1.523.0)
31-
aws-sdk-core (~> 3, >= 3.216.0)
30+
aws-sdk-ec2 (1.534.0)
31+
aws-sdk-core (~> 3, >= 3.225.0)
3232
aws-sigv4 (~> 1.5)
33-
aws-sdk-kms (1.101.0)
34-
aws-sdk-core (~> 3, >= 3.216.0)
33+
aws-sdk-kms (1.106.0)
34+
aws-sdk-core (~> 3, >= 3.225.0)
3535
aws-sigv4 (~> 1.5)
36-
aws-sdk-lambda (1.151.0)
37-
aws-sdk-core (~> 3, >= 3.216.0)
36+
aws-sdk-lambda (1.153.0)
37+
aws-sdk-core (~> 3, >= 3.225.0)
3838
aws-sigv4 (~> 1.5)
39-
aws-sdk-s3 (1.186.0)
40-
aws-sdk-core (~> 3, >= 3.216.0)
39+
aws-sdk-s3 (1.191.0)
40+
aws-sdk-core (~> 3, >= 3.225.0)
4141
aws-sdk-kms (~> 1)
4242
aws-sigv4 (~> 1.5)
43-
aws-sdk-ssm (1.195.0)
44-
aws-sdk-core (~> 3, >= 3.216.0)
43+
aws-sdk-ssm (1.197.0)
44+
aws-sdk-core (~> 3, >= 3.225.0)
4545
aws-sigv4 (~> 1.5)
46-
aws-sigv4 (1.11.0)
46+
aws-sigv4 (1.12.1)
4747
aws-eventstream (~> 1, >= 1.0.2)
48-
base64 (0.2.0)
49-
csv (3.3.4)
48+
base64 (0.3.0)
49+
csv (3.3.5)
5050
domain_name (0.6.20240107)
5151
http-accept (1.7.0)
5252
http-cookie (1.0.8)
5353
domain_name (~> 0.5)
5454
jmespath (1.6.2)
55-
json (2.12.0)
55+
json (2.12.2)
5656
language_server-protocol (3.17.0.5)
5757
lint_roller (1.1.0)
5858
logger (1.7.0)
5959
mime-types (3.7.0)
6060
logger
6161
mime-types-data (~> 3.2025, >= 3.2025.0507)
62-
mime-types-data (3.2025.0507)
62+
mime-types-data (3.2025.0701)
6363
mini_portile2 (2.8.9)
6464
mysql2 (0.5.6)
6565
netrc (0.11.0)
@@ -81,18 +81,18 @@ GEM
8181
http-cookie (>= 1.0.2, < 2.0)
8282
mime-types (>= 1.16, < 4.0)
8383
netrc (~> 0.8)
84-
rubocop (1.75.5)
84+
rubocop (1.77.0)
8585
json (~> 2.3)
8686
language_server-protocol (~> 3.17.0.2)
8787
lint_roller (~> 1.1.0)
8888
parallel (~> 1.10)
8989
parser (>= 3.3.0.2)
9090
rainbow (>= 2.2.2, < 4.0)
9191
regexp_parser (>= 2.9.3, < 3.0)
92-
rubocop-ast (>= 1.44.0, < 2.0)
92+
rubocop-ast (>= 1.45.1, < 2.0)
9393
ruby-progressbar (~> 1.7)
9494
unicode-display_width (>= 2.4.0, < 4.0)
95-
rubocop-ast (1.44.1)
95+
rubocop-ast (1.45.1)
9696
parser (>= 3.3.7.2)
9797
prism (~> 1.4)
9898
ruby-progressbar (1.13.0)
@@ -124,4 +124,4 @@ DEPENDENCIES
124124
zookeeper
125125

126126
BUNDLED WITH
127-
2.6.8
127+
2.6.9

src-colladmin/actions/ucb_audit_reset_action.rb

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def initialize(config, action, path, myparams)
88
@days = myparams.fetch('days', '7').to_i
99
@wait_hours = myparams.fetch('wait_hours', '24').to_i
1010
@limit = myparams.fetch('limit', '50').to_i
11-
super(config, action, path, myparams)
11+
super
1212
end
1313

1414
def get_title
@@ -27,23 +27,23 @@ def table_rows(_body)
2727
sql = %{
2828
select distinct
2929
o.id, o.ark, o.modified, 'PASS' as status
30-
from
30+
from
3131
inv.inv_objects o
3232
inner join
33-
inv.inv_audits a
34-
on
35-
a.inv_object_id = o.id
36-
and
33+
inv.inv_audits a
34+
on
35+
a.inv_object_id = o.id
36+
and
3737
a.inv_node_id = 16 /*sdsc node*/
38-
where
38+
where
3939
o.inv_owner_id=14 /*ucb owner*/
40-
and
40+
and
4141
o.modified > date_add(now(), interval -#{@days} day)
4242
and
4343
ifnull(verified, o.modified) < date_add(o.modified, interval #{@wait_hours} hour)
44-
and
44+
and
4545
o.modified < date_add(now(), interval -#{@wait_hours} hour)
46-
and
46+
and
4747
a.status = 'verified'
4848
order by o.modified
4949
limit #{@limit}
@@ -82,5 +82,4 @@ def has_table
8282
def init_status
8383
:PASS
8484
end
85-
8685
end

src-colladmin/lib/merritt_ldap.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def initialize(entry, uid = '')
241241
end
242242

243243
def displayname
244-
"#{@displayname.nil? ? '' : @displayname.gsub(',', '')} (#{uid})"
244+
"#{@displayname&.gsub(',', '')} (#{uid})"
245245
end
246246

247247
def ark

src-colladmin/lib/profile.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def score_diff(template)
203203
].each do |sym|
204204
val = get_value(sym)
205205
templateval = template.get_value(sym)
206-
(0..[val.length, templateval.length].max - 1).each do |i|
206+
(0..([val.length, templateval.length].max - 1)).each do |i|
207207
@score += 1 if val[i] != templateval[i]
208208
end
209209
end
@@ -252,7 +252,7 @@ def add_row(rows, label, val, templateval)
252252
if val.instance_of?(Array)
253253
diff = []
254254
has_diff = false
255-
(0..[val.length, templateval.length].max - 1).each do |i|
255+
(0..([val.length, templateval.length].max - 1)).each do |i|
256256
if val[i] == templateval[i]
257257
diff.append('')
258258
elsif val[i].nil?

src-testdriver/Gemfile.lock

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,29 @@ GEM
99
remote: https://rubygems.org/
1010
specs:
1111
ast (2.4.3)
12-
aws-eventstream (1.3.2)
13-
aws-partitions (1.1103.0)
14-
aws-sdk-core (3.224.0)
12+
aws-eventstream (1.4.0)
13+
aws-partitions (1.1124.0)
14+
aws-sdk-core (3.226.2)
1515
aws-eventstream (~> 1, >= 1.3.0)
1616
aws-partitions (~> 1, >= 1.992.0)
1717
aws-sigv4 (~> 1.9)
1818
base64
1919
jmespath (~> 1, >= 1.6.1)
2020
logger
21-
aws-sdk-lambda (1.151.0)
22-
aws-sdk-core (~> 3, >= 3.216.0)
21+
aws-sdk-lambda (1.153.0)
22+
aws-sdk-core (~> 3, >= 3.225.0)
2323
aws-sigv4 (~> 1.5)
24-
aws-sdk-ssm (1.195.0)
25-
aws-sdk-core (~> 3, >= 3.216.0)
24+
aws-sdk-ssm (1.197.0)
25+
aws-sdk-core (~> 3, >= 3.225.0)
2626
aws-sigv4 (~> 1.5)
27-
aws-sigv4 (1.11.0)
27+
aws-sigv4 (1.12.1)
2828
aws-eventstream (~> 1, >= 1.0.2)
29-
base64 (0.2.0)
29+
base64 (0.3.0)
3030
byebug (12.0.0)
3131
colorize (1.1.0)
3232
diff-lcs (1.6.2)
3333
jmespath (1.6.2)
34-
json (2.12.0)
34+
json (2.12.2)
3535
language_server-protocol (3.17.0.5)
3636
lint_roller (1.1.0)
3737
logger (1.7.0)
@@ -47,31 +47,31 @@ GEM
4747
racc (1.8.1)
4848
rainbow (3.1.1)
4949
regexp_parser (2.10.0)
50-
rspec (3.13.0)
50+
rspec (3.13.1)
5151
rspec-core (~> 3.13.0)
5252
rspec-expectations (~> 3.13.0)
5353
rspec-mocks (~> 3.13.0)
54-
rspec-core (3.13.3)
54+
rspec-core (3.13.5)
5555
rspec-support (~> 3.13.0)
56-
rspec-expectations (3.13.4)
56+
rspec-expectations (3.13.5)
5757
diff-lcs (>= 1.2.0, < 2.0)
5858
rspec-support (~> 3.13.0)
59-
rspec-mocks (3.13.4)
59+
rspec-mocks (3.13.5)
6060
diff-lcs (>= 1.2.0, < 2.0)
6161
rspec-support (~> 3.13.0)
62-
rspec-support (3.13.3)
63-
rubocop (1.75.5)
62+
rspec-support (3.13.4)
63+
rubocop (1.77.0)
6464
json (~> 2.3)
6565
language_server-protocol (~> 3.17.0.2)
6666
lint_roller (~> 1.1.0)
6767
parallel (~> 1.10)
6868
parser (>= 3.3.0.2)
6969
rainbow (>= 2.2.2, < 4.0)
7070
regexp_parser (>= 2.9.3, < 3.0)
71-
rubocop-ast (>= 1.44.0, < 2.0)
71+
rubocop-ast (>= 1.45.1, < 2.0)
7272
ruby-progressbar (~> 1.7)
7373
unicode-display_width (>= 2.4.0, < 4.0)
74-
rubocop-ast (1.44.1)
74+
rubocop-ast (1.45.1)
7575
parser (>= 3.3.7.2)
7676
prism (~> 1.4)
7777
ruby-progressbar (1.13.0)
@@ -95,4 +95,4 @@ DEPENDENCIES
9595
uc3-ssm!
9696

9797
BUNDLED WITH
98-
2.6.8
98+
2.6.9

0 commit comments

Comments
 (0)