• Stars
    star
    124
  • Rank 288,207 (Top 6 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 15 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Use FSEvent (Mac OS X 10.5 or higher) instead of filesystem polling.

Version GitHub Sponsors

autotest-fsevent

Autotest relies on filesystem polling to detect modifications in source code files. In other words: The filesytem is constantly being traversed which causes quite some load on both the CPU and the harddrive. This is not healthy for your Mac and if you are working on a portable computer, it will drain your battery.

Apple has introduced FSEvent with Mac OS X 10.5 which is a very efficient way to have the operating system monitor file alterations. This gem teaches autotest to use FSEvent and therefore be nice to your Mac.

Thank you for supporting free and open-source software by sponsoring on GitHub or on Donorbox. Any gesture is appreciated, from a single Euro for a β˜•οΈ cup of coffee to 🍹 early retirement.

Install

This gem is cryptographically signed in order to assure it hasn't been tampered with. Unless already done, please add the author's public key as a trusted certificate now:

gem cert --add <(curl -Ls https://raw.github.com/svoop/autotest-fsevent/main/certs/svoop.pem)

In order to compile the fsevent binary at install time, Xcode (macOS development suite) must be installed. You can download it for free from:

https://developer.apple.com

You can use any ZenTest-compatible test suite with this gem such as:

Add this to your Gemfile or gems.rb:

gem autotest-fsevent, group: :development

And securely install the bundle:

bundle install --trust-policy MediumSecurity

Then add the following line after all other requires in your ~/.autotest file:

require 'autotest/fsevent'

Troubleshooting

Autotest Binary Not Present

Make sure you have either the ZenTest gem or the autotest-standalone gem installed. This dependency has been dropped as of autotest-fsevent-0.2.3 in order to allow any compatible test suite.

Compilation of fsevent_sleep Failed

Make sure you have Xcode (Mac OS X Development Suite) installed. You can download it for free from:

https://developer.apple.com

If you don't want to install Xcode, download the prebuilt fsevent_sleep binary, make the downloaded binary executable and install the gem as follows:

FSEVENT_SLEEP="/absolute/path/to/fsevent_sleep" gem install autotest-fsevent

Development

To install the development dependencies:

bundle install

Please submit issues on:

https://github.com/svoop/autotest-fsevent/issues

To contribute code, fork the project on Github, add your code and submit a pull request:

https://help.github.com/articles/fork-a-repo

License

The gem is available as open source under the terms of the MIT License.

More Repositories

1

autotest-growl

Next generation Growl support for autotest.
Ruby
157
star
2

dry-credentials

A mixin to use encrypted credentials in your classes
Ruby
13
star
3

wowmow

Dead simple reverse proxy to expose a local development server to the world via Render.
Ruby
11
star
4

aipp

AIP parser to convert AIP publications to AIXM or OFMX
Ruby
9
star
5

notam

Parser for NOTAM (Notice to Air Missions)
Ruby
9
star
6

bridgetown_credentials

Rails-like encrypted credentials for Bridgetown
Ruby
7
star
7

ogn_client-ruby

Subscriber and parser for APRS messages from OGN
Ruby
7
star
8

minitest-substitute

Substitute values for the duration of a block or a group of tests.
Ruby
4
star
9

aixm

Partial implementation of AIXM (Aeronautical Information Exchange Model) and OFMX (Open FlightMaps eXchange) for Ruby
Ruby
4
star
10

bitcetera-overlay

This is a development overlay which contains a few ebuilds for Gentoo Linux. All of them are in a flux and you use them at your own risk!
Shell
3
star
11

postwhite

Per-recipient whitelist policy server for Postfix MTA managed entirely by emails.
Ruby
1
star
12

odroidc4-overlay

Gentoo overlay for the ODROID C1 board from Hardkernel
Shell
1
star
13

bridgetown-docset

Dash docset for Bridgetown
Ruby
1
star
14

airac

AIRAC cycle calculations
Ruby
1
star
15

hanami-docset

Dash docset for Hanami
Ruby
1
star
16

rodbot

Minimalistic framework to build bots on top of a Roda backend.
Ruby
1
star
17

Serbea.novaextension

Syntax coloring for the Serbea template engine
JavaScript
1
star
18

minitest-flash

Simple Minitest reporter to indicate the result of test runs in as fancy a way you like.
Ruby
1
star
19

rack-dedos

Drastic filters to counter DoS attacks
Ruby
1
star