Update sprockets-rails gem to version 3.0.3 #2323
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Using:
bundle update sprockets-rails
Upgrades the sprockets-rails gem in smart answers from version 2.3.3 to version 3.0.3. The major release from 2.x to 3.x introduces breaking changes, including enabling asset digests by default (JS and CSS files will receive a checksum value in the in filename).
Sprockets-rails release note
With the smart answers regression tests saving the generated HTML in the repository, change
config.assets.digest
from the new default value oftrue
tofalse
to prevent all the artefacts changing as a result.The upgrade to sprockets-rails in turn updates the sprockets gem from version 2.12.4 to 3.5.2. This major version brings a pretty significant list of changes, and notably brings smart answers inline with the major version 3.x which the
4-2-stable
branch of Rails itself is developed towards.See: https:/rails/rails/blob/4-2-stable/Gemfile#L18
Running smart answers locally with this change, no assets appear to be failing and the browser console is free of errors. The guide to upgrading sprockets from version 2.x to 3.x suggests:
Smart Answers also seems unaffected by the following changes:
Prefer just foo.coffee and foo.scss
Removed //= include directive
Preview on Heroku
https://smart-answers-pr-2323.herokuapp.com/marriage-abroad