Brian Hogan wrote:My command line:
> Even better... install ZenTest
> gem install ZenTest
> autotest --rails
> Tests run when you save the corresponding file. Makes it almost too easy.
trigger 'rake recent' `find test -name \\*.rb` app/*/*.rb
The utterly ugly and distastefully hacked-together contents of trigger are
Any editor, folks. Any editor. I don't even need to look at the console to
# lazy-loop until a file changes, then run a command
# TODO support **
syntax() if 0 == ARGV.size
command = ARGV.shift
ARGV.each do |fn| # TODO option to do Dir here
anyFileChanged() # prime the pump
sound = got ? 'drumloop.wav' : 'jaguar.wav'
weWin32 = RUBY_PLATFORM.include?('mswin32')
#One way is to use Win32API:
SND_MEMORY = 0x00000004 # from "mmsystem.h"
pPlaySound = Win32API.new("winmm", "PlaySound", ['P', 'L', 'L'], 'I')
# play from file:
# play from memory:
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.