rails/jquery-rails

Don't tight up jquery-rails to a jquery version

Closed this issue · 1 comments

require jquery should send me the latest jquery
require jquery-1.6 should send me the latest 1.6 release
etc.

same for jquery-ui and jquery_ujs

Use case: when jquery is a dependency of an engine, you (maintainer of the engine) don't want to freeze jquery-rails to the supported version of jquery-rails containing the supported version of the required library.

Gem dependencies are meant for lib compatibilities and should not get in the way transversally.

edit: just saw #2
.. Maybe reconsider?

Usually we do want to tie it to a given jquery version though, because the code in jquery-ujs must be compatible with the version of jquery. Mixing versions of jquery-ujs and jquery can cause things to break, and we can't really support that bug-wise. If you want to mix versions of jquery-ujs and jquery, it's really easy to do by just dumping the files in your vendor/assets/javascripts directory without using this gem.

EDIT: Re-reading your comment though, it may still be possible to do as you say, but limiting the available options only to the supported versions. I'll take a look.