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
andunsubscribe!
methods ofChannel
have not ๐ changed, so you can still try to unsubscribe from a channel and not raise an error by using theunsubscribe
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
withhas_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)
- [ENHANCEMENT] Replace
-
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
- โก๏ธ [FEATURE] Add
-
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
andclaim.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
- โก๏ธ [FEATURE] Add AdvertisingOptionsSet with
-
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
- ๐ง [ENHANCEMENT] Add
-
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