Bump version to 0.2.2

- Support ruby version 1.9.3+
- Minor code cleanup