fix precedence issue
process Ruby Gems as well