Skip to content

Releases: filewatcher/filewatcher

Plugins system

17 Nov 18:01
v2.0.0
8a7c25d
Compare
Choose a tag to compare
  • Add plugin system.
    Take out CLI and spinner.
    Add more plugins like matrix and access.
  • Remove :every option: do it yourself via changes.first, if you want.
  • Drop Ruby 2.4 and 2.5 support.
  • Support Ruby 3.0 and 3.1.
  • Switch from bacon test framework to RSpec.
    Speed up and improve tests, fix many phantom fails.
  • Update development dependencies.
  • Add rubocop-rspec and rubocop-performance.
  • Resolve new offenses from RuboCop and its plugins.
  • Switch from Travis CI to Cirrus CI.
  • Add JRuby, Windows and TruffleRuby to CI.
  • Add bundle-audit CI task.

Fix `--restart` option

18 Sep 21:29
1eef728
Compare
Choose a tag to compare

More info at #96.

Replace `Trollop` with `Optimist`

10 Sep 16:07
fa1f1eb
Compare
Choose a tag to compare

More info in #94 .

Also fix some issues in #86 and #91 (with improvement in #93).

The first stable version, refactored and tested

24 Sep 21:20
Compare
Choose a tag to compare

FileWatcher renamed to Filewatcher (now follows the generally accepted rules of naming).

Events renamed:

Before After
changed updated
new created
delete deleted

The executable file now executes the command only once by default when several files are changed. To return the old behavior, the option --every is added.

For the Ruby API, Hash with changes to the current snapshot are now available, and you are free to process any change as you wish.

Tests are now very long (we will improve it), but (hopefully) reliable.

Congratulations!

New --restart and --dontwait options

06 Feb 13:55
Compare
Choose a tag to compare

The --restart option restarts the command when changes happens on the file system. The --dontwait starts the command when filewatcher is started. To start a webserver and have it automatically restart when html files are updated:

$ filewatcher --dontwait --restart "*.html" "python -m SimpleHTTPServer"

Support for absolute and globbed paths

30 Dec 11:47
Compare
Choose a tag to compare

Absolute paths and globbed paths now work properly.

FileWatcher.new(["/tmp/"]).watch do |filename|
  ...
end
FileWatcher.new(["/tmp/**"]).watch do |filename|
  ...
end

Exit cleanly from ctrl-c

02 Jul 21:44
Compare
Choose a tag to compare

This prevents a stack trace from printing on exit.