Make changes Ruby 1.8 compatible

Change-Id: I25b0d8367c8199f55cb3cdc218cb5d01ac91f806
Reviewed-on: https://gerrit.causes.com/22857
Reviewed-by: Elliot Block <elliot.block@causes.com>
Reviewed-by: Lann Martin <lann@causes.com>
Tested-by: Jeremy Dunck <jeremy.dunck@causes.com>