jstorimer / spin

Spin speeds up your Rails testing workflow by preloading your Rails environment.

Home Page:http://jstorimer.github.com/spin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spin on JRuby?

edrex-janrain opened this issue · comments

Is it possible to implement support for JRuby in Spin?

Here's what happens now:

ubuntu% spin serve
Preloaded Rails env in 8.853999853134155s...
The signal QUIT is in use by the JVM and will not work correctly on this platform

on another terminal:

spin push spec/

on serve terminal:

NotImplementedError: fork is not available on this platform
          fork at org/jruby/RubyKernel.java:1782
  fork_and_run at ~/.rvm/gems/jruby-1.6.7.2/gems/spin-0.4.6/bin/spin:172
         serve at ~/.rvm/gems/jruby-1.6.7.2/gems/spin-0.4.6/bin/spin:144
          loop at org/jruby/RubyKernel.java:1410
         serve at ~/.rvm/gems/jruby-1.6.7.2/gems/spin-0.4.6/bin/spin:116
        (root) at ~/.rvm/gems/jruby-1.6.7.2/gems/spin-0.4.6/bin/spin:301
          load at org/jruby/RubyKernel.java:1068
               at ~/.rvm/gems/jruby-1.6.7.2/gems/spin-0.4.6/bin/spin:19
          eval at org/jruby/RubyKernel.java:1088
        (root) at ~/.rvm/gems/jruby-1.6.7.2/bin/ruby_noexec_wrapper:14

Yep. Spin depends on the behaviour of fork(), a Unix system call. This does not work on the JVM and, afaik, there is no suitable replacement. So spin will not work on JRuby.