Rewrite ruby using gem api.
Merge pull request #3 from pre-commit/rewrite_ruby

Rewrite ruby using gem api.