monde/mms2r — pull request #17 by jpmcgrath (2012-04-23 01:08:32+00:00)
Title: Grab Sprint image captions

Hi Mike,

This proved to be a little more complex than I initially thought as Sprint uses Ajax to serve up JSON that is then turned into html content. The changes I have made work out the URL to download the JSON from. Then it extract any text content to create text/html media for the mms mail object.

Also worth noting is that to parse the JSON response I have included the JSON gem in the gemfile. Hope this is ok.

I was thinking about writing a test case for these changes, but I'm not sure how to achieve it as it would require a persistent MMS message stored on the Sprint servers. Because they expire any message after 60 days, any test that i can think of would expire with the message. If you have thoughts on this let me know.

Cheers,

James.