class Sprockets::AssetAttributes
def search_paths
def search_paths paths = [pathname.to_s] extension = format_extension path_without_extension = extension ? pathname.sub(extension, '') : pathname # optimization: bower.json can only be nested one level deep if !path_without_extension.to_s.index('/') paths << path_without_extension.join(".bower.json").to_s paths << path_without_extension.join("bower.json").to_s # DEPRECATED bower configuration file paths << path_without_extension.join("component.json").to_s end if pathname.basename(extension.to_s).to_s != 'index' paths << path_without_extension.join("index#{extension}").to_s end paths end