Skip to content

Commit 8740f9b

Browse files
committed
Merge pull request #1 from vongrippen/master
Added support for sprockets >= 2.2.2
2 parents 935e33b + abf7e8a commit 8740f9b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/tasks/assets.rake

+13
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,19 @@ task :'assets:precompile:profile' => ['assets:environment'] do
5454
end
5555

5656
private
57+
def compile_path?(logical_path)
58+
paths.each do |path|
59+
case path
60+
when Regexp
61+
return true if path.match(logical_path)
62+
when Proc
63+
return true if path.call(logical_path)
64+
else
65+
return true if File.fnmatch(path.to_s, logical_path)
66+
end
67+
end
68+
false
69+
end
5770

5871
def show_message?(path)
5972
return true if ENV['VERBOSE'] || ENV['verbose']

0 commit comments

Comments
 (0)