Closed rwz closed 13 years ago
Cool. Two comments.
#compress
. If a class (such as Uglifier
) doesn't have that interface, subclass it and in the subclass alias #compress
to whatever method that class does have. For example, class Jammit::Uglifier < ::Uglifier; alias compress compile end
. This gets rid of trying to figure out which method to call, and bows to some of the SOLID principles.uglifier
depends explicitly on therubyracer
, which does not compile on Heroku. Merging this now means jammit
users cannot deploy to Heroku anymore. This merge needs to wait until uglifier
removes it dependency on therubyracer
or until Google or Heroku figures out why therubyracer
doesn't compile on Heroku, so as not to surprise people using both jammit
and Heroku.Cheers!
first done.
I like it!
A merge still needs to wait for the jammit
<-> uglifier
<-> therubyracer
<-> Heroku quandary to be resolved one way or the other, so jammit
users on Heroku don't get surprised.
Yay, uglifier beats closure :)
Thanks for this -- it's a beautiful patch, and Uglify support has been much requested. Merged to master. It'll go out with the next release.
Six routing test are still failing on rails3, but compression works ok.