Skip to content

Commit

Permalink
Fixes issue guard#213
Browse files Browse the repository at this point in the history
- Changes in dsl.rb fixes the issue.
- Changes in dsl_describer.rb allows to show the '*' when using symbols
as guard names instead of strings (for example: guard :spark)
  • Loading branch information
Pirukire committed Jan 2, 2012
1 parent 6d0acad commit 9094f59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/guard/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def evaluate_guardfile(options = {})
fetch_guardfile_contents
instance_eval_guardfile(guardfile_contents_with_user_config)

UI.error 'No guards found in Guardfile, please add at least one.' if !::Guard.guards.nil? && ::Guard.guards.empty?
UI.error 'No guards found in Guardfile, please add at least one.' if ::Guard.guards.nil? && ::Guard.guards.empty?
end

# Re-evaluate the `Guardfile` to update the current Guard configuration.
Expand Down
2 changes: 1 addition & 1 deletion lib/guard/dsl_describer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def list(options)
evaluate_guardfile(options)

installed_guards = guardfile_structure.inject([]) do |installed, group|
group[:guards].each { |guard| installed << guard[:name] } if group[:guards]
group[:guards].each { |guard| installed << guard[:name].to_s } if group[:guards]
installed
end

Expand Down

0 comments on commit 9094f59

Please sign in to comment.