Skip to content

Commit

Permalink
Fix issue with 2.6.
Browse files Browse the repository at this point in the history
  1) Listen::Adapter::Linux _callback recognizes close_write as modify
     Failure/Error: rel_path = path.relative_path_from(dir).to_s

     TypeError:
       no implicit conversion of RSpec::Mocks::InstanceVerifyingDouble into String
     # ./lib/listen/adapter/linux.rb:48:in `_process_event'
     # ./lib/listen/adapter/base.rb:42:in `block (2 levels) in configure'
     # ./spec/lib/listen/adapter/linux_spec.rb:99:in `block (5 levels) in <top (required)>'
     # ./spec/lib/listen/adapter/linux_spec.rb:98:in `each'
     # ./spec/lib/listen/adapter/linux_spec.rb:98:in `block (4 levels) in <top (required)>'
     # ./spec/lib/listen/adapter/linux_spec.rb:113:in `block (3 levels) in <top (required)>'
  • Loading branch information
ioquatix committed Dec 15, 2018
1 parent e86de4d commit 4665942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/listen/adapter/linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _process_event(dir, event)
# will need to have a custom recursion implemented
# to properly match events to configured directories
path = Pathname.new(event.watcher.path) + event.name
rel_path = path.relative_path_from(dir).to_s
rel_path = path.relative_path_from(dir.to_s).to_s

_log(:debug) { "inotify: #{rel_path} (#{event.flags.inspect})" }

Expand Down

0 comments on commit 4665942

Please sign in to comment.