734 Commits

Author SHA1 Message Date
Brandur
180a7d849d Merge pull request #308 from stripe/brandur-list-empty
Add #empty? helper on ListObject
2015-09-30 13:22:13 -07:00
Brandur
1ae6ab48a6 Do not notify on successful builds 2015-09-30 13:17:11 -07:00
Brandur
af72a57c9d Add #empty? helper on ListObject
This makes ListObject behave a little more like an Array in that it gets
an #empty? helper. This should fit pretty well with the Enumerable
methods that it already has.

Replaces #193.
2015-09-30 13:13:41 -07:00
Brandur
9aa13697f7 Merge pull request #302 from stripe/franklin-normalize-opts
StripeObject: use Util.normalize_opts
2015-09-30 13:05:03 -07:00
Brandur
34ae473d6e Merge pull request #304 from stripe/brandur-enumerable-list-object
Mix `Enumerable` into `ListObject`
2015-09-30 12:59:14 -07:00
Brandur
cb677635e3 Merge pull request #306 from stripe/brandur-testing-information
Add information on running individual test suites and individual tests
2015-09-30 12:55:45 -07:00
Brandur
509c6c13a3 Merge pull request #307 from stripe/brandur-fix-invoices
Fix fixture data for invoices (and specifically invoice items)
2015-09-30 12:07:36 -07:00
Brandur
add851006d Fix fixture data for invoices (and specifically invoice items)
Fixes #228.
2015-09-30 12:02:53 -07:00
Brandur
c304cee8c2 Add information on running individual test suites and individual tests
Granular running of tests is one of Minitest's many gotchas. This
change adds some more information on how to run individual test suites
and individual tests which is useful when debugging.
2015-09-30 11:52:19 -07:00
Brandur
8c7a976ffb Space this method out a little bit 2015-09-30 11:28:05 -07:00
Brandur
5515824fe2 Mix Enumerable into ListObject
This pulls the `Enumerable` mixin into `ListObject`. There is some
question in pulls like #167 as to the future of `ListObject` and how it
might change when pagination is introduced, but because we're unlikely
to make any backward incompatible changes to the API, it's likely that
`ListObject` will continue to represent a page of data that's been
extracted from the API. Given that assumption, pulling `Enumerable` in
should be relatively safe.

Fixes #227.
2015-09-29 22:26:00 -07:00
Brandur
e0354b70f7 Add RDoc for #save 2015-09-29 22:10:51 -07:00
Brandur
0813a1fd45 Don't give build notifications via e-mail
I personally find that just looking at the red/green status of any given
pull request is enough information on the status of current builds.
2015-09-29 21:58:22 -07:00
Brandur
f308bb3a52 Merge pull request #301 from stripe/brandur-symbolize-names
Perform deep name symbolization from .construct_from
2015-09-29 19:02:16 -07:00
Brandur
f31eaa6b1e Perform deep name symbolization from .construct_from
When constructing an object using .construct_from treat keys that are
strings the same as keys which are symbols by calling Util's
symbolize_names on an input hash. This makes guarantees around
consistency a little better.

Fixes #151.
2015-09-29 17:52:16 -07:00
Brandur
6f9fa3b640 Merge pull request #299 from stripe/brandur-uri-escape
Remove use of deprecated `URI.escape`
2015-09-29 17:40:54 -07:00
Brandur
ac7d050ecf Create if #save is called on a new object
Modifies the behavior of an update so that it can create an object if it
was new. This allows an "upsert"-like functionality where the SDK will
tend to do the right/expected thing.

This is a tad janky in that it checks for the existence of a class-level
`.create` method which is expected to come from a different module, but
most modules in the project are already fairly deeply intertwined and
co-dependent.

Fixes #165.
2015-09-29 17:39:43 -07:00
Brandur
0db40e43fc Remove use of deprecated URI.escape
But we still want to percent-encode entities like spaces, so instead of
using `CGI.escape` we use a utility from WEBrick.

