This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit aec3e094c5aa63df7b8788390c3f9a1b9de5ce58
tree 2e268533f76a67496bd2bd01457035cffffcda59
parent 201c57fd478c421f91f29a7285424e7f5ec4ca69
tree 2e268533f76a67496bd2bd01457035cffffcda59
parent 201c57fd478c421f91f29a7285424e7f5ec4ca69
beholder /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sun Apr 05 13:06:13 -0700 2009 | |
| |
LICENSE | Sun Jan 04 14:43:18 -0800 2009 | |
| |
README.textile | Sun Mar 22 22:37:38 -0700 2009 | |
| |
Rakefile | ||
| |
TODO | Sun Jan 04 14:43:18 -0800 2009 | |
| |
VERSION.yml | ||
| |
beholder.gemspec | ||
| |
bin/ | Thu Feb 26 22:51:30 -0800 2009 | |
| |
editor_integration/ | Sun Jan 11 13:23:27 -0800 2009 | |
| |
examples/ | ||
| |
lib/ |
README.textile
Beholder
An ancient beholder that watches your treasure, and deals with thiefs.
What does it do?
Think autotest, but powered by fseventd.
Requirements
- OSX 10.5 or higher
- RubyCocoa
- fsevents gem
The default treasure map:
map_for(:default_dungeon) do |wizard|
wizard.keep_a_watchful_eye_for ‘app’, ‘config’, ‘lib’, ‘examples’ wizard.prepare_spell_for /\/app\/(.*)\.rb/ do |spell_component| [“examples/#{spell_component1}.rb”] end wizard.prepare_spell_for /\/lib\/(.*)\.rb/ do |spell_component| [“examples/lib/#{spell_component1}_example.rb”] end wizard.prepare_spell_for /\/examples\/(.*)example\.rb/ do |spellcomponent| [“examples/#{spell_component1}_example.rb”] end wizard.prepare_spell_for /\/examples\/example_helper\.rb/ do |spell_component| Dir[“examples//_example.rb”] end wizard.prepare_spell_for /\/config/ do Dir[“examples//_example.rb”] endend
In your own treasure map (stored as treasure_map.rb, .treasure_map.rb, or config/treasure_map.rb) you could do:
map_for(:beholders_lair) do |wizard|
- Clear all watched paths => wizard.paths_to_watch.clear
- Add these paths to the paths to watch
wizard.keep_a_watchful_eye_for ‘coverage’
- Forget all other treasure maps loaded
- wizard.clear_maps
- Add your own rules
- wizard.prepare_spell_for /\/foobar/ do
- Dir[“examples/foobar/*_example.rb”]
- end
- You could set the list of all examples to be run after pressing ctrl-c once
- it defaults to any files in examples, spec, and test
wizard.all_examples = Dir[‘your/path//_here.rb’]
end
Treasure maps are automatically reloaded when you change them, so you can fire up Beholder and start iterating on the config live.








