Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • guard-org/guard
1 result
Show changes
Commits on Source (6)
Loading
Loading
@@ -31,8 +31,8 @@ Before you file an issue, make sure you have read the _[known issues](#issues)_
 
* File system changes handled by our awesome [Listen](https://github.com/guard/listen) gem.
* Support for visual system notifications.
* Huge eco-system with [more than 220](https://rubygems.org/search?query=guard-) Guard plugins.
* Tested against Ruby 2.2.9, 2.3.6, 2.4.3, 2.5.0, JRuby & Rubinius.
* Huge eco-system with [more than 300](https://rubygems.org/search?query=guard-) Guard plugins.
* Tested against the latest Ruby 2.3.x, 2.4.x, 2.5.x, 2.6.x, JRuby & Rubinius. See [`.travis-ci.yml`](https://github.com/guard/guard/blob/master/.travis.yml) for the exact versions.
 
## Screencast
 
Loading
Loading
@@ -73,9 +73,7 @@ $ bundle exec guard
 
If you are on Mac OS X and have problems with either Guard not reacting to file
changes or Pry behaving strange, then you should [add proper Readline support
to Ruby on Mac OS
X](https://github.com/guard/guard/wiki/Add-Readline-support-to-Ruby-on-Mac-OS-X).
to Ruby on macOS](https://github.com/guard/guard/wiki/Add-Readline-support-to-Ruby-on-Mac-OS-X).
 
## Avoiding gem/dependency problems
 
Loading
Loading
@@ -159,9 +157,9 @@ See the [Contributing Guide](https://github.com/guard/guard/blob/master/CONTRIBU
 
### Core Team
 
* R.I.P. :broken_heart: [Michael Kessler](https://github.com/netzpirat) ([flinkfinger.com](http://www.flinkfinger.com)).
* R.I.P. :broken_heart: [Michael Kessler](https://github.com/netzpirat).
* [Rémy Coutable](https://github.com/rymai).
* [Thibaud Guillaume-Gentil](https://github.com/thibaudgg) ([@thibaudgg](https://twitter.com/thibaudgg), [thibaud.gg](http://thibaud.gg/)).
* [Thibaud Guillaume-Gentil](https://github.com/thibaudgg) ([@thibaudgg](https://twitter.com/thibaudgg), [thibaud.gg](https://thibaud.gg/)).
 
### Contributors
 
Loading
Loading
Loading
Loading
@@ -47,8 +47,9 @@ module Guard
exitcode = e.status
end
 
stop
exitcode
ensure
stop
end
 
def stop
Loading
Loading
Loading
Loading
@@ -16,7 +16,7 @@ module Guard
end
 
def self.disconnect
@notifier.disconnect
@notifier && @notifier.disconnect
@notifier = nil
end
 
Loading
Loading
Loading
Loading
@@ -82,6 +82,20 @@ RSpec.describe Guard::Commander do
Guard.start
end
end
context "when listener.start raises an error" do
it "calls Commander#stop" do
allow(listener).to receive(:start).and_raise(RuntimeError)
# From stop()
expect(interactor).to receive(:background)
expect(listener).to receive(:stop)
expect(runner).to receive(:run).with(:stop)
expect(Guard::UI).to receive(:info).with("Bye bye...", reset: true)
expect { Guard.start }.to raise_error(RuntimeError)
end
end
end
 
describe ".stop" do
Loading
Loading
Loading
Loading
@@ -21,7 +21,9 @@
require "fileutils"
 
require "simplecov"
SimpleCov.start
SimpleCov.start do
add_filter "/spec"
end
 
ENV["GUARD_SPECS_RUNNING"] = "1"
 
Loading
Loading