Sort the Guard options when describe the DSL.

This commit is contained in:
Michael Kessler 2011-10-04 10:25:48 +02:00
parent 4451d73583
commit a1e5723efe

View File

@ -91,7 +91,7 @@ module Guard
line = " #{ guard[:name] }"
unless guard[:options].empty?
line += ": #{ guard[:options].collect { |k, v| "#{ k } => #{ v.inspect }" }.join(', ') }"
line += ": #{ guard[:options].sort.collect { |k, v| "#{ k } => #{ v.inspect }" }.join(', ') }"
end
UI.info line