From a1e5723efe29c70474b36923623c9d7baf70cd10 Mon Sep 17 00:00:00 2001 From: Michael Kessler Date: Tue, 4 Oct 2011 10:25:48 +0200 Subject: [PATCH] Sort the Guard options when describe the DSL. --- lib/guard/dsl_describer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/guard/dsl_describer.rb b/lib/guard/dsl_describer.rb index e8fa981..59b0008 100644 --- a/lib/guard/dsl_describer.rb +++ b/lib/guard/dsl_describer.rb @@ -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