File: Guardfile

package info (click to toggle)
asciidoctor 2.0.26-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,464 kB
  • sloc: ruby: 45,298; sh: 147; xml: 53; javascript: 48; makefile: 26; ml: 1
file content (18 lines) | stat: -rw-r--r-- 422 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# use `guard start -n f` to disable notifications
# or set the environment variable GUARD_NOTIFY=false
notification :libnotify,
  :display_message => true,
  :timeout => 5, # in seconds
  :append => false,
  :transient => true,
  :urgency => :critical

guard :test do
  watch(%r{^lib/(.+)\.rb$}) do |m|
    "test/#{m[1]}_test.rb"
  end
  watch(%r{^test.+_test\.rb$})
  watch('test/test_helper.rb') do
    "test"
  end
end