PackR won’t touch your $supers

Another quick update: PackR received an update today that means that when you use its :shrink_vars mode, it won’t minify any variables called $super. In Prototype, $super is used to implement inheritance and your class definitions will break if you change its name.

I didn’t really want to make PackR inconsistent with Dean’s original, but without this feature Prototype code is essentially unpackable beyond basic whitespace-stripping, and given that Ruby/Rails users are likely to be using Prototype, I figured it was worth the addition. It also lets you specify your own protected variable names – I’ll be updating the docs soon.

To update, just gem install packr or

ruby script/plugin install