adapter: few ruby fixes