Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Some todos for later

  • Loading branch information...
josh committed Sep 30, 2011
1 parent 17c97bd commit 1082cd82c2d982513e5e99d3431b549b094c6e9d
Showing with 5 additions and 0 deletions.
  1. +1 −0 lib/sprockets/asset.rb
  2. +1 −0 lib/sprockets/bundled_asset.rb
  3. +3 −0 lib/sprockets/processed_asset.rb
@@ -189,6 +189,7 @@ def eql?(other)
alias_method :==, :eql?

protected
# TODO: Document this method
attr_reader :dependency_paths

# Get pathname with its root stripped.
@@ -51,6 +51,7 @@ def encode_with(coder)
coder['self_digest'] = @processed_asset.digest
end

# TODO: Document this method
def required_assets
@processed_asset.required_assets
end
@@ -13,6 +13,8 @@ def initialize(environment, logical_path, pathname)
context = environment.context_class.new(environment, logical_path, pathname)
@source = context.evaluate(pathname)

# TODO: Move these into there own method

@required_assets = []

(context._required_paths + [pathname.to_s]).each do |path|
@@ -80,6 +82,7 @@ def fresh?(environment)
end

protected
# TODO: Consider moving this into its own file
class DependencyFile < Struct.new(:pathname, :mtime, :digest)
def initialize(pathname, mtime, digest)
pathname = Pathname.new(pathname) unless pathname.is_a?(Pathname)

0 comments on commit 1082cd8

Please sign in to comment.
You can’t perform that action at this time.