Skip to content

Commit

Permalink
Manually fix rubocop 1.23.0 violations
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy authored and Ivy Evans committed Nov 17, 2021
1 parent f8269a0 commit a7bf717
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/lograge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,5 +223,6 @@ def lograge_config
application.config.lograge
end
end
# rubocop:enable Metrics/ModuleLength

require 'lograge/railtie' if defined?(Rails)
2 changes: 2 additions & 0 deletions lib/lograge/silent_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
module Lograge
class SilentLogger < SimpleDelegator
%i[debug info warn error fatal unknown].each do |method_name|
# rubocop:disable Lint/EmptyBlock
define_method(method_name) { |*_args| }
# rubocop:enable Lint/EmptyBlock
end
end
end
5 changes: 5 additions & 0 deletions lograge.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ Gem::Specification.new do |s|
s.description = "Tame Rails' multi-line logging into a single line per request"
s.license = 'MIT'

s.metadata = { 'rubygems_mfa_required' => 'true' }

# NOTE(ivy): Ruby version 2.5 is the oldest syntax supported by Rubocop.
s.required_ruby_version = '>= 2.5'

s.files = `git ls-files lib LICENSE.txt`.split("\n")

s.add_development_dependency 'rspec', '~> 3.1'
Expand Down

0 comments on commit a7bf717

Please sign in to comment.