Verbose Logging

software development with some really amazing hair

T + S G I F R

Articles tagged with "rubygems-org"

sinatra-bundles Plays Nice With Eval

· Posted in Programming
I recently added a Javascript file to my bundle with sinatra-bundles that uses Javascript's eval functionality. The call to eval executed code that referenced a method parameter. sinatra-bundles compresses Javascript files, and as part of that, shrinks variable names. Normally this isn't a problem, but in this case of eval, it became a problem, since it was trying to reference a local variable that no longer existed (because it got shrunk to som…