yt-audit 0.5.5 → 0.6.0

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: 0b87615f5280d2212ee2f3c6c60e5d1450e322aa
4
- data.tar.gz: 831da0368aefc88c292f86ac79f1ab8f9c04a6d6
3
+ metadata.gz: d2f03b133aff3a51038e4f8d5a932d0777945506
4
+ data.tar.gz: 4d8212c0aa1605e5cbf9b960b9853c40a9c520f6
5
5
  SHA512:
6
- metadata.gz: 333781034ea13a46c2857b9071899c9c5d239852e97213854498d40c7f09b8ee533f7a1cd949bce79d07fb0f3f419c91bb1a86c8afc6ae59e30a441f94782449
7
- data.tar.gz: 3d5bd3df54feacceef5b6bd027de98505d9314f64b35eaef704972eaad6e6d388c1fd98311084ef818b00698b14b7cb95284582f97a3a1342ff8ae6bf13fd1fd
6
+ metadata.gz: ce607598eff7d12af2ed4dc5e7f5af51760f15800a3472fef58ab8a4c78ffc7e6aeefd7d00899fd27e249ce8a3e82686c63ef75a173e366524bfe46e96645ade
7
+ data.tar.gz: 213e8c14575b0950fc9fda3c24dab6ac5843e170cdb573572dce6225eb4cfe165fcc526b5badf3d8ff01860523a6acc066619fcdc989599538e8ca0789345362
@@ -6,7 +6,16 @@ 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.5 - 2017-04-03
9
+
10
+ ## 0.6.0 - 2018-01-29
11
+
12
+ **How to upgrade**
13
+
14
+ If your code calls `VideoAudit::InvideoProgramming`, you should remove it.
15
+
16
+ * [REMOVAL] Remove `VideoAudit::InvideoProgramming` because YouTube removed "Featured" annotations as of 12-14-2017. https://developers.google.com/youtube/v3/revision_history?id=november-27-2017
17
+
18
+ ## 0.5.5 - 2017-07-05
10
19
 
11
20
  * [BUGFIX] Change `VideoAudit::InvideoProgramming` to count videos with a 'featured content' annotation, not 'branding' annotation.
12
21
 
@@ -29,7 +38,7 @@ For more information about changelogs, check
29
38
 
30
39
  ## 0.5.1 - 2017-05-03
31
40
 
32
- * [ENHANCEMENT] Reduce API calls to YouTube using .count, not .size
41
+ * [ENHANCEMENT] Reduce API calls to YouTube using `.count`, not `.size`
33
42
 
34
43
  ## 0.5.0 - 2017-04-03
35
44
 
@@ -88,8 +97,7 @@ If your code calls any of `has_end_cards?`, `has_link_to_own_channel?`, `has_sub
88
97
 
89
98
  ## 0.1.5 - 2016-02-17
90
99
 
91
- * [BUGFIX] Fix `has_end_cards?` for cases when Float `ends_at` is
92
- greater than Fixnum `duration`
100
+ * [BUGFIX] Fix `has_end_cards?` for cases when Float `ends_at` is greater than Fixnum `duration`
93
101
 
94
102
  ## 0.1.4 - 2016-02-17
95
103
 
@@ -13,7 +13,6 @@ 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'
17
16
 
18
17
  module Yt
19
18
  class Audit
@@ -36,7 +35,6 @@ module Yt
36
35
  Yt::VideoAudit::VideoEndScreen.new(videos: @videos),
37
36
  Yt::VideoAudit::PlaylistEndScreen.new(videos: @videos),
38
37
  Yt::VideoAudit::WebsiteEndScreen.new(videos: @videos),
39
- Yt::VideoAudit::InvideoProgramming.new(videos: @videos),
40
38
  Yt::VideoAudit::EndCard.new(videos: @videos),
41
39
  Yt::VideoAudit::SubscribeAnnotation.new(videos: @videos),
42
40
  ]
@@ -1,5 +1,5 @@
1
1
  module Yt
2
2
  class Audit
3
- VERSION = '0.5.5'
3
+ VERSION = '0.6.0'
4
4
  end
5
5
  end
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
 
28
28
  spec.add_dependency 'yt-core', '>= 0.1.0'
29
29
  spec.add_dependency 'yt-url', '>= 1.0.0.beta2'
30
- spec.add_dependency 'yt-annotations', '~> 1.2'
30
+ spec.add_dependency 'yt-annotations', '~> 2.0'
31
31
 
32
32
  spec.add_development_dependency 'bundler', '~> 1.7'
33
33
  spec.add_development_dependency 'minitest', "~> 5.0"
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.5
4
+ version: 0.6.0
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-07-05 00:00:00.000000000 Z
12
+ date: 2018-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yt-core
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '1.2'
48
+ version: '2.0'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '1.2'
55
+ version: '2.0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: bundler
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -165,7 +165,6 @@ 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
169
168
  - lib/yt/video_audit/playlist_end_screen.rb
170
169
  - lib/yt/video_audit/subscribe_annotation.rb
171
170
  - lib/yt/video_audit/subscribe_end_screen.rb
@@ -194,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
193
  version: '0'
195
194
  requirements: []
196
195
  rubyforge_project:
197
- rubygems_version: 2.6.12
196
+ rubygems_version: 2.6.13
198
197
  signing_key:
199
198
  specification_version: 4
200
199
  summary: Audit a YouTube video.
@@ -1,24 +0,0 @@
1
- require 'yt/video_audit/base'
2
-
3
- module Yt
4
- module VideoAudit
5
- # Count how many subject videos have a branding annotation.
6
- class InvideoProgramming < Base
7
- def title
8
- 'In-Video Programming'
9
- end
10
-
11
- def description
12
- 'The number of videos with 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::Featured
20
- end
21
- end
22
- end
23
- end
24
- end