Building and Install Gems from Gemspec files
I downloaded Xmpp4r-simple with the pubsub patches inside but since I'm a greenhorn in Ruby .. I had no idea how to install it because it wasn't in a Gem.
Yeah, I know... I got too spoilt from all those gem install this, gem install that.
So after some digging, I realized that I can build the gem from the gemspec file included in the package.
So if there someone who downloaded such packages, hope I saved you some time.
First, we want to clone the entire git directory first.
# git clone git://github.com/spectra/xmpp4r-simple.git
# cd xmpp4r-simple
# gem build xmpp4r-simple.gemspec
At this time you should have gotten a gem in the same directory! Woohoo! And so to install the glorious gem into our gem store.
# sudo gem install xmpp4r-simple-0.8.8.gem
Check that its installed
gem list --local | grep xmpp4r
You should see
xmpp4r (0.5)
xmpp4r-simple (0.8.8)

