1359 Commits

Author SHA1 Message Date
Tim Craft
92775b1358 Remove Util.titlecase_parts method 2018-09-05 14:25:39 +01:00
Tim Craft
a43296d242 Remove unused Util.file_readable method 2018-09-05 14:11:05 +01:00
Remi Jannel
66248ba2aa Add support for the Reporting resources 2018-08-30 20:11:07 -04:00
Brandur
1bbbfd4e66
Merge pull request #680 from stripe/brandur-stripe-mock-030
Upgrade stripe-mock to 0.30.0
2018-08-30 10:30:28 -07:00
Brandur
b19358fb80 Upgrade stripe-mock to 0.30.0
Upgrades to the most recent version of stripe-mock now that we've got a
few more fixes into both its implementation and into stripe-ruby's test
suite.
2018-08-30 10:09:10 -07:00
Brandur
54b012caa0
Merge pull request #679 from stripe/brandur-minor-test-fixes
Minor test fixes
2018-08-30 09:40:49 -07:00
Brandur
6ad182b1eb Minor test fixes
I was testing with a new version of stripe-mock and it caught a few
problems with query parameter validation on. This patch contains some
minor fixes to address them.
2018-08-29 15:57:51 -07:00
Brandur
7331bf33de Bump version to 3.25.0 v3.25.0 2018-08-28 13:23:26 -07:00
Brandur
29d9e0d2c5
Merge pull request #678 from stripe/remi-fix-payment-intent
Fix payment intent methods to take extra parameters
2018-08-28 13:21:51 -07:00
Remi Jannel
0632afb5be Fix payment intent methods to take extra parameters and remove delete 2018-08-28 15:55:19 -04:00
Tomer Elmalem
3a8f1d7172 Bump version to 3.24.0 v3.24.0 2018-08-27 16:31:56 -07:00
tomer-stripe
0d7315f037
Merge pull request #675 from stripe/tomer-remove-edittable-bitcoin-receivers-actions
Remove ability to perform edit-actions on bitcoin receivers
2018-08-27 16:29:21 -07:00
Olivier Bellone
156145b96b
Merge pull request #677 from stripe/ob-prep-file
Use `::File` instead of `File`
2018-08-27 16:50:57 +02:00
Olivier Bellone
21db64fe0e
Use ::File instead of File 2018-08-27 15:32:10 +02:00
Olivier Bellone
a2f9822de7
Bump version to 3.23.0 v3.23.0 2018-08-23 10:09:25 +02:00
Olivier Bellone
97b65985df
Merge pull request #676 from stripe/remi-add-usage-record-summary
Add support for usage record summary
2018-08-23 10:08:50 +02:00
Remi Jannel
f5dc3ab0c3 Add support for usage record summary 2018-08-21 08:56:18 -04:00
Tomer Elmalem
2da53af59b Remove ability to perform edit-actions on bitcoint receivers 2018-08-16 11:00:22 -07:00
Brandur
2b2c2c3cd6 Bump version to 3.22.0 v3.22.0 2018-08-15 10:15:17 -07:00
Brandur
59ef4c2758
Merge pull request #674 from stripe/brandur-integer-indexes
Integer-index encode all arrays
2018-08-15 10:14:25 -07:00
Brandur
c1ff8bdc4c Integer-index encode all arrays
Changes all arrays from classic Rack encoding:

``` sh
arr[]=...&arr[]=...&arr[]=...
```

To integer-indexed encoding:

``` sh
arr[0]=...&arr[1]=...&arr[2]=...
```

We think that this should be tractable now that we've fully converted
all endpoints over to the new AbstractAPIMethod infrastructure on the
backend (although we should do a little more testing to make sure that
all endpoints still work).

As part of the conversion, we also remove any places that we were "spot
encoding" to get required integer-indexed syntax. This should now all be
built in.
2018-08-14 14:44:43 -07:00
Olivier Bellone
24143ab7d7
Bump version to 3.21.0 v3.21.0 2018-08-03 15:48:21 +02:00
Olivier Bellone
a24b69caab
Merge pull request #671 from stripe/ob-topup-cancel
Add cancel support for topups
2018-08-03 15:47:34 +02:00
Olivier Bellone
d698bd6fc7
Add cancel support for topups 2018-08-03 12:50:39 +02:00
Olivier Bellone
7e914bc9cb
Bump version to 3.20.0 v3.20.0 2018-08-03 12:26:19 +02:00
Olivier Bellone
76a8a45eb6
Merge pull request #669 from stripe/ob-file-link
file_link support
2018-08-03 12:25:11 +02:00
Olivier Bellone
9c357c803f
file_link support 2018-08-03 00:07:27 +02:00
Olivier Bellone
704231a4f6
Merge pull request #668 from stripe/remi-scheduled-run-mock
Move Scheduled Query Run and Source Transaction to stripe-mock
2018-07-31 13:47:12 +02:00
Remi Jannel
bec0063d07 Move Scheduled Query Run and Source Transaction to stripe-mock 2018-07-31 07:41:17 -04:00
Olivier Bellone
4916eadafa
Merge pull request #667 from stripe/brandur-disable-lengths
Rubocop: Cap method length at 50 lines + disable module length
2018-07-28 14:53:15 +02:00
Brandur
ebbce668fd Rubocop: Cap method length at 50 lines + disable module length
Remi pointed out in #666 that we basically just have to keep adding more
more onto the `Max` exception for both these rules every time we add a
new API resource.

