1027 Commits

Author SHA1 Message Date
Brandur
1c4d43aad5 Merge pull request #479 from Amos47/recurse-on-stripe-objects
Allow to_s to also pretty_generate embedded StripeObjects
2016-11-17 11:53:34 -08:00
Amos47
46d992cf0d allow to_s to also pretty_generate embedded StripeObjects 2016-11-17 14:28:51 -05:00
Brandur
c826049813 Bump version to 1.56.1 v1.56.1 2016-11-09 15:16:33 -08:00
Brandur
bf326fb243 Merge pull request #478 from stripe/brandur-fix-memory-leak
Fix memory leak
2016-11-09 15:15:50 -08:00
Brandur
e3e070785b Fix memory leak
Fixes a memory leak caused by a doubled up `instance_eval`. See [1] for
context and discussion.

[1] https://github.com/stripe/stripe-ruby/issues/477
2016-11-08 17:38:58 -08:00
Olivier Bellone
f50e7a4162 Merge pull request #476 from ronbak/feram-patches
Minor Fixes
2016-11-06 14:00:10 +01:00
Feram
f14bf618e5 Fix typo unkown 2016-11-06 05:19:10 +00:00
Brandur
747a78d4d7 Merge pull request #474 from stripe/ob-issue-template
Added a template for GitHub issues
2016-11-03 11:23:07 -07:00
Brandur
2e7873149f Merge pull request #475 from takiy33/remove-respond_to-method-for-1.9.2
Remove respond_to? method for Ruby 1.9.2 or earlier
2016-11-03 11:22:09 -07:00
takiy33
2e1931b153 Remove respond_to? method for Ruby 1.9.2 or earlier 2016-11-03 23:10:10 +09:00
Olivier Bellone
a80f5f0a3d Added a template for GitHub issues 2016-11-03 12:04:14 +01:00
Brandur
2de99c55ce Bump version to 1.56.0 v1.56.0 2016-10-24 09:23:06 -07:00
Brandur
f44bf4def3 Correct CHANGELOG 2016-10-24 09:21:42 -07:00
Brandur
1437fa5418 Bump version to 1.55.1 v1.55.1 2016-10-24 09:16:29 -07:00
Brandur
2d4cdd95ac Merge pull request #472 from IndieBarry/ybk-fix-method-not-defined
Create accessor methods in update_attributes
2016-10-24 09:12:24 -07:00
Barry Kim
4faa7d169f Create accessor methods in update_attributes 2016-10-21 17:06:58 -07:00
Brandur
7e17330561 Merge pull request #471 from stripe/brandur-alphabetize-class-list
Alphabetize class list
2016-10-14 16:59:08 -07:00
Brandur
dff2bf10dd Alphabetize class list
This is a pretty pedestrian change, but here we alphabetize the list of
StripeObject class mappings so that it's easier to scan it for
accidental omissions.
2016-10-14 16:31:51 -07:00
Brandur
876ae8e4dd Merge pull request #470 from stripe/brandur-rename-permissions
Rename error class to be singular "permissions"
2016-10-14 10:58:29 -07:00
Brandur
7b9169712f Rename error class to be singular "permissions"
The addition of this class was unreleased so this is not a breaking
change.
2016-10-14 10:29:09 -07:00
Brandur
8f8d0e9cca Merge pull request #469 from stripe/jack-403
Handle 403 status codes
2016-10-14 10:01:44 -07:00
Jack Flintermann
1806d9524c handle 403 status codes 2016-10-14 08:57:19 -04:00
Brandur
52b4203af5 Merge pull request #468 from morgoth/fix-retry-description
Fixed description about DELETE request retries
2016-10-03 09:11:36 -06:00
Wojciech Wnętrzak
bb6838b5a9
Fixed description about DELETE request retries
[ci skip]
2016-10-03 14:18:47 +02:00
Kyle Conroy
c131bcbcac Correctly encode the subscription items array (#467)
* Correctly encode the subscription items array

* Use super

* Handle non-arrays as well

* Also encode items on create
2016-09-27 13:46:57 -07:00
Jacqueline
d2f783df34 Add support for multiplan subscriptions (#466)
* Add support for multiplan subscriptions:
Serialize indexed arrays into hashes with index keys in subscription create, subscription update, and upcoming invoice
Add a SubscriptionItem object that supports creation, deletion, update, listing, and retrieval

* Remove helpers that convert items array to indexed hash
2016-09-21 17:44:00 -07:00
Brandur
7637eb48bf Bump version to 1.55.0 v1.55.0 2016-09-15 10:27:19 -07:00
Brandur
bcb7b21a47 Merge pull request #465 from stripe/vijay-apple-pay-domain
Ruby bindings for ApplePayDomain
2016-09-15 11:24:03 -06:00
Vijay Singh
e2cc264c12 Hoist extend and include directives to top of class 2016-09-15 10:14:42 -07:00
Vijay Singh
7ac03e0a88 Changed from ApplePay::Domain to ApplePayDomain 2016-09-14 18:43:56 -07:00
Vijay Singh
4e802c9814 Fixed incorrect comment/variable naming 2016-09-14 18:20:55 -07:00
Vijay Singh
35bbb7a26b Ruby bindings of ApplePayDomain 2016-09-14 18:16:12 -07:00
Brandur
3b595a9e7f Bump version to 1.54.0 v1.54.0 2016-09-01 10:24:30 -07:00
Brandur
4a4b8699fb Merge pull request #463 from stripe/brandur-whitelist-retry-exceptions
Whitelist retry exceptions
2016-09-01 10:23:06 -07:00
Brandur
6ebf6ad92a Whitelist retry exceptions
Right now we are retrying *most* non-HTTP exceptions. This is
problematic because in something like a test context, even a rogue name
error could initiate a retry. It's also bad for production because there
are quite a number of socket errors [1] for which we don't want to
retry.

Fixes #462.

[1] https://ruby-doc.org/stdlib-2.3.0/libdoc/socket/rdoc/Socket.html
2016-08-31 15:23:21 -07:00
Brandur
805b65478c Bump version to 1.53.0 v1.53.0 2016-08-31 08:10:34 -07:00
Brandur
e3dd15273c Merge pull request #460 from stripe/brandur-upgrade-rest-client
Relax rest-client requirements
2016-08-31 08:09:26 -07:00
Brandur
5039d22339 Merge pull request #461 from stripe/brandur-fix-warnings
Fix interpreter warnings
2016-08-31 08:09:19 -07:00
Brandur
6b46b50c1b Fix interpreter warnings
These aren't causing the build to fail or anything, but they do get
spewed out every time our test suite runs.
2016-08-31 07:12:53 -07:00
Brandur
aa12f7e621 Relax rest-client requirements
Our fairly old requirements for rest-client (and therefore mime-types)
are starting to cause some dependency hell problems for some customers.
Try relaxing these constraints and locking 1.9 specifically into
compatible versions.
2016-08-31 06:56:17 -07:00
Brandur
73a1cf33de Bump version to 1.52.0 v1.52.0 2016-08-30 14:48:55 -07:00
Brandur
2da96e4798 Merge pull request #458 from stripe/brandur-generalize-save-nested-resource
Generalize saving nested resources
2016-08-30 14:47:52 -07:00
Brandur
22839df560 Nicen this code up a little bit and add a comment 2016-08-30 13:42:11 -07:00
Brandur
c796958516 Generalize saving nested resources
Since #433, saving API resources nested under other API resources has
not been the default. Instead, any instances where this should occur
have been special cased with specific method implementations that would
set the `#save_with_parent` flag when a field is written.

This ended up causing some problems because as seen in #457, because
places that we need to do this aren't well vetted, some were forgotten.

This makes implementation of new fields that need this behavior simpler
by implementing a `.save_nested_resource` metraprogramming method on the
`APIResource` class. This can be called as necessary by any concrete API
resource implementations.

We replace existing implementatinos and also add one to `Subscription`,
which had previously been suffering from a similar problem where its
`#source` had not received a special case.
2016-08-30 11:52:16 -07:00
Brandur
c15e3953fe Bump version to 1.51.1 v1.51.1 2016-08-30 11:13:56 -07:00
Brandur
41f09a75a3 Merge pull request #457 from stripe/brandur-fix-account-external-account-set
Flag Account#external_account into save_with_parent system
2016-08-30 11:12:57 -07:00
Brandur
1dd5cea24d Fix title of test context 2016-08-30 10:22:17 -07:00
Brandur
67b10a52ca Add deprecated #bank_account=
Add deprecated `#bank_account=` to maintain backwards compatibility.
This would have been broken by #433, so this change keeps the
functionality alive in case someone has not upgraded since.
2016-08-29 13:44:46 -07:00
Brandur
d6514ef633 Flag Account#external_account into save_with_parent system
In #433, we built a framework under which subresources are usually not
persisted, but in certain cases they can be. At the time,
`Customer#source` was the only field that I knew about that had to be
flagged into it.

Issue #456 has raised that we also be doing `Account#external_account`.
This patch adds support for that.

Fixes #456.
2016-08-29 10:34:08 -07:00
Brandur
5573cc73fc Bump version to 1.51.0 v1.51.0 2016-08-26 10:20:29 -07:00