This problem happens when I try to use rspec testing for Radiant. Radiant keep giving me error when I try to run spec for one of the extensions. The error is missing rspec gem. But my rspec gem is there. So i just run gem install rspec again. It helps me installed the latest version of rspec and all its related gems. I run spec command again, it gives me error again. In the end, I realize that Radiant is using older version of Rspec 1.3. So I have to install that version although it gives me error saying missing Rspec. After so many times of installing I messed up all the gems. So I wanna reinstall my ruby and all gems, here is how I did it. Before that, you probably wanna make a copy of what gems you have installed
gem list > ~/Desktop/installed_gems.txt
sudo rm -r /System/Library/Frameworks/Ruby.framework/
sudo rm -r /Library/Ruby
sudo rm /usr/bin/ruby
sudo rm /usr/bin/gem
Now you have removed all ruby and ruby gems. You should use Ruby Version Managers to install ruby on your mac. It will help you manage ruby properly. You can follow previous article on how to install rvm and ruby on mac.
Read the rest of this entry »






