webvtt-ruby 0.2.3 → 0.2.4
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/lib/parser.rb +0 -3
- data/lib/segmenter.rb +2 -3
- data/lib/webvtt.rb +5 -0
- data/webvtt-ruby.gemspecs +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15bbe1e879056600fd02bf628d0b182d38e7a391
|
4
|
+
data.tar.gz: 1502c8c4e85f67547b821143c7b0f6088025969a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3e87c0819971ae9c28bb7b10d1bc6544a166cdfdc6aae0fa85d9142d0335fab15d91dd21072bfd46aa32bcbfbc31ee60378eb85d158d2716ab03fc41da1acdb
|
7
|
+
data.tar.gz: c94bd323d9558d68e21c3619617d362227a6a408610f52aeaf71243a776b850f0a665ad9df2435bd091307cbfde846beb5f2a4f09bc42a892c6c1d684f4e32b7
|
data/lib/parser.rb
CHANGED
data/lib/segmenter.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
module WebVTT
|
2
2
|
|
3
|
-
class InputError < RuntimeError; end
|
4
|
-
|
5
3
|
def self.segment(input, options={})
|
6
4
|
if input.is_a?(String)
|
7
5
|
input = File.new(input)
|
@@ -112,7 +110,8 @@ module WebVTT
|
|
112
110
|
header = @webvtt.header
|
113
111
|
|
114
112
|
if !header.include?("X-TIMESTAMP-MAP")
|
115
|
-
|
113
|
+
# FIXME: the value should be configurable
|
114
|
+
header << "\nX-TIMESTAMP-MAP=MPEGTS:900000,LOCAL:00:00:00.000"
|
116
115
|
end
|
117
116
|
|
118
117
|
content = [header, f.map{|c| c.to_webvtt }.join("\n\n")].join("\n\n")
|
data/lib/webvtt.rb
CHANGED
data/webvtt-ruby.gemspecs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'webvtt-ruby'
|
3
|
-
s.version = '0.2.
|
3
|
+
s.version = '0.2.4'
|
4
4
|
s.summary = "WebVTT parser and segmenter in ruby"
|
5
5
|
s.description = "WebVTT parser and segmenter in ruby for HTML5 and HTTP Live Streaming (HLS)."
|
6
6
|
s.authors = ["Bruno Celeste"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webvtt-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno Celeste
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: WebVTT parser and segmenter in ruby for HTML5 and HTTP Live Streaming
|
14
14
|
(HLS).
|
@@ -18,7 +18,7 @@ executables:
|
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
-
- .gitignore
|
21
|
+
- ".gitignore"
|
22
22
|
- Gemfile
|
23
23
|
- LICENSE
|
24
24
|
- README.md
|
@@ -47,17 +47,17 @@ require_paths:
|
|
47
47
|
- lib
|
48
48
|
required_ruby_version: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
|
-
- -
|
50
|
+
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '0'
|
53
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
|
-
- -
|
55
|
+
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: '0'
|
58
58
|
requirements: []
|
59
59
|
rubyforge_project:
|
60
|
-
rubygems_version: 2.
|
60
|
+
rubygems_version: 2.2.2
|
61
61
|
signing_key:
|
62
62
|
specification_version: 4
|
63
63
|
summary: WebVTT parser and segmenter in ruby
|