Fixed rubucop warnings

Signed-off-by: Bert Hajee <hajee@moretIA.com>