Update gem source, gem dependencies, and fix %d interpolation

Relying on an incrementing numeric id for %d interpolation is problematic.