Skip to content

Commit

Permalink
Remove Listen monkey patch and update to Listen 3.9
Browse files Browse the repository at this point in the history
This issue guard/listen#572 has been resolved.
  • Loading branch information
AlexB52 committed Feb 25, 2024
1 parent c10dd5a commit e764dde
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 33 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: .
specs:
retest (1.12.0)
listen (~> 3.2)
listen (~> 3.9)
string-similarity (~> 2.1)
tty-option (~> 0.1)

Expand All @@ -11,7 +11,7 @@ GEM
specs:
byebug (11.1.3)
ffi (1.16.3)
listen (3.8.0)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
minitest (5.15.0)
Expand Down
29 changes: 0 additions & 29 deletions lib/config/listen.rb

This file was deleted.

3 changes: 2 additions & 1 deletion lib/retest.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'listen'
require 'config/listen'

require 'string/similarity'
require 'observer'
Expand All @@ -17,6 +16,8 @@
require "retest/prompt"
require "retest/sounds"

Listen.adapter_warn_behavior = :log

module Retest
class Error < StandardError; end

Expand Down
2 changes: 1 addition & 1 deletion retest.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_runtime_dependency "string-similarity", ["~> 2.1"]
spec.add_runtime_dependency "listen", ["~> 3.2"]
spec.add_runtime_dependency "listen", ["~> 3.9"]
spec.add_runtime_dependency "tty-option", ["~> 0.1"]
end

0 comments on commit e764dde

Please sign in to comment.