carbonfive/raygun — pull request #38 by christiannelson (2012-11-16 18:47:28+00:00)
Title: Cannot run rake outside of development environment

spec.rake includes a require statement: "require 'guard/jasmine/task'", but guard is only included in the :development group in the Gemfile. This prevents rake tasks from running in non-development environments. :(

I resolved this by wrapping the task definitions with a rescue block:

begin
require 'guard/jasmine/task'
...
rescue LoadError
namespace :spec do
task :javascripts do
puts "Guard is not available in this environment: #{Rails.env}"
end
end
end