subtitle 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/vtt.rb +2 -2
- metadata +31 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5c9fde23f9d4f30c168b454b3f9d32de58e44dbcd5ff371d501db7f1ef1c4a52
|
4
|
+
data.tar.gz: 3aa9a15df33803178103cca45dad2fee31c43de74313e4bf3e4cf114ec59dc11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d3367daf891ffdaacfa63747db38f3e8386f2c57b96bd80d72805a735bfb6d69dc11a6770cb4fd82e2b5933cd934dfe716e2a5c0eeee274e50ef437fbaa242e
|
7
|
+
data.tar.gz: 1b5a20c5ae3c0bec2fe974d79c49075a906d0b75e8ab8eb3321daa539d5ee81ed3616cb8ecad5c1314cbd526ef112cd8e20fe4ca91ced3ba7288bdd6037b7b8d
|
data/lib/vtt.rb
CHANGED
@@ -25,7 +25,7 @@ class VTT
|
|
25
25
|
text_collection = false
|
26
26
|
text_sample = ""
|
27
27
|
ccfile.each_line do | line |
|
28
|
-
if line =~ /^
|
28
|
+
if line =~ /^[\d\d:]?\d\d:\d\d[,.]\d\d\d.*-->.*[\d\d:]?\d\d:\d\d[,.]\d\d\d/
|
29
29
|
text_collection = true
|
30
30
|
outfile.puts line
|
31
31
|
elsif line.strip.empty? && !text_sample.empty?
|
@@ -98,7 +98,7 @@ class VTT
|
|
98
98
|
text_collection = false
|
99
99
|
text_sample = ""
|
100
100
|
ccfile.each_line do |line|
|
101
|
-
if line =~ /^
|
101
|
+
if line =~ /^[\d\d:]?\d\d:\d\d[,.]\d\d\d.*-->.*[\d\d:]?\d\d:\d\d[,.]\d\d\d/
|
102
102
|
text_collection = true
|
103
103
|
elsif line.strip.empty?
|
104
104
|
text_collection = false
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subtitle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maheshwaran G
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-11-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -25,6 +25,20 @@ dependencies:
|
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '2.0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: nokogiri
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - '='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 1.10.4
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 1.10.4
|
28
42
|
- !ruby/object:Gem::Dependency
|
29
43
|
name: aws-sdk
|
30
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,6 +53,20 @@ dependencies:
|
|
39
53
|
- - "~>"
|
40
54
|
- !ruby/object:Gem::Version
|
41
55
|
version: '2.11'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rake
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '10.0'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '10.0'
|
42
70
|
description: Subtitle gem helps you to detect language and translate closed caption
|
43
71
|
to required language.
|
44
72
|
email:
|
@@ -79,8 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
107
|
- !ruby/object:Gem::Version
|
80
108
|
version: '0'
|
81
109
|
requirements: []
|
82
|
-
|
83
|
-
rubygems_version: 2.5.1
|
110
|
+
rubygems_version: 3.0.3
|
84
111
|
signing_key:
|
85
112
|
specification_version: 4
|
86
113
|
summary: Subtitle gem helps you to detect language and translate closed caption to
|