Verbose Logging

software development with some really amazing hair

12 Jul 10

01:06 PM MDT

Posted in Software

sinatra-bundles 0.3.0 is out

Version 0.3.0 of sinatra-bundles is out and powering the blog for a week or so. It’s cold out there, so bundle up: % gem install sinatra-bundles require 'sinatra/bundles' Version 0.3.0 has a new feature and a slight API change. Custom path prefixes Yeah, I know, not everybody is as awesome as I am with their stylesheets and javascript files in the stylesheets and javascripts directories, but now you can control where they live on the disk. doc...


Read the full article

Comments

02 Apr 10

09:05 PM MDT

Posted in Software

sinatra-bundles 0.2.0 is out

I pushed up a new version of sinatra-bundles and it’s running smoothly on my blog here, so I best tell you about it. First, get your bundle on: % gem install sinatra-bundles require 'sinatra/bundles' Version 0.2.0 has a couple fun things. The sinatra dependency is bumped up to 1.0, since it’s out (yay!), it’s more awesome, and I’m not quite sure if the bug that prevented me from using earlier sinatra was fixed or not in the 0.9.6 release. etag...


Read the full article

Comments

21 Feb 10

05:08 PM MDT

Posted in Programming

sinatra-bundles plays nice with eval

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 s...


Read the full article

Comments

13 Jan 10

08:00 AM MDT

Posted in Programming

sinatra-bundles: Easy asset bundling for sinatra

sinatra-bundles is an easy way to bundle CSS and Javascript assets in your sinatra application. Yes! It has tests! They are on runcoderun Usage sinatra-bundles combines Javascript and CSS into one file. Meaning, you can bundle 2 or more Javascript files into one, similar with CSS stylesheets. Any bundled files are expected to be in the public directory, under ‘javascripts’ and ‘stylesheets’ Assuming you have the following files in public: ./st...


Read the full article

Comments