guard/guard-haml

Uninitialized constant Guard::Haml::Bundler

Closed this issue · 1 comments

Hello, I wanted to add an option to let users chose to output errors to the file rather then to console, akin to the way coffeescript guard does it.

I ran into an issue though.


On line 39 of haml.rb

message += "# #{file} -> #{output_file}".gsub("#{Bundler.root.to_s}/", '')

This line is triggering the following error:

ERROR: Guard::Haml failed to achieve its <run_on_changes>, exception was:
NameError: uninitialized constant Guard::Haml::Bundler

I am using ruby 1.8

Try running guard with bundler: bundle exec guard