vtt2ass 0.2.2 → 0.2.3

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
  SHA256:
3
- metadata.gz: 5b8d61e8c97eae4983b1b8b3011817d8ceaf12381a60c5ba3dfbf51e5c84ffc7
4
- data.tar.gz: a2777f056b947249330e7f4b828172eb5e9f90d11939fcfa44c9213a5d2ac86e
3
+ metadata.gz: 061b3d7694d3decb80b649ab5a069339c17004bd6f4db37d7922a994d45d9dc8
4
+ data.tar.gz: de903fad378c9e804fe48b746ef0ccbdeb6b6957ce342e32d935417f4c1917f4
5
5
  SHA512:
6
- metadata.gz: e5c15a86a9706ea9a521ee6e719cdeb2d99e7b394df7800bd6862385e20cc8b779e63a0929b6ddf700f742b48cb07a258f01e7eda5256732331be7bc7f879995
7
- data.tar.gz: 1b6a6da137d123e0aeca34963d8dcc1aeacc437666f1f277efe12d9747f83edc16add7ab399030017d57901d04bfceed7ac3e0caaecff10c6042577265ef03dc
6
+ metadata.gz: 97dbb70be67d5e0542a5f3c93e0405e99f0fd21c977187e1255b90373cff95a8cc2fe6e10727153ddffe83a7e0103c5eb25784c9d4d1ffdad7b02a25319e09e0
7
+ data.tar.gz: af521ea9ee5e80438d6fe4cc5949e888eefae23b0751f907c01a91a8547b454487f97770c2a2dd9cc2638457affab13786539aaa7324d4178ee97361c57cac1b
@@ -16,8 +16,8 @@ class Application
16
16
  # Creates a new Application instance.
17
17
  # It receives +options+ that can define the input and output directories.
18
18
  def initialize(options)
19
- @input_dir = options[:input] ? options[:input]: "./input"
20
- @output_dir = options[:output] ? options[:output]: "./output"
19
+ @input_dir = options[:input] ? options[:input].gsub('\\', '/') : "./input"
20
+ @output_dir = options[:output] ? options[:output].gsub('\\', '/') : "./output"
21
21
  @width = 1920
22
22
  @height = 1080
23
23
  @font_size = options[:font_size] ? options[:font_size] : 52
@@ -44,7 +44,7 @@ class Application
44
44
  # It outputs a list named list_paragraph.
45
45
  def readVTTFile(file_path)
46
46
  list_parapraph = []
47
- separator = OS.linux? ? "\r\n\r\n": "\n\n"
47
+ separator = OS.posix? ? "\r\n\r\n": "\n\n"
48
48
  File.foreach(file_path, separator) do |paragraph|
49
49
  paragraph = paragraph.rstrip.gsub(/\r\n/, "\n")
50
50
  if not paragraph.eql? "" then
@@ -1,3 +1,3 @@
1
1
  module Vtt2ass
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vtt2ass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Louis-Philippe Fortin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-13 00:00:00.000000000 Z
11
+ date: 2021-02-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: