Add ruby version parsing to Gemfile