allow symbols for group names
This commit is contained in:
parent
048ed9c94c
commit
087f51085f
@ -90,7 +90,7 @@ module Guard
|
|||||||
end
|
end
|
||||||
|
|
||||||
def group(name, &guard_definition)
|
def group(name, &guard_definition)
|
||||||
guard_definition.call if guard_definition && (@@options[:group].empty? || @@options[:group].include?(name))
|
guard_definition.call if guard_definition && (@@options[:group].empty? || @@options[:group].include?(name.to_s))
|
||||||
end
|
end
|
||||||
|
|
||||||
def guard(name, options = {}, &watch_definition)
|
def guard(name, options = {}, &watch_definition)
|
||||||
|
@ -251,7 +251,7 @@ private
|
|||||||
end
|
end
|
||||||
|
|
||||||
def valid_guardfile_string
|
def valid_guardfile_string
|
||||||
"group 'x' do
|
"group :x do
|
||||||
guard 'test' do
|
guard 'test' do
|
||||||
watch('c')
|
watch('c')
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user