toji/gl-matrix — pull request #26 by sinisterchipmunk (2012-05-03 00:22:50+00:00)
Title: Added jshintrb, updated bundle, fixed issues exposed by jshint

`jshintrb` is a Ruby gem which wraps around `jshint` to provide static code analysis. By adding it to the Gemfile and adding the necessary lines to the Rakefile, jshint will be run automatically whenever the full test suite runs (see [travis](http://travis-ci.org/#!/sinisterchipmunk/gl-matrix/builds/1232254)). Also, the developer doesn't need to have installed jshint in order to run jshintrb, so there's no additional setup involved.

The addition of jshintrb has no effect at all on contributors who do not use Ruby, and since the project already includes Gemfile and Rakefile there's no additional footprint either.

I also updated the bundle, including selenium-webdriver, which allowed the specs to run successfully under Firefox as the last phase of the test suite.

Lastly, after making these additions, jshintrb exposed a few weaknesses introduced in recent commits, so I went ahead and fixed them.