ruby context added when checking whether gem is installed