yt-annotations 1.3.0 → 1.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 873e89e8a51911d5c88c8896ad15d6f05461bdcb
4
- data.tar.gz: 4529e1fd637e9dfeaf88e3196e966730d619f9aa
3
+ metadata.gz: 6e225270c4f544e666c604aa91500a9f48a5232d
4
+ data.tar.gz: 397243cd2a08d33cfa67d0dc41e32dbf4f64ae95
5
5
  SHA512:
6
- metadata.gz: 699bfb04cc2ad9f6ce99e2be37fa02db1696573ca8320b23d9e4e00181b4130a9b8811eab8a504c669033b0f8efc95b42ef11e5e6f5db7ba768e498c07d77125
7
- data.tar.gz: f8a352ab18f2f8d5d95d8c1798f9b3d21a366c8e17c1dbfab19df47ab2ee02fa029a1dcc8df6db1827c86835bec6640ed1403563c90791021b9eacb8d9cf4759
6
+ metadata.gz: 2b5365d9f6d09d19bee5d0494584bf3de3a6e71f0d69add050ce34b00c19b28ba92f9ab9bc01c32570e83795d8270ac291371665d914387f4b6c2407d8c52337
7
+ data.tar.gz: be6d6adf026017c2c29f87f22da7cf4b502de891e13e9e6e69330dbdf3a9709626bb93584dc75fbbebe8353e1d765974c3bdf542e53fa283ba5a966df4635b75
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
+
10
+ ## 1.3.1 - 2016.09.07
11
+
12
+ * [ENHANCEMENT] Fetch 'pause' annotation without errors.
13
+
9
14
  ## 1.3.0 - 2016.07.11
10
15
 
11
16
  * [BUGFIX] Bump Ruby version to 2.2.2 to make it work with ActiveSupport 5
@@ -6,6 +6,7 @@ require 'yt/annotations/note'
6
6
  require 'yt/annotations/speech'
7
7
  require 'yt/annotations/spotlight'
8
8
  require 'yt/annotations/title'
9
+ require 'yt/annotations/pause'
9
10
 
10
11
  module Yt
11
12
  module Annotations
@@ -39,6 +40,7 @@ module Yt
39
40
  else case data['type']
40
41
  when 'card' then Annotations::Card
41
42
  when 'promotion' then Annotations::Featured
43
+ when 'pause' then Annotations::Pause
42
44
  end
43
45
  end
44
46
  end
@@ -0,0 +1,14 @@
1
+ require 'yt/annotations/base'
2
+
3
+ module Yt
4
+ module Annotations
5
+ # A Pause annotation is like a Note annotation with start/end time,
6
+ # but cannot have a link or text.
7
+ class Pause < Note
8
+ private
9
+ def to_link(url)
10
+ nil
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1,5 +1,5 @@
1
1
  module Yt
2
2
  module Annotations
3
- VERSION = '1.3.0'
3
+ VERSION = '1.3.1'
4
4
  end
5
5
  end
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.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-12 00:00:00.000000000 Z
11
+ date: 2016-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -126,6 +126,7 @@ files:
126
126
  - lib/yt/annotations/for.rb
127
127
  - lib/yt/annotations/label.rb
128
128
  - lib/yt/annotations/note.rb
129
+ - lib/yt/annotations/pause.rb
129
130
  - lib/yt/annotations/speech.rb
130
131
  - lib/yt/annotations/spotlight.rb
131
132
  - lib/yt/annotations/title.rb
@@ -151,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
152
  version: '0'
152
153
  requirements: []
153
154
  rubyforge_project:
154
- rubygems_version: 2.4.5.1
155
+ rubygems_version: 2.6.6
155
156
  signing_key:
156
157
  specification_version: 4
157
158
  summary: Fetch annotations and cards from YouTube videos.