All Versions
158
Latest Version
Avg Release Cycle
67 days
Latest Release
1191 days ago

Changelog History
Page 13

  • v0.12.0 Changes

    August 31, 2014

    ⬆️ How to upgrade

    If your code never calls the delete method directly on a Subscription object (to delete subscriptions by id), then you are good to go.

    If it does, then be aware that trying to delete an unknown subscription will now raise a RequestError, and will not accept ignore_errors as an option:

    account = Yt::Account.new access_token: 'ya29...'
    subscription = Yt::Subscription.new id: '--unknown-id--', auth: account
    # old behavior
    subscription.delete ignore_errors: true # => false
    # new behavior
    subscription.delete # => raises Yt::Errors::RequestError "subscriptionNotFound"
    

    Note that the unsubscribe and unsubscribe! methods of Channel have not 🔄 changed, so you can still try to unsubscribe from a channel and not raise an error by using the unsubscribe method:

    account = Yt::Account.new access_token: 'ya29...'
    channel = Yt::Channel.new id: 'UC-CHANNEL-ID', auth: account
    channel.unsubscribe # => returns falsey if you were not subscribed
    channel.unsubscribe! # => raises Yt::Errors::RequestError if you were not subscribed
    
    • [ENHANCEMENT] Replace has_many :subscriptions with has_one :subscription in Channel
    • [FEATURE] Add subscribed_channels to Channel (list which channels the channel is subscribed to)
    • [FEATURE] Add subscribers to Account (list which channels are subscribed to an account)
  • v0.11.6 Changes

    August 28, 2014
    • 🛠 [BUGFIX] Make Resource.new(url: url).title hit the right endpoint
  • v0.11.5 Changes

    August 27, 2014
    • 🛠 [BUGFIX] Make videos.where(id: 'jNQXAC9IVRw').first.id return 'jNQXAC9IVRw'
  • v0.11.4 Changes

    August 27, 2014
    • [ENHANCEMENT] Add Video search even by id, chart or rating
    • 👍 [FEATURE] Add ActiveSupport::Notification to inspect HTTP requests
  • v0.11.3 Changes

    August 21, 2014
    • ⚡️ [FEATURE] Add update method to Asset model
  • v0.11.2 Changes

    August 20, 2014
    • ⚡️ [FEATURE] Add AdvertisingOptionsSet with update to change the advertising settings of a video
    • [FEATURE] Add content_owner.create_claim and claim.delete
    • ⚡️ [FEATURE] Add update method to Ownership to change owners of an asset
    • [FEATURE] Add asset.ownership to list the owners of an asset
    • [FEATURE] Add content_owner.create_asset and Asset model
  • v0.11.1 Changes

    August 17, 2014
    • [ENHANCEMENT] Add Video search even without a parent account or channel

    For instance, to search for the most viewed video on the whole YouTube, run:

    videos = Yt::Collections::Videos.new
    videos.where(order: 'viewCount').first.title #=>  "PSY - GANGNAM STYLE"
    
  • v0.11.0 Changes

    August 17, 2014

    ⬆️ How to upgrade

    🖨 When a request to YouTube fails, Yt used to print out a verbose error message, including the response body and the request that caused the error (in curl format). This output could include sensitive data (such as the authentication 🔒 token). For security reasons, Yt will not print it out anymore by default.

    If this is acceptable, then you are good to go. If you want the old behavior, set the log_level of Yt to :debug:

    Yt.configure do |config|
      config.log_level = :debug
    end
    
    • 🔧 [ENHANCEMENT] Add log_level to Yt.configuration
  • v0.10.5 Changes

    August 17, 2014
    • ⚡️ [ENHANCEMENT] Use PATCH rather than PUT to partially update a MatchPolicy
  • v0.10.4 Changes

    August 15, 2014
    • 🛠 [BUGFIX] List tags of videos retrieved with channel.videos and account.videos