Success Comunicating With External App Using TCPSocket

Is it possible to install gems in SketchUp? If so is the process reliable enough for a distributed extension?