lib/sinatra/assetpack/package.rb in sinatra-assetpack-0.0.9 vs lib/sinatra/assetpack/package.rb in sinatra-assetpack-0.0.10
- old
+ new
@@ -35,10 +35,12 @@
attr_reader :filespecs
attr_reader :name
# Returns a list of URIs
def paths_and_files
- @assets.glob @filespecs, :preserve => true
+ list = @assets.glob(@filespecs, :preserve => true)
+ list.reject! { |path, file| @assets.ignored?(path) }
+ list
end
def files
paths_and_files.values
end