yeah ... maybe Trail#stat should simply shadow and File#stat call in hike,
then none of this judo is needed and its functionally equivalent anyway.

Naming wise its pretty confusing that @trail is holding Trail sometimes and
Index in other times ..


On Tue, Apr 9, 2013 at 12:32 PM, Joshua Peek <notifications@github.com>wrote:

> In lib/sprockets/base.rb:
>
> > @@ -228,7 +228,10 @@ def entries(pathname)
> >      #
> >      # Subclasses may cache this method.
> >      def stat(path)
> > -      @trail.stat(path)
> > +      # note, @trail.stat is sub-optimal
> > +      # it create a new Index in hike, which initiliazed a bunch of
> > +      # unused stuff, the stat cool in Index disregards root anyway
> > +      File.stat(path)
>
> Now I'm thinking it might be better to patch Hike.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/sstephenson/sprockets/pull/428/files#r3706811>
> .
>