Here I suggest that we modify the check on method length in two ways:

1. Permanently disable the cop on `Util.object_classes`. This is just
   going to keep growing until we change are approach to it.
2. Choose a more reasonable maximum of 50 lines for elsewhere (IMO, the
   default of 10 is just too short). Most of our methods already come in
   below this, but there's a couple outliers like `#execute_request` in
   `StripeClient`. If we knock over some of those, we could lower this
   number again, but I suspect that we'd probably want somewhere closer
   to 30 (instead of 10) event then.

I also disable the check on module length completely. I'm not convinced
this is a very good heuristic for code quality.
2018-07-27 17:13:07 -07:00
Brandur
4e3f38ec09 Bump version to 3.19.0 v3.19.0 2018-07-27 17:01:39 -07:00
Brandur
42839f8c20
Merge pull request #666 from stripe/remi-add-sigma-scheduled-query-run
Add support for ScheduledQueryRun
2018-07-27 17:00:26 -07:00
Remi Jannel
4c39c35fd8 Add support for ScheduledQueryRun 2018-07-27 19:14:37 -04:00
Brandur
ec5c51c3ba Very minor fix for alphabetical ordering 2018-07-26 11:32:35 -07:00
Brandur
3b0c34d53b Bump version to 3.18.0 v3.18.0 2018-07-26 11:19:23 -07:00
Brandur
69092da48a
Merge pull request #665 from stripe/remi-add-issuing-resources
Add support for Issuing resources
2018-07-26 11:18:06 -07:00
Remi Jannel
04ae411754 Add support for Issuing resources 2018-07-26 13:35:50 -04:00
Brandur
7c9492b37d Bump version to 3.17.2 v3.17.2 2018-07-19 09:56:15 -07:00
Brandur
b3eb5d3e30
Merge pull request #664 from jasonwebster/do_not_colorize_logger_logging
Do not colorize output destined for configured logger
2018-07-19 09:55:30 -07:00
Jason Webster
9d0cd25897 Do not colorize output destined for configured logger
This changes the predicate supplied to the #colorize method to ensure
that if a logger is set, the colorizing ANSI escape codes are not applied.

This definitely appears to have been the intention behind the original
implementation, but the tests didn't reflect how .log_internal was
actually called. In reality, it is always supplied with an `out:`
argument, not nil. This caused all logger bound output to also be
colorized.
2018-07-19 12:28:28 -04:00
Olivier Bellone
74b25a40dd
Bump version to 3.17.1 v3.17.1 2018-07-19 16:42:10 +02:00
Olivier Bellone
87b758e3ae
Merge pull request #663 from stripe/ob-better-resource-url
Better `resource_url` method
2018-07-19 16:38:35 +02:00
Olivier Bellone
73eb3fec77
Regenerate .rubocop_todo.yml 2018-07-19 14:23:18 +02:00
Olivier Bellone
b4e57ea981
Better resource_url method 2018-07-19 14:23:07 +02:00
Olivier Bellone
99a1d57c0a
Merge pull request #662 from stripe/remi-move-payment-intent-stripe-mock
Move paymentintent to stripe-mock
2018-07-09 11:03:57 +02:00
Remi Jannel
b206552c60 Move paymentintent to stripe-mock 2018-07-07 15:55:12 -04:00
Olivier Bellone
a097b23a0c
Merge pull request #661 from stripe/brandur-ruby-25
Add Ruby 2.5 to test matrix + use aliases
2018-07-03 08:57:40 +02:00
Brandur
1cb90b87f4 Add Ruby 2.5 to test matrix + use aliases
Adds Ruby 2.5 to the test matrix.

I also switched us over to aliases of each major Ruby version because I
think it makes more sense to be locked to whatever the latest release in
each is.
2018-07-02 14:08:00 -07:00
Brandur
9e35a5e0d9 Bump version to 3.17.0 v3.17.0 2018-06-28 08:57:18 -07:00