Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore mutagen sync temporary files #469

Merged
merged 3 commits into from Oct 31, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/listen/silencer.rb
Expand Up @@ -46,6 +46,9 @@ class Silencer
)
)

# Mutagen sync temporary files
| \.mutagen-temporary.*

# other files
| \.DS_Store
| \.tmp
Expand Down
8 changes: 8 additions & 0 deletions spec/lib/listen/silencer_spec.rb
@@ -1,3 +1,5 @@
# encoding: UTF-8
nilbus marked this conversation as resolved.
Show resolved Hide resolved

RSpec::Matchers.define :accept do |type, path|
match { |actual| !actual.silenced?(Pathname(path), type) }
end
Expand Down Expand Up @@ -35,6 +37,12 @@
# sed temp files
ignored += %w(sedq7eVAR sed86w1kB)

# mutagen temp files
ignored += %w(
.mutagen-temporary-cross-device-rename0
.mutagen-temporary-unicode-test-éntry0
)

ignored.each do |path|
it { should_not accept(:file, path) }
end
Expand Down