Handle gem resolution with namespacing