Generate gem spec.
Fix to_s and to_sym.