radiant/radiant-clipped-extension — pull request #65 by jmervine (2012-10-09 18:48:54+00:00)
Title: Add cache buster to uploaded images.

Hello,

I have added cache buster for uploaded assets which can be turned on or off via `Radiant::Config['clipped.use_cache_buster?']` in `config/initializers/clipped_config.rb` or config/initializers/radiant_config.rb`.

I've added additional tests to `spec/models/assets_spec.rb` which ensure that the cache buster is being correctly added, using the assets `updated_at` database field.

I could not get all original tests to pass, so I've included gists both with and without my changes, for your reference:

Specs without my changes: https://gist.github.com/3859890

Specs with my changes: https://gist.github.com/3859879

Additionally, I included some modifications that I made to `spec/ci/before_script` and `spec/ci/script` which should make it work a little more consistently across environments. These changes were pulled directly from a pull request that I submitted to `radiant-sheets-extension`.

Thanks,
Josh