yt-audit 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/yt/audit.rb +3 -1
- data/lib/yt/audit/version.rb +1 -1
- data/lib/yt/video_audit/end_screen.rb +1 -1
- data/lib/yt/video_audit/invideo_programming.rb +24 -0
- data/lib/yt/video_audit/playlist_end_screen.rb +1 -1
- data/lib/yt/video_audit/subscribe_end_screen.rb +1 -1
- data/lib/yt/video_audit/video_end_screen.rb +1 -1
- data/lib/yt/video_audit/website_end_screen.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fd105f50b9937aa82a07b8b070efd9efd1576a8
|
4
|
+
data.tar.gz: 99cebaf5e5c67346c351edbc4dd8a23bdefb4dd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73b10d04171f4bd233612d8ee8f95203e7604c9b30768712abd32ac82fc4c8c58cf23e75fb8bb6487aefbca167c639391f69649add60ab8a731c7a44ded6cc59
|
7
|
+
data.tar.gz: 2dccee5c1a95cd8069111d72b92b53c50e76bd7aca98bffc394b141543f324e773f29a9fb0ee5c4918134e7e7dd6a16259c8759548af45f260e49c5d65150fcb
|
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.5.3 - 2017-06-19
|
10
|
+
|
11
|
+
* [FEATURE] Add `VideoAudit::InvideoProgramming` to count videos with a branding annotation.
|
12
|
+
|
9
13
|
## 0.5.2 - 2017-06-14
|
10
14
|
|
11
15
|
* [FEATURE] Add `VideoAudit::EndScreen` to count videos with end screens.
|
data/lib/yt/audit.rb
CHANGED
@@ -13,6 +13,7 @@ require 'yt/video_audit/subscribe_end_screen'
|
|
13
13
|
require 'yt/video_audit/video_end_screen'
|
14
14
|
require 'yt/video_audit/playlist_end_screen'
|
15
15
|
require 'yt/video_audit/website_end_screen'
|
16
|
+
require 'yt/video_audit/invideo_programming'
|
16
17
|
|
17
18
|
module Yt
|
18
19
|
class Audit
|
@@ -36,7 +37,8 @@ module Yt
|
|
36
37
|
Yt::VideoAudit::SubscribeEndScreen.new(videos: @videos),
|
37
38
|
Yt::VideoAudit::VideoEndScreen.new(videos: @videos),
|
38
39
|
Yt::VideoAudit::PlaylistEndScreen.new(videos: @videos),
|
39
|
-
Yt::VideoAudit::WebsiteEndScreen.new(videos: @videos)
|
40
|
+
Yt::VideoAudit::WebsiteEndScreen.new(videos: @videos),
|
41
|
+
Yt::VideoAudit::InvideoProgramming.new(videos: @videos),
|
40
42
|
]
|
41
43
|
end
|
42
44
|
end
|
data/lib/yt/audit/version.rb
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'yt/video_audit/base'
|
2
|
+
|
3
|
+
module Yt
|
4
|
+
module VideoAudit
|
5
|
+
# Count how many subject videos have a branding.
|
6
|
+
class InvideoProgramming < Base
|
7
|
+
def title
|
8
|
+
'In-Video Programming'
|
9
|
+
end
|
10
|
+
|
11
|
+
def description
|
12
|
+
'The number of videos with an in-video programming'
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def valid?(video)
|
18
|
+
Yt::Annotations.for(video.id).any? do |annotation|
|
19
|
+
annotation.instance_of? Yt::Annotations::Branding
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yt-audit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claudio Baccigalupo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-06-
|
12
|
+
date: 2017-06-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: yt-core
|
@@ -165,6 +165,7 @@ files:
|
|
165
165
|
- lib/yt/video_audit/end_card.rb
|
166
166
|
- lib/yt/video_audit/end_screen.rb
|
167
167
|
- lib/yt/video_audit/info_card.rb
|
168
|
+
- lib/yt/video_audit/invideo_programming.rb
|
168
169
|
- lib/yt/video_audit/playlist_end_screen.rb
|
169
170
|
- lib/yt/video_audit/subscribe_annotation.rb
|
170
171
|
- lib/yt/video_audit/subscribe_end_screen.rb
|
@@ -193,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
194
|
version: '0'
|
194
195
|
requirements: []
|
195
196
|
rubyforge_project:
|
196
|
-
rubygems_version: 2.6.
|
197
|
+
rubygems_version: 2.6.12
|
197
198
|
signing_key:
|
198
199
|
specification_version: 4
|
199
200
|
summary: Audit a YouTube video.
|