srt 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +4 -0
- data/lib/srt/file.rb +1 -0
- data/lib/srt/version.rb +1 -1
- data/spec/file_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjNjZmQyOWE3OTQzNjg5YzdlYjM4Zjk2ZGMzNzU2YzdiN2IyZjBlZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWIwZDk0MDFjOTVlM2ZhZjMxNDE2NTdmYTUxYzJmZTgwZTI5MDRjNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDlhNmM2NWMzNjhlMzIzODkxMDMxNDU2OTBiZDFmZGRiNjA0YWJlM2IzMzVi
|
10
|
+
ZjkwYzc4NmQ2NzJjOWE1OWIxODE0ZTE1ZGIxNmFmYTJkY2U4OGY4MjBjZmUz
|
11
|
+
ZTUwOWYzYTY3Yzc3NzYzNjQ4NjhhOTEzOGM0ZDE5N2U3N2M4MTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzFiZDYxYWQwNzhkZjI4MzI2N2U0MjQ1NDU5NWY2YWI3ZGYyZjM0MzFiMGRk
|
14
|
+
NWVhMDA3YzY1OGU2ZGQ5MGFkY2ZiMjcxOTgwMDQxZTBiNDU5OTU5YTA0MWZk
|
15
|
+
ZTFlMzM3NmFkZGYzYTgyOTI5MDhlYTI1ZmI2MjA4YzA1MDc3NzQ=
|
data/.travis.yml
CHANGED
data/lib/srt/file.rb
CHANGED
data/lib/srt/version.rb
CHANGED
data/spec/file_spec.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: UTF-8
|
1
2
|
require 'spec_helper'
|
2
3
|
require 'srt'
|
3
4
|
|
@@ -72,6 +73,11 @@ describe SRT::File do
|
|
72
73
|
it "should have no errors" do
|
73
74
|
expect(file.errors).to be_empty
|
74
75
|
end
|
76
|
+
|
77
|
+
it "should convert some dubious UTF-8 encodings" do
|
78
|
+
first_line = file.lines.first.text.join(" ")
|
79
|
+
expect(first_line).to eq("<i>Nadie habría creído en los primeros años del siglo 21...</i>")
|
80
|
+
end
|
75
81
|
end
|
76
82
|
|
77
83
|
context "when parsing a dummy SRT file containing display coordinates" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: srt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Petersen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|