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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b1fe37aecd80c49b1400627f9524dee01e121c1
4
- data.tar.gz: 4ebfe22b48dd1de43377706def5699a82dafe4bc
3
+ metadata.gz: 8fd105f50b9937aa82a07b8b070efd9efd1576a8
4
+ data.tar.gz: 99cebaf5e5c67346c351edbc4dd8a23bdefb4dd0
5
5
  SHA512:
6
- metadata.gz: 6cd840c4f215fe0247f836615c3f6d06806f3b91e6b77207188626de19c0e0dd8b96c5253f9c2b4638e2ad8bb7f5a2d143e10a0c3374a05e0908119be2e24a28
7
- data.tar.gz: 9e3461470f01cf749fa6e59bc3de5e062decffac1cd3b36e5d1cb882c0cb3afb75b075e595da45e0f93c5d907db18ffdcd4e35d46462d2e16b34b69a770aab0e
6
+ metadata.gz: 73b10d04171f4bd233612d8ee8f95203e7604c9b30768712abd32ac82fc4c8c58cf23e75fb8bb6487aefbca167c639391f69649add60ab8a731c7a44ded6cc59
7
+ data.tar.gz: 2dccee5c1a95cd8069111d72b92b53c50e76bd7aca98bffc394b141543f324e773f29a9fb0ee5c4918134e7e7dd6a16259c8759548af45f260e49c5d65150fcb
@@ -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.
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Yt
2
2
  class Audit
3
- VERSION = '0.5.2'
3
+ VERSION = '0.5.3'
4
4
  end
5
5
  end
@@ -9,7 +9,7 @@ module Yt
9
9
  end
10
10
 
11
11
  def description
12
- 'The number of videos with at least one end screen'
12
+ 'The number of videos with at least one end screen element'
13
13
  end
14
14
 
15
15
  private
@@ -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
@@ -2,7 +2,7 @@ require 'yt/video_audit/base'
2
2
 
3
3
  module Yt
4
4
  module VideoAudit
5
- # Count how many subject videos have an end screens
5
+ # Count how many subject videos have an end screen
6
6
  # with a playlist link.
7
7
  class PlaylistEndScreen < Base
8
8
  def title
@@ -2,7 +2,7 @@ require 'yt/video_audit/base'
2
2
 
3
3
  module Yt
4
4
  module VideoAudit
5
- # Count how many subject videos have an end screens
5
+ # Count how many subject videos have an end screen
6
6
  # with a subscribe link.
7
7
  class SubscribeEndScreen < Base
8
8
  def title
@@ -2,7 +2,7 @@ require 'yt/video_audit/base'
2
2
 
3
3
  module Yt
4
4
  module VideoAudit
5
- # Count how many subject videos have an end screens
5
+ # Count how many subject videos have an end screen
6
6
  # with a video link.
7
7
  class VideoEndScreen < Base
8
8
  def title
@@ -2,7 +2,7 @@ require 'yt/video_audit/base'
2
2
 
3
3
  module Yt
4
4
  module VideoAudit
5
- # Count how many subject videos have an end screens
5
+ # Count how many subject videos have an end screen
6
6
  # with a website link.
7
7
  class WebsiteEndScreen < Base
8
8
  def title
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.2
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-15 00:00:00.000000000 Z
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.11
197
+ rubygems_version: 2.6.12
197
198
  signing_key:
198
199
  specification_version: 4
199
200
  summary: Audit a YouTube video.