srt 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/srt/file.rb +3 -3
- data/lib/srt/version.rb +1 -1
- metadata +23 -11
- checksums.yaml +0 -7
data/lib/srt/file.rb
CHANGED
@@ -30,12 +30,12 @@ module SRT
|
|
30
30
|
if mres = str.match(/(?<start_timecode>[^[[:space:]]]+) -+> (?<end_timecode>[^[[:space:]]]+) ?(?<display_coordinates>X1:\d+ X2:\d+ Y1:\d+ Y2:\d+)?/)
|
31
31
|
|
32
32
|
if (line.start_time = SRT::File.parse_timecode(mres["start_timecode"])) == nil
|
33
|
-
line.error = "#{
|
33
|
+
line.error = "#{index}, Invalid formatting of start timecode, [#{mres["start_timecode"]}]"
|
34
34
|
$stderr.puts line.error
|
35
35
|
end
|
36
36
|
|
37
37
|
if (line.end_time = SRT::File.parse_timecode(mres["end_timecode"])) == nil
|
38
|
-
line.error = "#{
|
38
|
+
line.error = "#{index}, Invalid formatting of end timecode, [#{mres["end_timecode"]}]"
|
39
39
|
$stderr.puts line.error
|
40
40
|
end
|
41
41
|
|
@@ -43,7 +43,7 @@ module SRT
|
|
43
43
|
line.display_coordinates = mres["display_coordinates"]
|
44
44
|
end
|
45
45
|
else
|
46
|
-
line.error = "#{
|
46
|
+
line.error = "#{index}, Invalid Time Line formatting, [#{str}]"
|
47
47
|
$stderr.puts line.error
|
48
48
|
end
|
49
49
|
else
|
data/lib/srt/version.rb
CHANGED
metadata
CHANGED
@@ -1,41 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: srt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Christopher Petersen
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-
|
12
|
+
date: 2013-08-02 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rake
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- - '>='
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '0'
|
20
22
|
type: :development
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- - '>='
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0'
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: rspec
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
|
-
- - '>='
|
35
|
+
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
33
37
|
version: '0'
|
34
38
|
type: :development
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
|
-
- - '>='
|
43
|
+
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
40
45
|
version: '0'
|
41
46
|
description: Ruby gem for parsing srt (subtitle) files. SRT stands for SubRip text
|
@@ -65,26 +70,33 @@ files:
|
|
65
70
|
- srt.gemspec
|
66
71
|
homepage: https://github.com/cpetersen/srt
|
67
72
|
licenses: []
|
68
|
-
metadata: {}
|
69
73
|
post_install_message:
|
70
74
|
rdoc_options: []
|
71
75
|
require_paths:
|
72
76
|
- lib
|
73
77
|
required_ruby_version: !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
74
79
|
requirements:
|
75
|
-
- - '>='
|
80
|
+
- - ! '>='
|
76
81
|
- !ruby/object:Gem::Version
|
77
82
|
version: '0'
|
83
|
+
segments:
|
84
|
+
- 0
|
85
|
+
hash: -455267047337616811
|
78
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
79
88
|
requirements:
|
80
|
-
- - '>='
|
89
|
+
- - ! '>='
|
81
90
|
- !ruby/object:Gem::Version
|
82
91
|
version: '0'
|
92
|
+
segments:
|
93
|
+
- 0
|
94
|
+
hash: -455267047337616811
|
83
95
|
requirements: []
|
84
96
|
rubyforge_project:
|
85
|
-
rubygems_version:
|
97
|
+
rubygems_version: 1.8.23
|
86
98
|
signing_key:
|
87
|
-
specification_version:
|
99
|
+
specification_version: 3
|
88
100
|
summary: Ruby gem for parsing subtitle files.
|
89
101
|
test_files:
|
90
102
|
- spec/blackswan-part1.srt
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 226ede0afdafbb23daefe624ec7becc9460ed027
|
4
|
-
data.tar.gz: 010fd1033ada594a51cce591d0c0fc7f430ebaa1
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 3629bbcef44c932ae1b458ad73fe7339fbcd9aa06d8b297955d76bb075691237d759c2631d112f947e1331504bb135bb8d38c6643f41db7a38b267e05eb4789c
|
7
|
-
data.tar.gz: ab882c03bfa03565304ab707352442ecccd3ac0191d3eea1f7d86bf15b661cf1d893880979af730fd73097e98dc5617bbcdf49c463f96b5b169248ac2f1840dc
|