muxinc / mux-ruby

Official Mux API wrapper for ruby projects, supporting both Mux Data and Mux Video.
MIT License
51 stars 14 forks source link

re-generate SDK from fixed ruby template #18

Closed dylanjha closed 4 years ago

dylanjha commented 4 years ago

closes #12

URI.escape has been obsolete for some time -- but only recently started printing deprecation warnings.

I checked on what to do here, I thought there would be a proper way to escape, but it turns out that individual URI components should be escaped separately.

These particular methods only handle the scheme, host, base_url, base_path and path variables. Typically, all we really care about for escaping is the query params, which get handled separately, so this should be safe.

TODO: