Skip to content

Commit 231d1bb

Browse files
committed
Fix rubocop offences
1 parent ef61821 commit 231d1bb

File tree

5 files changed

+4
-2
lines changed

5 files changed

+4
-2
lines changed

Diff for: bin/rails-audit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env ruby
22

3-
require 'rails-audit'
3+
require 'rails_audit'
44

55
exit(1) unless RailsAudit::Runner.new.run

Diff for: lib/rails-audit/audit.rb

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ def self.command(_rails)
66

77
def self.run(config)
88
return true unless config[:enabled] && (config[:rails] || !self::RAILS)
9+
910
system "#{command config[:rails]} #{config[:params]}"
1011
end
1112

Diff for: lib/rails-audit/runner.rb

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class Runner
55
def initialize
66
@config = { 'Concurrency' => true, 'Rails' => true }
77
return unless File.exist? 'config/audit.yml'
8+
89
@config = @config.merge YAML.load_file('config/audit.yml')
910
end
1011

Diff for: lib/rails-audit.rb renamed to lib/rails_audit.rb

File renamed without changes.

Diff for: rails-audit.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require File.expand_path('lib/rails-audit/version', __dir__)
22

3-
Gem::Specification.new do |s| # rubocop:disable Metrics/BlockLength
3+
Gem::Specification.new do |s|
44
s.name = 'rails-audit'
55
s.version = RailsAudit::Version.to_s
66
s.platform = Gem::Platform::RUBY

0 commit comments

Comments
 (0)