fssm
fssm copied to clipboard
The File System State Monitor keeps track of the state of any number of paths and will fire events when said state changes (create/update/delete). FSSM supports using FSEvents on MacOS, Inotify on GNU...
## ENV OS: Ubuntu 14.04 Ruby Version: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux] rb-inotify Version: 0.9.10 ## Backtrace ``` /home/vagrant/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fssm-0.2.10/lib/fssm/support.rb:58:in `>': comparison of String with 0 failed (ArgumentError) from /home/vagrant/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fssm-0.2.10/lib/fssm/support.rb:58:in...
I was trying to determine the licenses for my dependencies. I found that the RubyGems API will return the license, but only if it is specified in your gemspec file.
Sorry, my english is terrible. I want to monitoring test in rspec. i tried below, but "create!" doesn't puts stdout. Please teach me something wrong point. Thanks. https://github.com/onigra/fssm_test ``` ruby...
Maybe, this problem occurs only under the cygwin environment. Cause of a problem: ``` Pathname("//host/share").join("hoge.txt") # => # Pathname("//host/share/").join("hoge.txt") # => # ``` This makes corruption at FSSM::Pathname.for().join() in FSSM::Tree::NodeEnumerable.each()....
For ex. I want to watch whole folder (full of various files), without one file "foo.rb"? Can I do it? How? Thanks, Chris
According to this, Windows filesystems might be able to do this more elegantly, too: https://stackoverflow.com/questions/3517460/is-there-anything-like-inotify-on-windows How complicated would it be to add support? Do you think it would be enough...
RubyGems.org doesn't report a license for your gem. This is because it is not specified in the [gemspec](http://docs.rubygems.org/read/chapter/20#license) of your last release. via e.g. ``` spec.license = 'MIT' # or...
For cygwin paths, following code produces incorrect array of path segments: ``` require 'rubygems' require 'fssm' print "#{FSSM::Pathname.for('/cygdrive/c/tmp').segments.join(', ')}\n" ``` //, cygdrive, c, tmp This is due to line 26...
I'm stumped on how to make it work in a pretty basic class: ``` class Watcher def start monitor = FSSM::Monitor.new(:directories => true) monitor.path('test_data/', '**/*') do update do |base, relative,...
investigate and potentially reuse ideas from the tree/monitor implementation in em-dir-watcher