Skip to content

Commit 781c4f3

Browse files
petergoldsteinpostmodern
authored andcommitted
Fix assorted lints
1 parent 198e1e8 commit 781c4f3

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

bundler-audit.gemspec

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ Gem::Specification.new do |gem|
2222
glob = lambda { |patterns| gem.files & Dir[*patterns] }
2323

2424
gem.files = if gemspec['files'] then glob[gemspec['files']]
25-
else `git ls-files`.split($/)
25+
else
26+
`git ls-files`.split($/)
2627
end
2728

2829
gem.executables = gemspec.fetch('executables') do
@@ -56,4 +57,5 @@ Gem::Specification.new do |gem|
5657
gem.add_development_dependency(name,split[versions])
5758
end
5859
end
60+
gem.metadata['rubygems_mfa_required'] = 'true'
5961
end

lib/bundler/audit/cli.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ def check(dir=Dir.pwd)
7676
report = scanner.report(ignore: options.ignore)
7777

7878
output = if options[:output] then File.new(options[:output],'w')
79-
else $stdout
79+
else
80+
$stdout
8081
end
8182

8283
print_report(report,output)

lib/bundler/audit/scanner.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ def scan_specs(options={})
218218
return enum_for(__method__,options) unless block_given?
219219

220220
ignore = if options[:ignore] then Set.new(options[:ignore])
221-
else config.ignore
221+
else
222+
config.ignore
222223
end
223224

224225
@lockfile.specs.each do |gem|

spec/advisory_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
describe "load" do
4848
let(:data) do
49-
File.open( path ) do |yaml|
49+
File.open(path) do |yaml|
5050
if Psych::VERSION >= '3.1.0'
5151
YAML.safe_load(yaml, permitted_classes: [Date])
5252
else

0 commit comments

Comments
 (0)