Closed jarmo closed 11 years ago
+1 for Windows support.
Thanks you'll make some guys happy, 1.2.0 released!
So what Gems do I install to make rerun work on Windows? The error I got with
rerun 'ruby simple.rb' was 21:15:21 [rerun] Simple launched C:/ruby/ruby2.1/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rerun-0.11.0/lib/rerun/runner.rb:152:in
fork': fork() function is unimplemented on this machine (NotImplementedError) from C:/ruby/ruby2.1/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rerun-0.11.0/lib/rerun/runner.rb:152:in
start' from C:/ruby/ruby2.1/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rerun-0.11.0/lib/rerun/runner.rb:9:inkeep_running' from C:/ruby/ruby2.1/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rerun-0.11.0/bin/rerun:12:in
<top (required)>' from C:/ruby/ruby2.1/Ruby2.1.0/bin/rerun:23:inload' from C:/ruby/ruby2.1/Ruby2.1.0/bin/rerun:23:in
'
@nickarino should guard-spork
even work WITH rerurn
? I myself have not used rerun
, but reading its README there's this sentence:
(If you're using Guard instead of Rerun, check out guard-spork for a similar solution.)
It seems that you should use either rerun
or guard-spork
according to that sentence. Could be wrong though.
I am in the wrong place. I am sorry.
Hi!
I've added a support for Windows by using childprocess and sys-proctable gems.
All specs are green on my win7 ruby 1.9.3 machine, but i have to admit, that i had not any VM-s available to run those specs on unix. If they pass for you and you can use guard-spork with your projects then i'd be happy to say that Windows users can use guard-spork too - at least it has been running fine on my rails project too.
Since Spork uses different run strategy on Windows then i needed to add a check for RingServer availability to determine if Spork is running.
It is related with #47 and #34