titlekit 1.2.0 → 1.2.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 +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +1 -1
- data/LICENSE +1 -1
- data/README.md +2 -4
- data/lib/titlekit/have.rb +0 -1
- data/lib/titlekit/job.rb +1 -1
- data/lib/titlekit/version.rb +1 -1
- data/spec/automatic_grouping/automatic_grouping_spec.rb +4 -4
- data/spec/format_conversion/format_conversion_spec.rb +8 -8
- data/spec/job_spec.rb +4 -4
- data/spec/simultaneous_subtitles/simultaneous_subtitles_spec.rb +18 -18
- data/spec/simultaneous_subtitles/triple_plus/ass/expected.ass +34 -34
- data/spec/simultaneous_subtitles/triple_plus/ass/out.ass +34 -34
- data/spec/simultaneous_subtitles/triple_plus/srt/expected.srt +34 -34
- data/spec/simultaneous_subtitles/triple_plus/srt/out.srt +34 -34
- data/spec/simultaneous_subtitles/triple_plus/ssa/expected.ssa +34 -34
- data/spec/simultaneous_subtitles/triple_plus/ssa/out.ssa +34 -34
- data/spec/spec_helper.rb +1 -0
- data/spec/timecode_correction/timecode_correction_spec.rb +8 -9
- data/spec/transcoding/transcoding_spec.rb +7 -7
- data/titlekit.gemspec +3 -3
- metadata +18 -18
@@ -24,11 +24,11 @@ describe Titlekit::Job do
|
|
24
24
|
want.encoding('UTF-8')
|
25
25
|
want.file(@out)
|
26
26
|
|
27
|
-
expect(job.run).to
|
27
|
+
expect(job.run).to be true
|
28
28
|
end
|
29
29
|
|
30
30
|
it 'delivers the expected output' do
|
31
|
-
expect(FileUtils.compare_file(@out, @expected)).to
|
31
|
+
expect(FileUtils.compare_file(@out, @expected)).to be true
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -52,11 +52,11 @@ describe Titlekit::Job do
|
|
52
52
|
want.encoding('UTF-8')
|
53
53
|
want.file(@out)
|
54
54
|
|
55
|
-
expect(job.run).to
|
55
|
+
expect(job.run).to be true
|
56
56
|
end
|
57
57
|
|
58
58
|
it 'delivers the expected output' do
|
59
|
-
expect(FileUtils.compare_file(@out, @expected)).to
|
59
|
+
expect(FileUtils.compare_file(@out, @expected)).to be true
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
@@ -80,11 +80,11 @@ describe Titlekit::Job do
|
|
80
80
|
want.encoding('GBK')
|
81
81
|
want.file(@out)
|
82
82
|
|
83
|
-
expect(job.run).to
|
83
|
+
expect(job.run).to be true
|
84
84
|
end
|
85
85
|
|
86
86
|
it 'delivers the expected output' do
|
87
|
-
expect(FileUtils.compare_file(@out, @expected)).to
|
87
|
+
expect(FileUtils.compare_file(@out, @expected)).to be true
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
@@ -108,7 +108,7 @@ describe Titlekit::Job do
|
|
108
108
|
want.encoding('ASCII')
|
109
109
|
want.file(@out)
|
110
110
|
|
111
|
-
expect(job.run).to
|
111
|
+
expect(job.run).to be false
|
112
112
|
expect(job.report.join).to include('Failure while transcoding')
|
113
113
|
end
|
114
114
|
end
|
data/titlekit.gemspec
CHANGED
@@ -2,13 +2,13 @@ require File.expand_path('../lib/titlekit/version', __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'titlekit'
|
5
|
-
spec.summary = 'Featureful Ruby
|
6
|
-
spec.description = 'Featureful Ruby
|
5
|
+
spec.summary = 'Featureful Ruby library for SRT / ASS / SSA subtitles'
|
6
|
+
spec.description = 'Featureful Ruby library for SRT / ASS / SSA subtitles'
|
7
7
|
|
8
8
|
spec.homepage = 'https://github.com/simonrepp/titlekit'
|
9
9
|
|
10
10
|
spec.author = 'Simon Repp'
|
11
|
-
spec.email = 'simon@
|
11
|
+
spec.email = 'simon@fdpl.foundation'
|
12
12
|
|
13
13
|
spec.license = 'MIT'
|
14
14
|
|
metadata
CHANGED
@@ -1,80 +1,80 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: titlekit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Repp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rchardet19
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: treetop
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description: Featureful Ruby
|
70
|
-
email: simon@
|
69
|
+
description: Featureful Ruby library for SRT / ASS / SSA subtitles
|
70
|
+
email: simon@fdpl.foundation
|
71
71
|
executables:
|
72
72
|
- titlekit
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- .gitignore
|
77
|
-
- .travis.yml
|
76
|
+
- ".gitignore"
|
77
|
+
- ".travis.yml"
|
78
78
|
- Gemfile
|
79
79
|
- LICENSE
|
80
80
|
- README.md
|
@@ -201,20 +201,20 @@ require_paths:
|
|
201
201
|
- lib
|
202
202
|
required_ruby_version: !ruby/object:Gem::Requirement
|
203
203
|
requirements:
|
204
|
-
- -
|
204
|
+
- - ">="
|
205
205
|
- !ruby/object:Gem::Version
|
206
206
|
version: 2.0.0
|
207
207
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
208
|
requirements:
|
209
|
-
- -
|
209
|
+
- - ">="
|
210
210
|
- !ruby/object:Gem::Version
|
211
211
|
version: '0'
|
212
212
|
requirements: []
|
213
213
|
rubyforge_project:
|
214
|
-
rubygems_version: 2.
|
214
|
+
rubygems_version: 2.4.6
|
215
215
|
signing_key:
|
216
216
|
specification_version: 4
|
217
|
-
summary: Featureful Ruby
|
217
|
+
summary: Featureful Ruby library for SRT / ASS / SSA subtitles
|
218
218
|
test_files:
|
219
219
|
- spec/ass_spec.rb
|
220
220
|
- spec/automatic_grouping/automatic_grouping_spec.rb
|