a few more fixes
This commit is contained in:
parent
2be2edb910
commit
b6db1384d6
@ -43,13 +43,13 @@ module Flowerbox::Result
|
||||
end
|
||||
|
||||
def first_local_stack
|
||||
@first_local_stack ||= stack[1..-1].find do |line|
|
||||
@first_local_stack ||= stack.find do |line|
|
||||
!system_files.any? { |file| line[%r{\(#{file}}] }
|
||||
end || stack[1] || ''
|
||||
end
|
||||
|
||||
def exception?
|
||||
stack[0][%r{^.+Error: }]
|
||||
(stack[0] || '')[%r{^.+Error: }]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -2,6 +2,7 @@ require 'sprockets'
|
||||
require 'sprockets/engines'
|
||||
require 'forwardable'
|
||||
require 'sprockets-vendor_gems'
|
||||
require 'fileutils'
|
||||
|
||||
module Flowerbox
|
||||
class SprocketsHandler
|
||||
@ -39,6 +40,8 @@ module Flowerbox
|
||||
return @environment if @environment
|
||||
|
||||
@environment = Sprockets::Environment.new
|
||||
FileUtils.rm_rf(Flowerbox.cache_dir)
|
||||
|
||||
@environment.cache = Sprockets::Cache::FileStore.new(Flowerbox.cache_dir)
|
||||
|
||||
self.class.gem_asset_paths.each { |path| append_path(path) }
|
||||
|
Loading…
Reference in New Issue
Block a user