yt-annotations 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +5 -5
- data/lib/yt/annotations/for.rb +1 -1
- data/lib/yt/annotations/version.rb +1 -1
- data/yt-annotations.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b2044233a4b1e7bb78a37c6b7eaf4fcaaaf06aa8
|
|
4
|
+
data.tar.gz: dcf59417f82b6e6413264574dc710278df4947f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea7442ab080e171ec205a66d3a51c441d4c0949290481cf9eab22f26101f6323255b3ab8d967f4c63893610d8e45a733d654c3660a87fe1c288d3b14c4c7084d
|
|
7
|
+
data.tar.gz: bb325d5b61e0e01ae4f3122ccc2aaa7e49ff095f14f1af7d8bb2e84396c55d3c253dc5abe1253dd01c31a5549344849a459156c06b48535fae652fc5ee0cb087
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
+
## 1.2.3 - 2016.06.09
|
|
10
|
+
|
|
11
|
+
* [BUGFIX] Don't raise errors on `Yt::Annotations.for` for some videos in Barbie channel
|
|
12
|
+
|
|
9
13
|
## 1.2.2 - 2016.05.16
|
|
10
14
|
|
|
11
15
|
* [BUGFIX] Do not raise errors from videos with info cards.
|
data/README.md
CHANGED
|
@@ -3,12 +3,12 @@ A Ruby gem to fetch YouTube annotations
|
|
|
3
3
|
|
|
4
4
|
Yt::Annotations is a Ruby library to fetch annotations and cards of YouTube videos.
|
|
5
5
|
|
|
6
|
-
The **source code** is available on [GitHub](https://github.com/
|
|
6
|
+
The **source code** is available on [GitHub](https://github.com/fullscreen/yt-annotations) and the **documentation** on [RubyDoc](http://www.rubydoc.info/github/fullscreen/yt-annotations/Yt/Annotations).
|
|
7
7
|
|
|
8
|
-
[](https://travis-ci.org/Fullscreen/yt-annotations)
|
|
9
|
+
[](https://coveralls.io/r/Fullscreen/yt-annotations)
|
|
10
|
+
[](https://gemnasium.com/Fullscreen/yt-annotations)
|
|
11
|
+
[](https://codeclimate.com/github/Fullscreen/yt-annotations)
|
|
12
12
|
[](http://www.rubydoc.info/gems/yt-annotations/Yt/Annotations)
|
|
13
13
|
[](http://rubygems.org/gems/yt-annotations)
|
|
14
14
|
|
data/lib/yt/annotations/for.rb
CHANGED
|
@@ -51,7 +51,7 @@ module Yt
|
|
|
51
51
|
highlights, others = annotations.partition{|a| a['type'] == 'highlight'}
|
|
52
52
|
highlights.each do |highlight|
|
|
53
53
|
match = others.find do |a|
|
|
54
|
-
a
|
|
54
|
+
(a['segment'] || {})['spaceRelative'] == highlight['id']
|
|
55
55
|
end
|
|
56
56
|
match.merge! highlight if match
|
|
57
57
|
end
|
data/yt-annotations.gemspec
CHANGED
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
spec.summary = %q{Fetch annotations and cards from YouTube videos.}
|
|
13
13
|
spec.description = %q{A Ruby library to retrieve every type of annotation from
|
|
14
14
|
any YouTube video, including branding, featured content and info cards.}
|
|
15
|
-
spec.homepage = 'https://github.com/
|
|
15
|
+
spec.homepage = 'https://github.com/fullscreen/yt-annotations'
|
|
16
16
|
spec.license = 'MIT'
|
|
17
17
|
|
|
18
18
|
spec.required_ruby_version = '>= 2.0'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yt-annotations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- claudiob
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-06-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -131,7 +131,7 @@ files:
|
|
|
131
131
|
- lib/yt/annotations/title.rb
|
|
132
132
|
- lib/yt/annotations/version.rb
|
|
133
133
|
- yt-annotations.gemspec
|
|
134
|
-
homepage: https://github.com/
|
|
134
|
+
homepage: https://github.com/fullscreen/yt-annotations
|
|
135
135
|
licenses:
|
|
136
136
|
- MIT
|
|
137
137
|
metadata: {}
|