Added method to convert gemfile contents into array