nov/itunes-receipt — pull request #1 by burnettk (2012-10-15 14:40:23+00:00)
Title: Add suport for auto-renew subscriptions

Branch adds support for autorenew subscriptions by adding some stuff (in a backwards-compatible manner) to the Itunes::Recipt model.

When one of these auto renew receipts is validated, it can return a "latest" receipt (see http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/RenewableSubscriptions/RenewableSubscriptions.html#//apple_ref/doc/uid/TP40008267-CH4-SW2).

The new code stores the latest receipt (similar to the way you store the "original" receipt) and also adds a new attribute, expires_date, that is only returned for these types of products. branch includes tests and sample json for one of these return values from apple.

Unrelated: changed an rspec syntax thing from expect {}.should to expect {}.to in order to fix a deprecation warning in rspec.

Thanks for getting it into master, and thanks for writing this code!