Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version the gem's helpers; if they change, the cache must go #127

Merged
merged 1 commit into from
Apr 9, 2014

Conversation

matthewd
Copy link
Member

@matthewd matthewd commented Apr 9, 2014

Sprockets incorporates its own version into the digest, so any update will clear the cache; we should follow suit.

@@ -0,0 +1,5 @@
module Sprockets
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we should require this file on sprockets/rails.rb, right?

@lucasmazza
Copy link
Contributor

:shipit:

@@ -4,6 +4,7 @@
require 'active_support/core_ext/module/remove_method'
require 'sprockets'
require 'sprockets/rails/helper'
require 'sprockets/rails/version'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to move to lib/sprockets/rails because we don't require this file if Railtie is not defined.

To do so cleanly, fix the fact we don't have a VERSION constant.
rafaelfranca added a commit that referenced this pull request Apr 9, 2014
Version the gem's helpers; if they change, the cache must go
@rafaelfranca rafaelfranca merged commit d7acd58 into rails:master Apr 9, 2014
rafaelfranca added a commit that referenced this pull request Apr 9, 2014
Version the gem's helpers; if they change, the cache must go
Conflicts:
	sprockets-rails.gemspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants