added rspec test cases and phonegap-rails gem