[TASK] Move all ruby functions into the Config.rb file to avoid test errors on Travis CI