Yt v0.8.0 Release Notes

Release Date: 2014-07-19 // almost 10 years ago
  • ⬆️ How to upgrade

    If your code never declares instances of Yt::Channel, or never calls the subscribe method on them, then you are good to go.

    If it does, then be aware that subscribe will not raise an error anymore if a YouTube user tries to subscribe to her/his own YouTube channel. Instead, subscribe will simply return nil.

    If this is acceptable, then you are good to go. If you want the old behavior, replace subscribe with subscribe!:

    account = Yt::Account.new access_token: 'ya29...'
    channel = account.channel
    # old behavior
    channel.subscribe # => raised an error
    # new behavior
    channel.subscribe # => nil
    channel.subscribe! # => raises an error
    
    • 🚩 [ENHANCEMENT] channel.subscribe does not raise error when trying to subscribe to one’s own channel