Extension to add hash values to asset filenames. This extension causes asset file types (images, scripts, stylesheets, etc) to have a unique identifier appended to their filename that consists of a hash of their contents. This extension also includes a Rack middleware that rewrites references to these assets in HTML, JavaScript, and CSS files, eliminating the need to use special helper functions to include modified filenames in references.
This commit is contained in:
parent
c2f498e26e
commit
073086b79c
14 changed files with 822 additions and 1 deletions
|
@ -44,3 +44,8 @@ Given /^a successfully built app at "([^\"]*)" with flags "([^\"]*)"$/ do |path,
|
|||
step %Q{a built app at "#{path}" with flags "#{flags}"}
|
||||
step %Q{was successfully built}
|
||||
end
|
||||
|
||||
# Provide this Aruba overload in case we're matching something with quotes in it
|
||||
Then /^the file "([^"]*)" should contain '([^']*)'$/ do |file, partial_content|
|
||||
check_file_content(file, partial_content, true)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue