mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-08-31 00:04:49 -04:00
Makes a few tweaks to hopefully simplify clarity things: * `FaradayStripeEncoder` now becomes the way to encode all of form, multipart form, and query parameters. * Introduce a cache in it so that we don't have to encode everything twice (once for logging, and once for the request body). * Try to sanitize logging a bit by replacing `Faraday::UploadIO`s found in incoming parameters with a string representation of the file (note that all other styles of file input like `File` or `Tempfile` have been converted to `Faraday::UploadIO` by the time they reach the encoder).