supertitle 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/supertitle/read/srt.rb +2 -2
- data/lib/supertitle/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0d8e770a1202f498ac16f69e59a8c621e2ccd04
|
4
|
+
data.tar.gz: 70e11b61d1221456af4ea3f28a18d08596b9f2a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97e2805b17e327f609c2cb8a440fcff5dc55c507d5489aff142df94b5f5755c17675696245ab8e8b9595fbe805b0573ec5818628306a0e9ddc40026f95e3c3e5
|
7
|
+
data.tar.gz: 64688b24ee4e425f377f8746a252f3db525d22caf69ca21feee06269f17090e250b5c005a93fa30f5d1065087f5f1686c3296c439e279a9722527fecf8494003
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Supertitle
|
2
2
|
|
3
|
-
A little gem to help deal with converting between to &
|
3
|
+
A little gem to help deal with converting between to & from various subtitle and
|
4
4
|
transcript formats. Right now it only handles conversion of
|
5
5
|
[SRT](https://en.wikipedia.org/wiki/SubRip#SubRip_text_file_format) files to a
|
6
6
|
text transcript that's more appropriate for being read by humans.
|
data/lib/supertitle/read/srt.rb
CHANGED
@@ -7,8 +7,8 @@ module Supertitle::Read
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def read
|
10
|
-
|
11
|
-
split(
|
10
|
+
@content.
|
11
|
+
split(/\r\n|\n/).
|
12
12
|
chunk { |line| line == "" }. #<- group by every blank line
|
13
13
|
reject { |(blank,_)| blank }. #<- eliminate blank lines
|
14
14
|
map { |(_, components)|
|
data/lib/supertitle/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: supertitle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Searls
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.6.12
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: Converts between subtitles & transcripts
|