Skip to content

Commit

Permalink
fix appraisal
Browse files Browse the repository at this point in the history
  • Loading branch information
bdurand committed Aug 27, 2020
1 parent d1a4a9c commit dfc4b66
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ format: progress
ignore:
- '**/*':
- Standard/SemanticBlocks
- Performance/RegexpMatch
- 'spec/**/*':
- Lint/UselessAssignment
- Lint/Void
2 changes: 0 additions & 2 deletions lib/lumberjack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
require "logger"

module Lumberjack
# rubocop:disable Performance/RegexpMatch
LINE_SEPARATOR = (RbConfig::CONFIG["host_os"] =~ /mswin/i ? "\r\n" : "\n")
# rubocop:enable Performance/RegexpMatch

require_relative "lumberjack/severity"
require_relative "lumberjack/formatter"
Expand Down
2 changes: 1 addition & 1 deletion lib/lumberjack/device/size_rolling_log_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def roll_file?
def next_archive_number # :nodoc:
max = 0
Dir.glob("#{path}.*").each do |filename|
if /\.\d+$/.match?(filename)
if /\.\d+\z/ =~ filename
suffix = filename.split(".").last.to_i
max = suffix if suffix > max
end
Expand Down
2 changes: 1 addition & 1 deletion spec/device/rolling_log_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
end

# Process.fork is unavailable on jruby so we need to use the java threads instead.
if RUBY_PLATFORM.match?(/java/)
if RUBY_PLATFORM =~ /java/
outer_threads = []
process_count.times do
outer_threads << Thread.new(&logger_test)
Expand Down

0 comments on commit dfc4b66

Please sign in to comment.