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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 20370ef1252c22d1d5d21298ca8b121863a774c9
4
- data.tar.gz: 1d13aff30935f1be315d869c9507990f1643688e
3
+ metadata.gz: 8594dc0bf20e108d230961aad4e689b71876b03f
4
+ data.tar.gz: 3878206cdf83f73895f035ff08077030e425faae
5
5
  SHA512:
6
- metadata.gz: d2b55c53a96d283c0c14d8c8308e01f5671819e00a84c6569a52070258eb3ca01609d1b526094e3cd60e7e7cc0d5053fc169ecab9beb6ba76ad58409b66bf8f6
7
- data.tar.gz: 54fed6b319432abeed3bf11eadc64219f8832b13dce7218b3d5ed8f817a6c6294c41151393e59026d69819a60e2f6265053e05ebbc74fb45697fb51d48ce755b
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?`
@@ -1,5 +1,5 @@
1
1
  module Yt
2
2
  module Audit
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
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 == video_duration &&
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
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.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kang-Kyu Lee