(Cave Ruins isn't a spell.)
Cave Ruins enters the battlefield tapped.
, : Tap target artifact with converted mana cost X or less.
: Add or to your mana pool.
Put Cave Ruins on top of your library: Add to your mana pool.