supertitle 0.1.0 → 0.1.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: 713fec15bde9a989fc0c1f50d32210ec0afe8d73
4
- data.tar.gz: 6a53c1ecd16666f684ad95bddf8d7c7ed85d0455
3
+ metadata.gz: c0d8e770a1202f498ac16f69e59a8c621e2ccd04
4
+ data.tar.gz: 70e11b61d1221456af4ea3f28a18d08596b9f2a3
5
5
  SHA512:
6
- metadata.gz: 32a7bcdaf6d5417dae70883cd06d9bb23467caa72ed3a749d0d1dc84108f4725ea4a0ebadcddccb4bac4122ce78f4ba00dd3da319a26b45215ccdd15b7e22688
7
- data.tar.gz: 99971b804e9166de8d3762b32f180bfb4070b17397e5b356f64f90a4a841fa510867612483a7dda6405c6a35c46d2aff630c699d3c4ca85d1f107e8464f32f77
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 & fro various subtitle and
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.
@@ -7,8 +7,8 @@ module Supertitle::Read
7
7
  end
8
8
 
9
9
  def read
10
- lines = @content.
11
- split("\n").
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)|
@@ -1,3 +1,3 @@
1
1
  module Supertitle
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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: 2016-12-01 00:00:00.000000000 Z
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.5.1
113
+ rubygems_version: 2.6.12
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Converts between subtitles & transcripts