openstreetmap/openstreetmap-website — pull request #135 by parhamr (2012-10-16 16:46:34+00:00)
Title: Cleanup to prepare for test expansion

I’d like to improve the quality and maintainability of this codebase. The perspective I’m using is best practices from my role at an engineering-focused agency. This pull request is an invitation for discussion of these perspectives—I’m not trying to barge in here and declare this is how we should work.

My goals are to fix bugs, increase readability of the code, and improve the quality assurance and testing processes by decreasing the effort necessary to review code. I have a [feature branch to add more tests](https://github.com/parhamr/openstreetmap-website/commits/test-moar).

* Added [RVM](https://rvm.io/) environment file with improved garbage collection configuration (decreases overhead of GC with slight increase to memory overhead)
* Started implementation of a [standardized Ruby style](https://github.com/styleguide/ruby); fixing indentation of some files
* Added UTF-8 encoding declarations to all Ruby files; [necessary for Ruby 1.9.3](http://blog.grayproductions.net/articles/ruby_19s_three_default_encodings)
* Added the [Simplecov gem](http://www.tamingthemindmonkey.com/2011/09/27/ruby-code-coverage-using-simplecov) to facilitate test improvements (
* Started to expand tests; noting 4 empty tests
* DB structure from PostgreSQL 9.2 with required extensions

Please comment on this request and specific lines within it. I’m eager to collaborate.