Yt v0.5 Release Notes
Release Date: 2014-05-16 // almost 10 years ago-
- 👻 More complete custom exception Yt::Error, with code, body and curl
- Replace
:ignore_not_found
and:ignore_duplicates
with:ignore_errors
- 👍 Allow resources to be initialized with a url, such as Yt::Resource.new url: 'youtube.com/fullscreen'
- ➕ Add
has_one :id
to resources, to retrieve the ID of resources initialized by URL - Raise an error if some
has_one
associations are not found (id, snippet, details set, user info) - Don't check for the right :scope if Account is initialized with credentials
- 🚚 Move models in Yt::Models but still auto-include them in the main namespace
- New Authentication model to separate
access_token
andrefresh_token
from Account - 🆕 New types of Errors that render more verbose errors and the failing request in cURL syntax
- 🔊 Separate Error class for 500 error, so they can be easily found in app logs
- 🆕 New Earning collection to retrieve estimated earning for YouTube-partnered channels
- 📇 Rename error classes so they match the corresponding Net::HTTP errors (e.g. Unauthorized)
- Separate Error class for 403 Error
- Retry once YouTube earning queries that return error 400 "Invalid query. Query did not conform to the expectations"
- ⚡️ Update RSpec to 3.0 (only required in development/testing)
- 🆕 New ContentOwner subclass of Account with access to partnered channels
- Automatically refresh the access token when it expires or becomes invalid
- Retry once YouTube earning queries that return error 503
- Wait 3 seconds and retry every request that returns 500, 503 or 400 with "Invalid query"
- 🆕 New Views collection to retrieve view count for YouTube-partnered channels