Fixes #286.
2015-09-29 16:33:20 -07:00
Brandur
fef7f8c641 Add a make_account to test data + charge_enabled -> charges_enabled 2015-09-29 15:46:43 -07:00
Brandur
cf67312ba5 Add tags to .gitignore 2015-09-29 15:46:27 -07:00
Franklin Hu
844169a744 StripeObject: use Util.normalize_opts
For object initialization and refresh_from, call `normalize_opts` so
`@opts` is in an expected form.
2015-09-29 14:22:11 -07:00
Brandur
30688422c4 Merge pull request #251 from godfat/to_hash-with-array
to_hash should also walk into arrays to make recursive call.
2015-09-28 15:31:54 -07:00
Brandur
2a22605618 Bump version to 1.27.2 v1.27.2 2015-09-25 14:25:38 -07:00
Brandur
e37711e947 Merge pull request #297 from stripe/brandur-fix-bitcoin-transactions
Correct list + retrieval of Bitcoin transactions
2015-09-23 12:10:17 -07:00
Brandur
be8108143b Assert on entire test URL for a slightly better guarantee 2015-09-23 12:04:12 -07:00
Brandur
1a49af7f94 Correct list + retrieval of Bitcoin transactions
Corrects the paths at which the client looks for Bitcoin transactions
and adds a small test suite to check these results.

Fixes stripe/stripe-ruby#236.
2015-09-22 18:23:57 -07:00
Rasmus Rygaard
14d98a7710 Merge pull request #296 from stripe/rasmus-update_version
Bump version to 1.27.1
2015-09-21 09:12:21 -07:00
Rasmus Rygaard
accb624b35 Bump version to 1.27.1 2015-09-20 10:25:59 -07:00
Rasmus Rygaard
db794d6be7 Merge pull request #294 from stripe/rasmus-fix_product_hash_rocket
Fix hash literal for backwards compatibility.
2015-09-20 10:20:17 -07:00
Rasmus Rygaard
333613fca2 Fix hash literal for compatibility. 2015-09-19 17:10:54 -07:00
Russell Davis
7a0ead3fac Merge pull request #291 from stripe/handle-non-hash-error-responses
Handle error responses that are not hashes more gracefully
2015-09-14 21:34:37 -07:00
Rasmus Rygaard
721071d224 Bump version to 1.27.0 v1.27.0 2015-09-14 16:42:14 -07:00
Rasmus Rygaard
51b0bff8e9 Merge pull request #292 from stripe/rasmus-orders_bindings
Add Relay bindings
2015-09-14 16:36:37 -07:00
Russell Davis
70ae271c9e Handle error responses that are not hashes more gracefully 2015-09-14 15:13:30 -07:00
Rasmus Rygaard
6e14ca9b2a Add SKU metadata tests. 2015-09-13 21:12:48 -07:00
Rasmus Rygaard
747dac6ea0 Add Orders. 2015-09-13 20:43:36 -07:00
Rasmus Rygaard
2c08524396 Remove #skus, simplify nested object check. 2015-09-13 18:21:02 -07:00
Rasmus Rygaard
690fd18cb3 Add SKUs, Products 2015-09-13 18:10:47 -07:00
Kyle Conroy
f56c486fa1 Bump version to 1.26.0 v1.26.0 2015-09-11 15:12:43 -07:00
Jacqueline
e09dab7d2e Merge pull request #289 from stripe/jacqueline-429-error
add 429 rate limit error
2015-09-10 15:56:31 -07:00
Jacqueline Xu
a705799a2c add 429 rate limit error 2015-09-10 15:31:51 -07:00
Russell Davis
9a90321e9b Merge pull request #288 from tanguyantoine/master
Allow params when retrieving customer objects
2015-09-08 14:35:56 -07:00
Tanguy Antoine
467109d588 Allow params when retrieve customer objects
* Permit easy pagination for example
* ruby 2 syntax for hash
2015-09-08 23:29:40 +02:00
Kyle Conroy
5e3474c70c Bump version to 1.25.0 v1.25.0 2015-08-17 16:40:48 -07:00
Kyle Conroy
81a88eced4 Merge pull request #282 from stripe/refunds
Add retrieve and all methods to refunds
2015-08-17 16:38:11 -07:00
Kyle Conroy
13979ce5be Add retrieve and all methods to refunds 2015-08-17 16:15:34 -07:00
Kyle Conroy
ea3a790669 Bump version to 1.24.0 v1.24.0 2015-08-03 13:40:14 -07:00
Russell Davis
dc8cbe5bdd Merge pull request #278 from HashNuke/266-return-token-object-on-token-create
Fix #266: Add Token to object classes map
2015-08-03 13:05:10 -07:00
Akash Manohar J
21c7061b5e Fix #266: Add Token to object classes map 2015-08-04 01:26:23 +05:30
Caitlin
eb75ccd7fa Merge pull request #269 from stripe/disputes
Add top level dispute methods.
2015-08-03 11:32:37 -07:00