Module: Autotest::Mac
- Defined in:
- lib/autotest-mac.rb
Instance Method Summary collapse
-
#initialize ⇒ Object
Add some exceptions.
-
#waiting ⇒ Object
Use FSEvent if possible.
Instance Method Details
#initialize ⇒ Object
Add some exceptions
81 82 83 84 |
# File 'lib/autotest-mac.rb', line 81 Autotest.add_hook :initialize do |autotest| %w{.git .svn .hg .DS_Store ._* vendor}.each {|exception| autotest.add_exception(exception) } false end |
#waiting ⇒ Object
Use FSEvent if possible
88 89 90 91 92 93 94 95 |
# File 'lib/autotest-mac.rb', line 88 Autotest.add_hook :waiting do |autotest| if RUBY_PLATFORM.sub(/^.*?darwin(\d+).*$/, '\1').to_i >= 9 # Darwin 9 alias Mac OS X 10.5 or above only `#{File.join(GEM_DIR, 'fsevent', 'fsevent_sleep')} '#{Dir.pwd}' 2>&1` else puts "\nautotest-mac: FSEvent not available, falling back to filesystem polling." end false end |