Skip to content
Browse files

fix names, remove assets lookup filter

  • Loading branch information...
1 parent b7d89af commit e4e8f146fc9cbecfda7d8bc29365cb90939baa3e @egorkhmelev egorkhmelev committed Feb 2, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/closure-sprockets/directive_processor.rb
View
10 lib/closure-sprockets/directive_processor.rb
@@ -7,9 +7,9 @@ def process_require_closure_directive(path)
cmd = File.expand_path "../bin/calcdeps.py", File.dirname(__FILE__)
# Get only application lookup paths
- context.environment.paths.select{ |p| p if p.include? context.environment.root }.each do |path|
- # cmd << " --root=#{path}" # for closurebuilder.py script
- cmd << " --path=#{path}"
+ context.environment.paths.each do |p|
+ # cmd << " --root=#{p}" # for closurebuilder.py script
+ cmd << " --path=#{p}"
end
# closurebuilder.py needs some input files to start deps searching
@@ -20,7 +20,7 @@ def process_require_closure_directive(path)
# results = `#{cmd}`.split "\n" # for closurebuilder.py script
results = `#{cmd} --output_mode=list`.split "\n"
- # Finally require calculated deps
- results.each{|dep| context.require_asset dep };
+ # Finally require calculated assets
+ results.each{|asset| context.require_asset asset };
end
end

0 comments on commit e4e8f14

Please sign in to comment.
Something went wrong with that request. Please try again.