guard / guard-spork

Guard::Spork automatically manage Spork DRb servers
https://rubygems.org/gems/guard-spork
MIT License
296 stars 58 forks source link

Windows support #84

Closed jarmo closed 11 years ago

jarmo commented 11 years ago

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

jalcine commented 11 years ago

+1 for Windows support.

thibaudgg commented 11 years ago

Thanks you'll make some guys happy, 1.2.0 released!

nickarino commented 8 years ago

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:instart' from C:/ruby/ruby2.1/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rerun-0.11.0/lib/rerun/runner.rb:9:in keep_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:in load' from C:/ruby/ruby2.1/Ruby2.1.0/bin/rerun:23:in

'

jarmo commented 8 years ago

@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.

nickarino commented 8 years ago

I am in the wrong place. I am sorry.