Closed mdkalish closed 4 years ago
@mdkalish Is erubi
backwards compatible?
I'm not sure if I follow your question, are you asking about backward compatibility throughout all versions? If yes, the answer is no; here are some breaking changes listed in the changelog: 1.5.0, 1.2.0, & 1.1.0.
Having said that, what's your plan? Erubi is a simplified fork of Erubis, do you think they could be easily swapped somehow? The erubi docs sound like it could pan out:
It is not designed with Erubis API compatibility in mind, though most Erubis ERB syntax works, with the following exceptions:
- No support for <%=== for debug output
I'm encountering this issue (Rake.application undefined) too when upgrading to rails 5.2. @mdkalish i'll apply your patch and see if that works. From what it sounds like, this still doesnt fix the entire issue, correct?
I had to add erubis
to Gemfile and also fork requirejs-rails
: https://github.com/lonelyplanet/requirejs-rails/commit/d742e7df37150448bbf40ef6fe814dba8aebd921. This solved the problem for me.
Rails 5.1 replaced
erubis
witherubi
.requirejs-rails
requires theerubis
. TheRrequirejs::Rails::Builder#generate_rjs_driver
would have to be rewritten to use Erubi instead of Erubis, to makerequirejs-rails
compatible with the rails >= 5.1. You guys plan to add the support for the new rails anytime soon? Or maybe you see any other way to keep using AMD in rails >= 5.1?