Skip to content

Commit 639de8c

Browse files
committed
(maint) Rubocop fixes
1 parent a5ae758 commit 639de8c

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.rubocop_todo.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2023-11-28 17:42:38 UTC using RuboCop version 1.48.1.
3+
# on 2025-10-01 10:09:02 UTC using RuboCop version 1.73.2.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9+
# Offense count: 4
10+
RSpec/ExpectInLet:
11+
Exclude:
12+
- 'spec/defines/config/server/service_spec.rb'
13+
914
# Offense count: 128
1015
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
1116
# SupportedStyles: always, named_only

spec/acceptance/acceptance_1_readme_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
require 'spec_helper_acceptance'
44

55
confine_array = [
6-
(os[:family] =~ %r{debian|ubuntu} && os[:release] == '18.04'),
7-
(os[:family].include?('redhat') && os[:release].start_with?('5')),
6+
os[:family] =~ %r{debian|ubuntu} && os[:release] == '18.04',
7+
os[:family].include?('redhat') && os[:release].start_with?('5'),
88
]
99
stop_test = confine_array.any?
1010

spec/spec_helper_acceptance_local.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ def latest_tomcat_tarball_url(version)
6161
require 'net/http'
6262
page = Net::HTTP.get(URI("https://tomcat.apache.org/download-#{version}0.cgi"))
6363

64-
url = ((match = page.match(%r{https?://.*?apache-tomcat-(.{4,9}).tar.gz})) && match[0])
64+
url = (match = page.match(%r{https?://.*?apache-tomcat-(.{4,9}).tar.gz})) && match[0]
6565
return url if url
6666

67-
mirror_url = ((match = page.match(%r{<strong>(https?://.*?)/</strong>})) && match[1])
67+
mirror_url = (match = page.match(%r{<strong>(https?://.*?)/</strong>})) && match[1]
6868
page = Net::HTTP.get(URI("#{mirror_url}/tomcat/tomcat-#{version}/"))
69-
latest_version = ((match = page.match(%r{href="v(.{4,9})/"})) && match[1])
69+
latest_version = (match = page.match(%r{href="v(.{4,9})/"})) && match[1]
7070

7171
"#{mirror_url}/tomcat/tomcat-#{version}/v#{latest_version}/bin/apache-tomcat-#{latest_version}.tar.gz"
7272
end

0 commit comments

Comments
 (0)