diaspora/diaspora — pull request #3156 by marco-gallardo (2012-04-17 16:27:49+00:00)
Title: Locator

This is a feature I developed hoping to contribute in your awesome project. This feature basically allows the user to retrieve the location where he is creating his post. Also the user can edit the address retrieved so he can set a more specific location.

This new feature also captures lat and lng, which could be useful in the future for another features that requieres geolocation.

I used navigator.geolocation to get coordinates, and google API to make reverse geocoding.

Most of functionality in front end is implemented in backbone, although I wrote a class in pure js to make all the geolocation stuff.

For testing I implemented a framework called Sinon.js which allows creation of mocks, stubs, and spies in a very easy way.

I need to fix issues with assets since diaspora is not using assets.yml anymore