Fix interacting with tools like ruby-debug. #137

Merged
merged 2 commits into from Sep 20, 2011
Commits on Sep 19, 2011
  1. Fix interacting with tools like ruby-debug.

    hron committed Sep 19, 2011
      It seems like the new interactor eats input from $stdin even while it locked.
      This disallow using tools like 'ruby-debug' or 'pry' in specs or cucumber.
    
      The fix just kills the interactor when it is locked and runs it again when
      ulocked.
Commits on Sep 20, 2011
  1. Change Guard::Interactor#lock and #unlock methods so they will lock i…

    hron committed Sep 20, 2011
    …nteractor
    
    in the right thread and free $stdin [closes #137].