Skip to content

Commit 68ee25b

Browse files
author
jordanbreen28
committed
(CONT-738) - Address rubocop errors
1 parent b7bb177 commit 68ee25b

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
matrix:
3232
os:
3333
- "ubuntu-latest"
34-
- "windows-2019"
34+
- "windows-latest"
3535
ruby_version:
3636
- "2.5"
3737
- "2.7"
@@ -43,7 +43,6 @@ jobs:
4343
secrets: "inherit"
4444
with:
4545
ruby_version: ${{ matrix.ruby_version }}
46-
rake_task: 'acceptance:local_parallel'
46+
rake_task: 'acceptance'
4747
puppet_version: ${{ matrix.puppet_gem_version }}
4848
runs_on: ${{ matrix.os }}
49-

.github/workflows/nightly.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
matrix:
3131
os:
3232
- "ubuntu-latest"
33-
- "windows-2019"
33+
- "windows-latest"
3434
ruby_version:
3535
- "2.5"
3636
- "2.7"
@@ -42,7 +42,6 @@ jobs:
4242
secrets: "inherit"
4343
with:
4444
ruby_version: ${{ matrix.ruby_version }}
45-
rake_task: 'acceptance:local_parallel'
45+
rake_task: 'acceptance'
4646
puppet_version: ${{ matrix.puppet_gem_version }}
4747
runs_on: ${{ matrix.os }}
48-

.rubocop.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require: rubocop-rspec
22

33
AllCops:
4-
TargetRubyVersion: 2.3
4+
TargetRubyVersion: 2.5
55
Exclude:
66
# binstubs, and other utilities
77
- bin/**/*
@@ -178,3 +178,6 @@ Lint/RaiseException:
178178

179179
Lint/StructNewOverride:
180180
Enabled: true
181+
182+
RSpec/MultipleMemoizedHelpers:
183+
Max: 14

Gemfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ group :development do
1111
gem 'rake', '~> 12.0'
1212
gem 'rspec', '~> 3.0'
1313

14-
gem 'rubocop', ['~> 0.68', '< 0.82.0']
15-
gem 'rubocop-rspec', '~> 1.38'
14+
gem 'rubocop', '= 1.6.1', require: false
15+
gem 'rubocop-performance', '= 1.9.1', require: false
16+
gem 'rubocop-rspec', '= 2.0.1', require: false
1617

1718
gem 'codecov', '~> 0.1'
1819
gem 'github_changelog_generator', '~> 1.15', require: false

lib/puppet/modulebuilder/builder.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ class Builder
1616
'/vendor/',
1717
].freeze
1818

19-
attr_reader :destination
20-
21-
attr_reader :logger
19+
attr_reader :destination, :logger
2220

2321
def initialize(source, destination = nil, logger = nil)
2422
raise ArgumentError, 'logger is expected to be nil or a Logger. Got %{klass}' % { klass: logger.class } unless logger.nil? || logger.is_a?(Logger)
@@ -143,7 +141,7 @@ def copy_mtime(path)
143141
#
144142
# @return [Boolean] true if the path matches and should be ignored.
145143
def ignored_path?(path)
146-
path = path.to_s + '/' if File.directory?(path)
144+
path = "#{path}/" if File.directory?(path)
147145

148146
ignored_files.match_path(path, source)
149147
end

puppet-modulebuilder.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
99
spec.email = ['[email protected]', 'https://puppetlabs.github.io/iac/']
1010
spec.summary = 'A gem to set up puppet-modulebuilder'
1111
spec.homepage = 'https://github.com/puppetlabs/puppet-modulebuilder'
12-
spec.required_ruby_version = Gem::Requirement.new('>= 2.1.0')
12+
spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
1313
spec.license = 'Apache-2.0'
1414

1515
spec.metadata['homepage_uri'] = spec.homepage

0 commit comments

Comments
 (0)