Closed peterlong closed 9 years ago
At the very least, the gemspec should be updated to state that Rails 4 is required.
How about using semver?
All, could you point your Gemfile
s to the master branch? If all is well, I'll make a new release.
0.9.8 still fails at line 82:
Rails 3.2.21
Because of sass-rails
3.2.6 javascript_path which has only 1 argument.
def javascript_path(source, options = {})
if defined?(super)
super # ERROR wrong number of arguments (2 for 1)
else
view_proxy.javascript_path(source, options)
end
end
@merqlove I'm curious, have you got the 0.9.9 working on your Rails 3.2 app, or is this issue present in 0.9.9 too? Thanks.
@agis- Yes, still present. And only my patch fixes it.
@merqlove I see, thanks. So you must have run on issues like #247 and this, or? If so, could you share some insight on how you've fixed them.
@agis- I did pull request. #231
@merqlove I'm kinda confused, because your patch in #231 doesn't seem related to #247 and #248.
@agis- Yes, my patch is for #210 or something.
@merqlove Oh ok. My question in the previous comment was referring to whether you've stumbled on #247 and #248 issues too. Anyway, it seems you haven't.
Thanks anyway.
@agis- Yeah, i have not tried 0.9.9 in production. But in dev it works well.
Hi everyone,
In addition to the Rails 3.2 compatibility problems mentioned in the above comments, I found a problem in the almond build. A change in the rjs_driver template between 0.9.3 and 0.9.5 caused the almond build to output to almond.js instead of main.js in the tmp directory.
The fix to the above problem was to just use the older working 0.9.3 version.
It would be nice to specify in the readme that 0.9.5 (0.9.3 for Rails 3.2 + and almond) is the last known version with Rails 3 compatibility (possibly a gemspec constraint as well). Or do we intend to continue to support Rails 3.x?
@sun16 Almond support is screwed up right now. Does it work normally?
@carsomyr Sorry about the late response. I have just started using the latest Rails 4.2.5, so I can confirm that almond support is broken regardless of the Rails version. So to update my previous comment, almond support has been broken since 0.9.3, and it's unrelated to Rails 3.x compatibility.
I will create a separate PR for fixing this issue.
@sun16 Could you file a separate issue for this?
Sure, created #255 (have a PR #254 for fixing the almond build)
The commit 913f599cbd436cefee48abfb72866ed621cc7062 adds lib/requirejs/rails/view_proxy.rb which has the line
include ActionView::Helpers::AssetUrlHelper
in it. This module does not exist in Rails 3. It appears that it is included to get access tojavascript_path
. The same method is defined inActionView::Helpers::AssetTagHelper
in Rails 3.Perhaps compatibility could be restored with a code change like this:
AssetTagHelper includes TagHelper in Rails 3, so it need not be included again.