851 Commits

Author SHA1 Message Date
Brandur
ddaf36e00c Remove support for Ruby 1.9
This has been discussed, but we'll finally be doing it for the next
major version so that we can introduce a few features that depend on
gems that don't support 1.9.
2017-02-14 12:06:10 -08:00
Brandur
32530b1ad6 Merge pull request #500 from stripe/brandur-ruby-24
Add Ruby 2.4 to the build list
2017-02-02 10:27:06 -08:00
Brandur
622ea63281 Add Ruby 2.4 to the build list 2017-02-02 10:16:52 -08:00
Brandur
98c42e0b69 Bump version to 1.58.0 v1.58.0 2017-01-19 14:11:17 -08:00
Brandur
c46ec2b355 Merge pull request #494 from stripe/ob-sources-tests
Better tests for sources
2017-01-19 14:10:25 -08:00
Olivier Bellone
9735255318 Better tests for sources 2017-01-19 18:32:58 +01:00
Brandur
b291bce240 Alphabetize class name list 2017-01-13 12:41:35 -08:00
Brandur
6b697ae23a Merge pull request #491 from stripe/brandur-uname
Colocate uname helpers + tests
2017-01-13 11:46:11 -08:00
Brandur
4da4bd3ff3 Colocate uname helpers + tests
Colocates the helper methods for looking up a uname by renaming them to
have the same prefix as the base method (i.e. `get_uname`).

Also adds an additional rescue in case we try to run an executable on a
system but it wasn't founded (this should never happen).

Also adds some tests to make sure that each method gets at least a very
basic amount of exercise in the test suite.
2017-01-13 10:59:08 -08:00
Brandur
1b15101d8d Merge pull request #490 from stripe/brandur-errors-test
Add basic test for errors
2017-01-13 10:50:50 -08:00
Brandur
50a023a33b Add basic test for errors
Just adds a super simplistic test for the errors module. The win here is
to (hopefully) lower the friction a little bit the next time a feature
is introduced into errors because there's now suite where a new test can
be written.
2017-01-13 10:38:20 -08:00
Brandur
c3e1e82d9b Merge pull request #489 from stripe/brandur-consolidate-and-document-errors
Consolidate errors to one file + document them
2017-01-13 10:38:02 -08:00
Brandur
09c4885d31 Consolidate errors to one file + document them
Right now we have every error class in a separate file which doesn't do
anyone a lot of good, especially given that most of them are just stubs
that derive directly from `StripeError`.

This patch pulls them all into one file and gives them some
documentation. It follows #487 and #488 as minor refactoring work.
2017-01-13 10:28:10 -08:00
Brandur
aab50511a1 Merge pull request #488 from stripe/brandur-alphabetize-require-list
Alphabetize stripe.rb require list
2017-01-13 10:27:55 -08:00
Brandur
da1b87f1c6 Alphabetize stripe.rb require list
Alphabetizes the list of named model requires in stripe.rb. This makes
it a little easier to spot things, and makes the correct spot to insert
a new model fully deterministic.

This continues along the path of #487 in introducing minor cleanups.
2017-01-13 10:06:32 -08:00
Brandur
f957cfc088 Merge pull request #487 from stripe/brandur-alphabetize-stripe-rb
Alphabetize methods in lib/stripe.rb
2017-01-13 10:05:56 -08:00
Brandur
83201e1a48 Alphabetize methods in lib/stripe.rb
This one is unfortunately a lot of churn, but it's incredibly
frustrating how difficult it is to find methods in this file.

Here we alphabetize the methods, but do nothing else. Alphabetization
only occurs within visibility blocks, so visibility is not affected at
all.
2017-01-13 09:58:29 -08:00
Brandur
fb555a764e Bump version to 1.57.1 v1.57.1 2016-11-28 17:52:27 -08:00
Brandur
d9d28fef21 Merge pull request #483 from stripe/brandur-disallow-protected-field-set
Don't allow protected fields in `Save.update` API operation
2016-11-28 17:51:25 -08:00
Brandur
11a6eec5f5 Don't allow protected fields in Save.update API operation
As described in #481, adding a protected field like `legal_entity` as
part of an update API operation can cause some issues like a custom
encoding scheme not being considered and special handling around empty
values being ignored.

As a an easy fix for this, let's disallow access to protected fields in
the same way that we disallow them from being set directly on an
instance of a given model.

Helps address (but is not a complete fix for) #481.
2016-11-28 11:42:57 -08:00
Brandur
58184c2039 Bump version to 1.57.0 v1.57.0 2016-11-21 18:03:06 -08:00
Brandur
ae3e6db268 Merge pull request #480 from stripe/ob-3ds-retrieve
Adds 3DS retrieve endpoint
2016-11-21 18:02:20 -08:00
Olivier Bellone
4122f9bbb3 Adds 3DS retrieve endpoint 2016-11-21 19:36:58 +01:00
Brandur
b3828b6736 Bump version to 1.56.2 v1.56.2 2016-11-17 11:54:35 -08:00
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