No commit activity in last 3 years
No release in over 3 years
A Guard::RSpec extension to improve performance on JRuby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Guard::RSpec::JRuby

Build Status

Warning

This project has pretty much been abandoned and has not seen active development for some time. It may however still be of some use and I have brought it up to date with JRuby-9.1.2 (specs pass) but it is not being actively maintained or used by me.

Overview

We all love Guard::RSpec and it works wonders on MRI but exec'ing or system'ing with JRuby means spinning up a whole new JVM which takes far too long.

In short, this plugin replaces the Guard run_via_shell method and executes your specs in a JRuby ScriptingContainer. Even the setup on these can be too slow so we keep the container "warmed up" and ready to go after each run. The net result is that spec runs are virtually instant, just like on MRI.

Not all the optional parameters from Guard::RSpec are supported but this extension shouldn't balk at them either.

To use simply require "guard-rspec-jruby" and replace your guard "rspec" statement with guard "rspec-jruby"

Thanks to Joe Kutner (http://github.com/jkutner) for guard-jruby-rspec upon which some of this extension is based