From d8fdc403e73f9cb4bc3e0402694fd6764a289d09 Mon Sep 17 00:00:00 2001 From: Colin Kelley Date: Tue, 27 Feb 2024 17:27:17 -0800 Subject: [PATCH] rubocop -a; rubocop -A --- Gemfile | 2 +- lib/listen/logger.rb | 2 +- lib/listen/silencer.rb | 2 +- listen.gemspec | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 5c7348cf..ee8bfedb 100644 --- a/Gemfile +++ b/Gemfile @@ -34,6 +34,6 @@ group :development do gem 'netrc', require: false gem 'octokit', require: false gem 'pry-rescue' - gem 'rubocop' + gem 'rubocop', require: false gem 'yard', require: false end diff --git a/lib/listen/logger.rb b/lib/listen/logger.rb index 9689252e..0bb98067 100644 --- a/lib/listen/logger.rb +++ b/lib/listen/logger.rb @@ -46,7 +46,7 @@ def default_logger ::Logger.new(STDERR, level: level) end - + def adapter_warn_behavior_callback(message) if adapter_warn_behavior.respond_to?(:call) case behavior = adapter_warn_behavior.call(message) diff --git a/lib/listen/silencer.rb b/lib/listen/silencer.rb index 4e99b45e..3cc7936c 100644 --- a/lib/listen/silencer.rb +++ b/lib/listen/silencer.rb @@ -75,7 +75,7 @@ def configure(options) end def silenced?(relative_path, type) - path = relative_path.to_s # in case it is a Pathname + path = relative_path.to_s # in case it is a Pathname _ignore?(path) || (only_patterns && type == :file && !_only?(path)) end diff --git a/listen.gemspec b/listen.gemspec index ba62b76c..a61fd307 100644 --- a/listen.gemspec +++ b/listen.gemspec @@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'listen/version' -Gem::Specification.new do |gem| # rubocop:disable Metrics/BlockLength +Gem::Specification.new do |gem| gem.name = 'listen' gem.version = Listen::VERSION gem.license = 'MIT'