-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fixing jquery-tmpl-rails Sprockets deprecations #11
Comments
I haven't followed Rails in a while—what is the implication of supporting older versions of Sprockets? Generally I'm supportive of bumping dependencies to more recent versions. Folks using older versions of Rails can continue to use older versions of this gem. |
This is exactly true. Although it focuses on supporting 'all' versions of
sprockets, the deprecation warning I am getting is that this gem's syntax
is deprecated in Sprockets 3 and will not work with Sprockets 4. I would
agree that you do not need to write new code to support Sprockets 2
…On 27 April 2018 at 13:15, Jimmy Cuadra ***@***.***> wrote:
I haven't followed Rails in a while—what is the implication of supporting
older versions of Sprockets? Generally I'm supportive of bumping
dependencies to more recent versions. Folks using older versions of Rails
can continue to use older versions of this gem.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgCxo9M20BqxihnQD3mmYRlF1NPjIy7ks5tswvYgaJpZM4TjGzX>
.
|
I am okay with doing a major version bump of this gem and requiring whatever version of Sprockets the most recent version of Rails requires. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is also filed under Sprockets core for guidance here.
Versions
Issue:
The latest version of
jquery-tmpl-rails
triggers a sprockets deprecation warning of:Attempts at resolution:
Following the deprecation warning, the problem within the gem simply resides here: https://github.com/jimmycuadra/jquery-tmpl-rails/blob/master/lib/jquery-tmpl-rails/engine.rb#L10
Which is currently:
app.assets.register_engine(".tmpl", JqueryTemplate)
I then visited the sprockets guide for handling deprecations, extensibility and compliance with sprockets 2,3,4. https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
I made my best attempt at rectifying the problem with a commit on this fork here: oceanshq@de7a598
Which was:
However, this attempt simply deals out breakages when trying to run the web application at all or test it on the CI. So obviously I've missed something. I am not the gem maintainer but am trying to put this PR together myself as we rely on this gem.
Questions
register_engine
is deprecated in Sprockets 3, is it actually possible to migrate fromregister_engine
while staying in Sprockets 3?The text was updated successfully, but these errors were encountered: