lib/guard/rails-assets/cli_runner.rb in guard-rails-assets-0.1.5 vs lib/guard/rails-assets/cli_runner.rb in guard-rails-assets-0.1.6

- old
+ new

@@ -1,15 +1,19 @@ +require 'guard/rails-assets' + module Guard - class RailsAssets::CliRunner - def initialize(options={}) - @rails_env = (options[:rails_env] || 'test').to_s - @digest = options[:digest] - @digest = true if @digest.nil? - end + class RailsAssets + class CliRunner + def initialize(options = {}) + @rails_env = (options[:rails_env] || 'test').to_s + @digest = options[:digest] + @digest = true if @digest.nil? + end - def compile_assets - task = "assets:precompile" - task += ":nondigest" unless @digest - system "bundle exec rake assets:clean #{task} RAILS_ENV=#{@rails_env}" + def compile_assets + task = 'assets:precompile' + task += ':nondigest' unless @digest + system "bundle exec rake assets:clean #{task} RAILS_ENV=#{@rails_env}" + end end end end