ruby: initial rebase on pyramid

Change-Id: Ib22f40a33149b2ea295515e6362de3f6dddd4e02