# File lib/guard.rb, line 417 def locate_guard(name) if Gem::Version.create(Gem::VERSION) >= Gem::Version.create('1.8.0') Gem::Specification.find_by_name("guard-#{ name }").full_gem_path else Gem.source_index.find_name("guard-#{ name }").last.full_gem_path end rescue ::Guard::UI.error "Could not find 'guard-#{ name }' gem path." end