-
Notifications
You must be signed in to change notification settings - Fork 197
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
Remove Java and YUI dependencies #189
base: master
Are you sure you want to change the base?
Conversation
+1, yui segfaults in our production environment and we don't need/want CSS compression. |
+1, would be nice to remove these dependencies for heroku deployments where you typically pre-compile / compress anyways (or package up to s3). |
+1 -- if you're only minifying JS with uglifier, you shouldn't need YUI/Java. |
One note: The code in this pull request does not get rid of yui for CSS compression so if you're encountering the (incredibly bad) segfault bug with yui/open4 on Ubuntu this will not fix it. |
@sylvainsf — That's ostensibly a bug with YUI then, not Jammit. Either way, it's a �moot point on this issue, because this is specifically related to the bug of not wanting to use YUI at all. As it stands now, if you want to do CSS compression with Jammit, you need to use YUI. |
Yes, i've tried to remove YUI, but this is not very easy - a lot of YUI constants used all over the code. We have no java on production, only YUI gem, which doesn't work, but installed. This is not very clear solution, but "good enought". And this patch do not break or change existing functionality, it just give jammit possibility to work, when there is no java on the system. |
@evtuhovich — Installing the yui-compressor gem did not fix this issue for me. Still fails with "Jammit Warning: Asset compression disabled -- Java unavailable." |
@evtuhovich — Ah, I think I misread the end of your comment. You're saying installing the YUI gem and applying your patch fixes this, correct? I thought you meant just the non-working gem would be good enough to trick it into working. |
Yes, it write this to console but continue to work for me. And if you use On Fri, Jul 22, 2011 at 18:21, tjschuck <
|
Yes, we use jammit with our patch on production. And i meant this is difficult to fully remove YUI gem dependencies from Jammit, so it installed in system, but not used at all. Yes, with this patch Jammit starts to work in one additional case - our case. And this patch do not break any existing functionality. |
Sorry, i always think "Comment and Close" meant "Comment and Close Window" :-) |
Hey guys, any chance we can get this merged? Running into segfaults with YUI and would love to use the latest jammit. |
Hello.
We use uglifier to minimize JS and compass to minimize CSS, so we do not need YUI (and so java) in our project.
But if YUI breaks on CSS-minimizing, it stops minimize JS, and this is bad.
This monkey patch fix this problem