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 +4 -4
- data/CHANGELOG.md +12 -4
- data/lib/yt/audit.rb +0 -2
- data/lib/yt/audit/version.rb +1 -1
- data/yt-audit.gemspec +1 -1
- metadata +5 -6
- data/lib/yt/video_audit/invideo_programming.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2f03b133aff3a51038e4f8d5a932d0777945506
|
4
|
+
data.tar.gz: 4d8212c0aa1605e5cbf9b960b9853c40a9c520f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce607598eff7d12af2ed4dc5e7f5af51760f15800a3472fef58ab8a4c78ffc7e6aeefd7d00899fd27e249ce8a3e82686c63ef75a173e366524bfe46e96645ade
|
7
|
+
data.tar.gz: 213e8c14575b0950fc9fda3c24dab6ac5843e170cdb573572dce6225eb4cfe165fcc526b5badf3d8ff01860523a6acc066619fcdc989599538e8ca0789345362
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
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
|
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
|
|
data/lib/yt/audit.rb
CHANGED
@@ -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
|
]
|
data/lib/yt/audit/version.rb
CHANGED
data/yt-audit.gemspec
CHANGED
@@ -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', '~>
|
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.
|
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:
|
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: '
|
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: '
|
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.
|
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
|