morgoth/picasa — pull request #14 by viniciusteles (2012-10-24 20:16:58+00:00)
Title: Use JSON to read from Picasa for faster parsing

Picasa API allows the use of JSON for reading. Since it's faster to parse
JSON, I'm trying to change the GEM so that it will write to Picasa using
XML and read using JSON.

These changes are just the beginning. Actually they break the gem, since
it's necessary to fix at least each presenter. The parsed JSON has
attribute names that differ from the ones in the parsed XML, which is
why all of the presenters should be revised.

So far, I've fixed the album presenter. All of the others still need to
be changed.

Presenters' tests need to be fixed as well. So the next step is to fix
the album presenter test, before moving on to the other presenters and their corresponding tests.

I'll need to recreate the fixtures. They're XML files now and I'll need to grab new ones as JSON files. I believe the current fixtures don't reflect what is on Picasa currently, so the very content of the tests will probably need to change as well.

This pull request isn't ready to be merged yet. But I decided to start sharing the changes so that you can take a look and see if you've got any recommendations, specially on how to fix the tests.