Adding a few methods that I find useful to the Vote Smart library. No tests written, since there don't seem to be any for Vote Smart in the first place.
Updating Bio.find to optionally return office information as well
Add State.find_all, State.find_counties, and State.find_cities methods
adding Official.find_by_government method
Looks good to me, I vote merge.
Thanks for the vote of confidence (no pun intended...) -- although the more I'm using the VS API, the more I realize that there needs to be a more robust wrapper in place to deal with VS's inconsistencies.
Vote Smart doesn't know the difference between an object and an array of objects, which makes us need this code in order to process both http://api.votesmart.org/Local.getCities?key=XXX&stateId=HI&o=JSON and http://api.votesmart.org/Local.getCities?key=XXX&stateId=CA&o=JSON
[ parse(response['cities']['city']) ]
I'm in contact with VoteSmart's "IT" department, and I'll let you guys know if I hear anything useful.
better handling of blank responses