yt-annotations 1.2.2 → 1.2.3

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: 37ba3cf90c0e0f4e1a0ec24a8b9f394b45105521
4
- data.tar.gz: 03bcc3dc7a37ca76b99756a8b9373bd4f3d2f7d4
3
+ metadata.gz: b2044233a4b1e7bb78a37c6b7eaf4fcaaaf06aa8
4
+ data.tar.gz: dcf59417f82b6e6413264574dc710278df4947f0
5
5
  SHA512:
6
- metadata.gz: aeeca0a38215951bd3838e48ce9a8ca0b7f97aa8970c786bac8868d73d0f09bd6906de5af4dc1cad76af07578e56e96403b1044c4c34122d23032bdae24f9f42
7
- data.tar.gz: 532e34c8ca14c89e6697020b973feefeacd4d5f06db3f71be5d4b001a0f2e89e11df5ccb5c43414b4f13db695f844962fc0c62bfc7a6ed7a542947b0b110873f
6
+ metadata.gz: ea7442ab080e171ec205a66d3a51c441d4c0949290481cf9eab22f26101f6323255b3ab8d967f4c63893610d8e45a733d654c3660a87fe1c288d3b14c4c7084d
7
+ data.tar.gz: bb325d5b61e0e01ae4f3122ccc2aaa7e49ff095f14f1af7d8bb2e84396c55d3c253dc5abe1253dd01c31a5549344849a459156c06b48535fae652fc5ee0cb087
@@ -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/claudiob/yt-annotations) and the **documentation** on [RubyDoc](http://www.rubydoc.info/github/claudiob/yt-annotations/Yt/Annotations).
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
- [![Build Status](http://img.shields.io/travis/claudiob/yt-annotations/master.svg)](https://travis-ci.org/claudiob/yt-annotations)
9
- [![Coverage Status](http://img.shields.io/coveralls/claudiob/yt-annotations/master.svg)](https://coveralls.io/r/claudiob/yt-annotations)
10
- [![Dependency Status](http://img.shields.io/gemnasium/claudiob/yt-annotations.svg)](https://gemnasium.com/claudiob/yt-annotations)
11
- [![Code Climate](http://img.shields.io/codeclimate/github/claudiob/yt-annotations.svg)](https://codeclimate.com/github/claudiob/yt-annotations)
8
+ [![Build Status](http://img.shields.io/travis/Fullscreen/yt-annotations/master.svg)](https://travis-ci.org/Fullscreen/yt-annotations)
9
+ [![Coverage Status](http://img.shields.io/coveralls/Fullscreen/yt-annotations/master.svg)](https://coveralls.io/r/Fullscreen/yt-annotations)
10
+ [![Dependency Status](http://img.shields.io/gemnasium/Fullscreen/yt-annotations.svg)](https://gemnasium.com/Fullscreen/yt-annotations)
11
+ [![Code Climate](http://img.shields.io/codeclimate/github/Fullscreen/yt-annotations.svg)](https://codeclimate.com/github/Fullscreen/yt-annotations)
12
12
  [![Online docs](http://img.shields.io/badge/docs-✓-green.svg)](http://www.rubydoc.info/gems/yt-annotations/Yt/Annotations)
13
13
  [![Gem Version](http://img.shields.io/gem/v/yt-annotations.svg)](http://rubygems.org/gems/yt-annotations)
14
14
 
@@ -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.fetch('segment', {})['spaceRelative'] == highlight['id']
54
+ (a['segment'] || {})['spaceRelative'] == highlight['id']
55
55
  end
56
56
  match.merge! highlight if match
57
57
  end
@@ -1,5 +1,5 @@
1
1
  module Yt
2
2
  module Annotations
3
- VERSION = '1.2.2'
3
+ VERSION = '1.2.3'
4
4
  end
5
5
  end
@@ -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/claudiob/yt-annotations'
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.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-05-16 00:00:00.000000000 Z
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/claudiob/yt-annotations
134
+ homepage: https://github.com/fullscreen/yt-annotations
135
135
  licenses:
136
136
  - MIT
137
137
  metadata: {}