From 563b020d4f143bb3139f57455b9fbed49c82708b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81my=20Coutable?= Date: Wed, 17 Aug 2011 01:36:44 +0200 Subject: [PATCH] Oops (worked on 1.9.2 only) :) --- lib/guard.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/guard.rb b/lib/guard.rb index 4fc8407..761bc67 100644 --- a/lib/guard.rb +++ b/lib/guard.rb @@ -96,8 +96,9 @@ module Guard end def get_guard_class(name) + name = name.to_s try_require = false - const_name = name.to_s.downcase.gsub('-', '') + const_name = name.downcase.gsub('-', '') begin require "guard/#{name.downcase}" if try_require self.const_get(self.constants.find { |c| c.to_s.downcase == const_name })