Fixed the encoding on the tests.
Replaced open4 with IO.popen4 to work with JRuby
Added the update operation to the repository object