yt-audit 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/yt/audit/version.rb +1 -1
- data/lib/yt/audit.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8594dc0bf20e108d230961aad4e689b71876b03f
|
4
|
+
data.tar.gz: 3878206cdf83f73895f035ff08077030e425faae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c63cbc249217242755ae6b86a8dfba002c0106531e5377643476755808794933b1ef925b6c3d5ce43b561d7a29a992bfcee5d3670c00027acd4c644443e460b8
|
7
|
+
data.tar.gz: 0f3c9ae069730d1f232431cd66540c75f55367a85846c6bad898ef9801b1828b4074ef3c6de3990c84870f61e28754a9f15c23637f9c54aade640049d0887c87
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,11 @@ 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.1.5 - 2016.02.17
|
10
|
+
|
11
|
+
* [BUGFIX] Fix `has_end_cards?` for cases when Float `ends_at` is
|
12
|
+
greater than Fixnum `duration`
|
13
|
+
|
9
14
|
## 0.1.4 - 2016.02.17
|
10
15
|
|
11
16
|
* [FEATURE] Add `has_end_cards?`
|
data/lib/yt/audit/version.rb
CHANGED
data/lib/yt/audit.rb
CHANGED
@@ -48,7 +48,7 @@ module Yt
|
|
48
48
|
video_duration = Yt::Video.new(id: video_id).duration
|
49
49
|
Yt::Annotations.for(video_id).any? do |annotation|
|
50
50
|
!annotation.is_a?(Yt::Annotations::Card) && annotation.link &&
|
51
|
-
annotation.ends_at.ceil
|
51
|
+
(annotation.ends_at.floor..annotation.ends_at.ceil).include?(video_duration) &&
|
52
52
|
video_duration - annotation.starts_at > 5
|
53
53
|
end
|
54
54
|
end
|