<div dir="ltr">On 31 July 2013 15:25, George Sheppard <span dir="ltr"><<a href="mailto:george@fuzzmonkey.co.uk" target="_blank">george@fuzzmonkey.co.uk</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><div class="im"><blockquote type="cite"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_extra">
<div class="gmail_quote">I'm not sure how to do this, and Rails 4 seems to have a bunch of stuff hard-coded that's not configurable (e.g. it minifies code in production but not development and none of the config flags for this change anything). Where are the docs?</div>
</div></div></div></div></blockquote><div><br></div></div>Rather than messing with the digests themselves you could use the manifest.json file to find the fingerprinted asset names from the the filenames. The only problem being that the manifest.json file is also fingerprinted... It's generated after rake assets:precompile in public/assets</div>
</div></blockquote><div><br></div><div>Turtles all the way down :/ In general, a JS test harness does not have the ability to read directory listings, unless you're running a local static server with CORS enabled, and even then you've got a bunch of glue code to write just to figure out which file to load, if your testing platform will even let you do that. Better to have a script with a predictable hard-codable pathname as the entry point to the test runner. </div>
</div></div></div>