Filewatcher Access
Add access
event for Filewatcher (where it's supported).
Installation
Add this line to your application's Gemfile:
gem 'filewatcher-access'
And then execute:
bundle install
Or install it yourself as:
gem install filewatcher-access
Usage
require 'filewatcher/access'
Filewatcher.new('lib/').watch do |filename, event|
## there will be `accessed` event
end
Also you can use it with CLI:
$ filewatcher -p access '**/*'
Development
After checking out the repo, run bundle install
to install dependencies.
Then, run bundle exec rspec
to run the tests.
To install this gem onto your local machine, run toys gem install
.
To release a new version, run toys gem release %version%
.
See how it works here.
Contributing
Bug reports and pull requests are welcome on GitHub.
License
The gem is available as open source under the terms of the MIT License.