Preparing for "0.2.2" release

* Try to write updated attributes to the attribute hash if it is
  present (to support "activerecord")
* Bump the gem version