yt 0.25.39 → 0.25.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/yt/collections/base.rb +3 -3
- data/lib/yt/models/claim.rb +1 -1
- data/lib/yt/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b0ee675025a4e3373b1281cfa5097498aec15ab
|
|
4
|
+
data.tar.gz: ea6970b4d354cebcc440ad32e0d7855ec437b936
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c3a000be6dc7c31d03964b9dc5f27442079e177fd4f867bc0a663833c709653d30c7c6dde977e4df8d6b675c45cb8fa63c8331537b1e0215a36bf19bb392221
|
|
7
|
+
data.tar.gz: 9203eb0e4dc5e84926e49b6c14830507753d7e52656c48da58816fb6637e14d3d332be9041f1acdd76d41ccace0f0aa8bf5e8e722ba3a00d110924d0df15a6ab
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@ For more information about changelogs, check
|
|
|
6
6
|
[Keep a Changelog](http://keepachangelog.com) and
|
|
7
7
|
[Vandamme](http://tech-angels.github.io/vandamme).
|
|
8
8
|
|
|
9
|
+
## 0.25.40 - 2016-09-19
|
|
10
|
+
|
|
11
|
+
* [IMPROVEMENT] Add `Yt::Claim#data` to access the policy of a claim
|
|
12
|
+
|
|
9
13
|
## 0.25.39 - 2016-06-15
|
|
10
14
|
|
|
11
15
|
* [FEATURE] Add `by: :operating_system` option for reports, to return views (from a `content_owner.video`) by operating system.
|
data/lib/yt/collections/base.rb
CHANGED
|
@@ -31,9 +31,9 @@ module Yt
|
|
|
31
31
|
# are at https://developers.google.com/youtube/v3/docs/search/list
|
|
32
32
|
#
|
|
33
33
|
# @example Return the first video of a channel (no requirements):
|
|
34
|
-
#
|
|
34
|
+
# channel.videos.first
|
|
35
35
|
# @example Return the first long video of a channel by video count:
|
|
36
|
-
#
|
|
36
|
+
# channel.videos.where(order: 'viewCount', video_duration: 'long').first
|
|
37
37
|
def where(requirements = {})
|
|
38
38
|
self.tap do
|
|
39
39
|
@items = []
|
|
@@ -59,4 +59,4 @@ module Yt
|
|
|
59
59
|
end
|
|
60
60
|
end
|
|
61
61
|
end
|
|
62
|
-
end
|
|
62
|
+
end
|
data/lib/yt/models/claim.rb
CHANGED
|
@@ -5,7 +5,7 @@ module Yt
|
|
|
5
5
|
# Provides methods to interact with YouTube ContentID claims.
|
|
6
6
|
# @see https://developers.google.com/youtube/partner/docs/v1/claims
|
|
7
7
|
class Claim < Base
|
|
8
|
-
attr_reader :auth
|
|
8
|
+
attr_reader :auth, :data
|
|
9
9
|
|
|
10
10
|
def initialize(options = {})
|
|
11
11
|
@data = options[:data]
|
data/lib/yt/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.25.
|
|
4
|
+
version: 0.25.40
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Claudio Baccigalupo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-09-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -332,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
332
332
|
version: '0'
|
|
333
333
|
requirements: []
|
|
334
334
|
rubyforge_project:
|
|
335
|
-
rubygems_version: 2.6.
|
|
335
|
+
rubygems_version: 2.6.6
|
|
336
336
|
signing_key:
|
|
337
337
|
specification_version: 4
|
|
338
338
|
summary: Yt makes it easy to interact with Youtube V3 API by providing a modular,
|