GitShow/tj/bind
tj

bind

Ruby - Bind actions to various file system events such as auto-testing

by tj
Star on GitHubFork

Ruby

16 stars2 forks1 contributorQuiet · 16y agoSince 2009

Meet the team

See all 1 on GitHub →
tj
tj86 contributions

Languages

View on GitHub →
Ruby100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

1 of 6 standards met

Community profile →
28
✓README○License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 2 discussions · Last activity 16y ago
See all on GitHub →
JonnieCache
Should use fsevent on the macOpenIssue

like autotest-fsevent, this should use OSX's fsevent lib to listen for filesystem callbacks rather than polling. I'll hopefully look at this some time.

JonnieCache · 15y ago
dolzenko
If --eval option to bind executable is not provided - default to system(ARGV.pop)OpenIssue

Basically I would like to write instead of Does this seems reasonable? Crude hack illustrating the concept: diff --git a/bin/rbind b/bin/rbind index 79bc0c6..faa9ebd 100644 a/bin/rbind +++ b/bin/rbind @@ -18,7 +18,9 @@ command :to do c.example 'Bind to a file, and a directory of files', "rbind to stylesheets style.css -e 'puts file.path'" c.example 'Run specs when ruby files are modified', "rbind to 'lib/*/.rb' -e 'system \"rake spec\"'" c.action do abort 'invalid option. --eval switch is required in order to perform any action on the bound file(s)' unless options.eval + unless options.eval + options.eval = "system('#{args.pop}')" + end common_options options options.paths = args listener(options).run!

dolzenko · 16y ago
Structured data for AI agents

Repository: tj/bind. Description: Ruby - Bind actions to various file system events such as auto-testing Stars: 16, Forks: 2. Primary language: Ruby. Languages: Ruby (100%). Open PRs: 0, open issues: 2. Last activity: 16y ago. Community health: 28%. Top contributors: tj.

·@ofershap

Replace github.com with gitshow.dev