Subscription#postpone functionality

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Remove test file

Not sure how this guy got in here. In any case, he's gone.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Support marking invoices successful/failed

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Update to 2.1.5

This update exposes

 - Subscription#postpone
 - Invoice#mark_successful
 - Invoice#mark_failed

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Use Travis CI

This will increase visibility into whether a build or pull request is
passing/failing in multiple environments.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Remove excess development dependencies

Guard isn't something that everyone uses or needs to use. Let's not
depend on it directly in the repository. (This surfaced because the
growl gem dependency couldn't be installed in Travis.)

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Don't expose RedCarpet to JRuby

JRuby in 1.9 mode seems to freak out with JRuby. Let's not bother
exposing the gem dependency (which is only used for YARD).

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Add Travis build status image

Exposing the build status icon in the README for easy GitHub viewing.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Test Nokogiri in Travis CI

Added an ENV switch to test Nokogiri.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Don't support JRuby Nokogiri in Travis CI

This should not be considered a failure. Happy to accept patches,
though.

Also making some notification settings changes.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Remove Guard reference from README

No longer in the repository; no need to lead users astray.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Update README to link directly to API credentials

Just a nice little shortcut.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Update copyright date

Just because.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
GitHub uses SSL

Let's update a couple peripheral GitHub links to respect its protocol.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Support for subscription add-on errors [fix #70]

By changing a subscription's add-ons from being merely a (proxied) array
of attribute hashes to a (still-proxied) array of Recurly::Resource
objects (a new SubscriptionAddOn class), we can apply errors gracefully
(rather than the current behavior, which is broken and would raise an
exception while trying to call Hash#invalid!).

Reported-by: Forrest Zeisler <forrest@getjobber.com>
Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Update transaction in place if voided during refund

The current code always returns a copy, but during voiding we want to
update the record in place.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Fix broken Invoice#pdf method
Merge pull request #72 from mattv/bug/invoice-pdf-no-method

Broken Invoice#pdf method
Add support for looking up coupon redemption on an invoice

API v2 now supports looking up the coupon redemption that's been
applied to an invoice. It also adds a 'state' attribute, since
redemptions applied to an invoice might be inactive.

Acked-by: Stephen Celis <stephen@recurly.com>
Signed-off-by: Evan Owen <kainosnoema@gmail.com>
Added cgi require to js.rb