subtitle_it 0.7.7 → 1.5.0
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.
- data/License.txt +2 -2
- data/README.txt +31 -24
- data/Rakefile +21 -4
- data/VERSION +1 -0
- data/bin/subtitle_it +25 -20
- data/lib/subtitle_it/formats/ass.rb +1 -1
- data/lib/subtitle_it/formats/mpl.rb +4 -4
- data/lib/subtitle_it/formats/rsb.rb +9 -9
- data/lib/subtitle_it/formats/sub.rb +16 -15
- data/lib/subtitle_it/formats/xml.rb +5 -5
- data/lib/subtitle_it/languages.rb +14 -10
- data/lib/subtitle_it/movie.rb +1 -2
- data/lib/subtitle_it/subdown.rb +52 -33
- data/lib/subtitle_it/subtime.rb +19 -15
- data/lib/subtitle_it/version.rb +3 -3
- data/lib/subtitle_it.rb +9 -0
- data/spec/fixtures/pseudo.rsb +2 -2
- data/spec/spec_helper.rb +2 -8
- data/spec/subtitle_it/formats/sub_spec.rb +15 -15
- data/spec/subtitle_it/formats/xml_spec.rb +24 -24
- data/spec/subtitle_it/subdown_spec.rb +76 -36
- data/subtitle_it.gemspec +110 -24
- metadata +53 -44
- data/.autotest +0 -19
- data/README.markdown +0 -41
- data/spec/spec.opts +0 -1
data/spec/spec_helper.rb
CHANGED
@@ -1,10 +1,4 @@
|
|
1
|
-
|
2
|
-
require 'spec'
|
3
|
-
rescue LoadError
|
4
|
-
require 'rubygems'
|
5
|
-
gem 'rspec'
|
6
|
-
require 'spec'
|
7
|
-
end
|
1
|
+
require 'rspec'
|
8
2
|
|
9
3
|
$:.unshift(File.dirname(__FILE__) + '/../lib')
|
10
4
|
require 'subtitle_it'
|
@@ -68,4 +62,4 @@ class Hash
|
|
68
62
|
def only(*keys)
|
69
63
|
self.reject { |k,v| !keys.include?(k || k.to_sym) }
|
70
64
|
end
|
71
|
-
end
|
65
|
+
end
|
@@ -3,41 +3,41 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
|
3
3
|
describe Formats, ".sub" do
|
4
4
|
include SubFixtures
|
5
5
|
describe "Parse" do
|
6
|
-
|
6
|
+
|
7
7
|
before(:each) do
|
8
|
-
@sub = Subtitle.new({:dump => sub_fixture, :format => 'sub'})
|
9
|
-
end
|
8
|
+
@sub = Subtitle.new({:dump => sub_fixture, :format => 'sub'})
|
9
|
+
end
|
10
10
|
|
11
11
|
it "should parse the sub to an array" do
|
12
12
|
@sub.lines.should be_instance_of(Array)
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
15
|
it "should have N lines" do
|
16
|
-
@sub.should have(2025).lines
|
16
|
+
@sub.should have(2025).lines
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
it "should have a nic text on" do
|
20
20
|
@sub.lines[110].time_on.to_s.should eql('00:10:44.936')
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
it "should have a nice text out" do
|
24
24
|
@sub.lines[110].time_off.to_s.should eql('00:10:49.941')
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
it "should parse the sentece correctly" do
|
28
28
|
@sub.lines[0].text.should eql("You always say that.|The same thing every time.")
|
29
|
-
end
|
30
|
-
|
29
|
+
end
|
30
|
+
|
31
31
|
it "should parse the sentece correctly" do
|
32
32
|
@sub.lines[2020].text.should eql("I'm tryin' real hard...")
|
33
33
|
end
|
34
34
|
end
|
35
|
-
|
35
|
+
|
36
36
|
describe "Out" do
|
37
37
|
|
38
38
|
before(:each) do
|
39
|
-
@sub = Subtitle.new({:dump => yml_fixture, :format => 'yml'})
|
40
|
-
end
|
39
|
+
@sub = Subtitle.new({:dump => yml_fixture, :format => 'yml'})
|
40
|
+
end
|
41
41
|
|
42
42
|
it "should dump the object as a SUB" do
|
43
43
|
@sub.to_sub.should eql("{7816}{7864}worth killing for...
|
@@ -45,5 +45,5 @@ describe Formats, ".sub" do
|
|
45
45
|
{10069}{10141}worth going to the hell for...
|
46
46
|
{10069}{10141}worth going a | line...\n")
|
47
47
|
end
|
48
|
-
end
|
49
|
-
end
|
48
|
+
end
|
49
|
+
end
|
@@ -2,46 +2,46 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
|
2
2
|
|
3
3
|
describe Formats, ".xml" do
|
4
4
|
include SubFixtures
|
5
|
-
describe "In" do
|
6
|
-
before(:each) do
|
7
|
-
@xml = Subtitle.new({:dump => xml_fixture, :format => 'xml'})
|
8
|
-
end
|
9
|
-
|
5
|
+
describe "In" do
|
6
|
+
before(:each) do
|
7
|
+
@xml = Subtitle.new({:dump => xml_fixture, :format => 'xml'})
|
8
|
+
end
|
9
|
+
|
10
10
|
it "should parse the sub to an array" do
|
11
11
|
@xml.lines.should be_instance_of(Array)
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
it "should have N lines" do
|
15
|
-
@xml.should have(13).lines
|
15
|
+
@xml.should have(13).lines
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
it "should parse time of" do
|
19
19
|
@xml.lines[0].time_on.to_s.should eql("00:00:00.000")
|
20
|
-
@xml.lines[10].time_on.to_s.should eql("00:00:25.520")
|
20
|
+
@xml.lines[10].time_on.to_s.should eql("00:00:25.520")
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
it "should parse time of" do
|
24
24
|
@xml.lines[0].time_off.to_s.should eql("00:00:03.700")
|
25
|
-
@xml.lines[10].time_off.to_s.should eql("00:00:27.520")
|
25
|
+
@xml.lines[10].time_off.to_s.should eql("00:00:27.520")
|
26
26
|
end
|
27
|
-
|
27
|
+
|
28
28
|
it "should parse text" do
|
29
|
-
@xml.lines[0].text.should eql("I had just joined <span tts:
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
describe "Out" do
|
34
|
-
before(:each) do
|
35
|
-
@sub = Subtitle.new({:dump => yml_fixture, :format => 'yml'})
|
36
|
-
end
|
37
|
-
|
29
|
+
@xml.lines[0].text.should eql("I had just joined <span tts:fontFamily=\"monospaceSansSerif,proportionalSerif,TheOther\" tts:fontSize=\"+2\">Macromedia</span> in 1996,")
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
describe "Out" do
|
34
|
+
before(:each) do
|
35
|
+
@sub = Subtitle.new({:dump => yml_fixture, :format => 'yml'})
|
36
|
+
end
|
37
|
+
|
38
38
|
it "should parse the sub to an array" do
|
39
39
|
@sub.to_xml.should be_instance_of(String)
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
42
|
it "should equal..." do
|
43
43
|
@sub.to_xml.should eql("<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
44
|
-
<tt xml:lang=\"en\" xmlns=\"http://www.w3.org/2006/
|
44
|
+
<tt xml:lang=\"en\" xmlns=\"http://www.w3.org/2006/10/ttaf1\" xmlns:tts=\"http://www.w3.org/2006/10/ttaf1#styling\">
|
45
45
|
<head>
|
46
46
|
<styling>
|
47
47
|
</styling>
|
@@ -57,4 +57,4 @@ describe Formats, ".xml" do
|
|
57
57
|
</tt>")
|
58
58
|
end
|
59
59
|
end
|
60
|
-
end
|
60
|
+
end
|
@@ -2,44 +2,44 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
|
2
2
|
|
3
3
|
module SubdownHelper
|
4
4
|
def mock_xmlrpc(stubs={})
|
5
|
-
@mock_xmlrpc ||= mock(XMLRPC::Client, stubs)#, @auth=nil, @parser=nil, @user=nil, @timeout=30, @cookie=nil, @http=#<Net::HTTP www.opensubtitles.org:80 open=false>, @use_ssl=false, @http_last_response=nil, @port=80, @host="www.opensubtitles.org", @path="/xml-rpc", @http_header_extra=nil, @create=nil, @password=nil, @proxy_port=nil, @proxy_host=nil>
|
5
|
+
@mock_xmlrpc ||= mock(XMLRPC::Client, stubs)#, @auth=nil, @parser=nil, @user=nil, @timeout=30, @cookie=nil, @http=#<Net::HTTP www.opensubtitles.org:80 open=false>, @use_ssl=false, @http_last_response=nil, @port=80, @host="www.opensubtitles.org", @path="/xml-rpc", @http_header_extra=nil, @create=nil, @password=nil, @proxy_port=nil, @proxy_host=nil>
|
6
6
|
end
|
7
7
|
def mock_movie
|
8
|
-
@mock_movie = mock(Movie, :haxx => '09a2c497663259cb')
|
8
|
+
@mock_movie = mock(Movie, :haxx => '09a2c497663259cb', :size => 81401)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
12
|
|
13
13
|
describe Subdown do
|
14
14
|
include SubdownHelper
|
15
|
-
|
15
|
+
|
16
16
|
before(:each) do
|
17
|
-
@sub = mock(Subtitle)
|
17
|
+
@sub = mock(Subtitle)
|
18
18
|
end
|
19
|
-
|
19
|
+
|
20
20
|
it "should initialize nicely" do
|
21
21
|
XMLRPC::Client.should_receive(:new2)
|
22
|
-
@down = Subdown.new
|
22
|
+
@down = Subdown.new
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
it "should log in!" do
|
26
|
-
XMLRPC::Client.should_receive(:new2).with('http://
|
26
|
+
XMLRPC::Client.should_receive(:new2).with('http://api.opensubtitles.org/xml-rpc').and_return(mock_xmlrpc)
|
27
27
|
@mock_xmlrpc.should_receive(:call).with("LogIn", "", "", "", "SubtitleIt #{SubtitleIt::VERSION::STRING}").and_return({
|
28
|
-
"status"=>"200 OK",
|
29
|
-
"seconds"=>0.004,
|
28
|
+
"status"=>"200 OK",
|
29
|
+
"seconds"=>0.004,
|
30
30
|
"token"=>"shkuj98gcvu5gp1b5tlo8uq525"
|
31
31
|
})
|
32
32
|
@down = Subdown.new
|
33
|
-
@down.should_not be_logged_in
|
33
|
+
@down.should_not be_logged_in
|
34
34
|
@down.log_in!
|
35
35
|
@down.should be_logged_in
|
36
36
|
end
|
37
|
-
|
37
|
+
|
38
38
|
it "should raise if connection sux" do
|
39
|
-
XMLRPC::Client.should_receive(:new2).with('http://
|
39
|
+
XMLRPC::Client.should_receive(:new2).with('http://api.opensubtitles.org/xml-rpc').and_return(mock_xmlrpc)
|
40
40
|
@mock_xmlrpc.should_receive(:call).with("LogIn", "", "", "", "SubtitleIt #{SubtitleIt::VERSION::STRING}").and_return({
|
41
|
-
"status"=>"404 FAIL",
|
42
|
-
"seconds"=>0.004,
|
41
|
+
"status"=>"404 FAIL",
|
42
|
+
"seconds"=>0.004,
|
43
43
|
"token"=>""
|
44
44
|
})
|
45
45
|
@down = Subdown.new
|
@@ -48,47 +48,87 @@ describe Subdown do
|
|
48
48
|
end
|
49
49
|
|
50
50
|
|
51
|
-
describe "
|
52
|
-
before
|
53
|
-
|
51
|
+
describe "Logged in" do
|
52
|
+
before do
|
53
|
+
XMLRPC::Client.should_receive(:new2).
|
54
|
+
with('http://api.opensubtitles.org/xml-rpc').
|
55
|
+
and_return(mock_xmlrpc)
|
56
|
+
|
57
|
+
@mock_xmlrpc.should_receive(:call).with("LogIn", "", "", "",
|
58
|
+
"SubtitleIt #{SubtitleIt::VERSION::STRING}").and_return({
|
59
|
+
"status"=>"200 OK",
|
60
|
+
"seconds"=>0.004,
|
61
|
+
"token"=>"shkuj98gcvu5gp1b5tlo8uq525"
|
62
|
+
})
|
63
|
+
@down = Subdown.new
|
64
|
+
@down.log_in!
|
54
65
|
end
|
55
|
-
|
56
|
-
it "should
|
57
|
-
@
|
58
|
-
|
59
|
-
|
66
|
+
|
67
|
+
it "should search for all languages" do
|
68
|
+
@mock_xmlrpc.should_receive(:call).with("SearchSubtitles",
|
69
|
+
"shkuj98gcvu5gp1b5tlo8uq525", [{
|
70
|
+
"sublanguageid"=>nil,
|
71
|
+
"moviebytesize"=>81401,
|
72
|
+
"moviehash"=>"09a2c497663259cb"}]).and_return(
|
73
|
+
{ :result => 200 }
|
74
|
+
)
|
75
|
+
|
76
|
+
@down.should_receive(:print).with("Searching for ")
|
77
|
+
@down.should_receive(:puts).with("all languages.")
|
78
|
+
@down.search_subtitles(mock_movie).should eql([])
|
60
79
|
end
|
61
|
-
|
80
|
+
|
81
|
+
it "should search for one language" do
|
82
|
+
@mock_xmlrpc.should_receive(:call).with("SearchSubtitles",
|
83
|
+
"shkuj98gcvu5gp1b5tlo8uq525", [{
|
84
|
+
"sublanguageid"=>"Portuguese",
|
85
|
+
"moviebytesize"=>81401,
|
86
|
+
"moviehash"=>"09a2c497663259cb"}]).and_return(
|
87
|
+
{ :result => 200 }
|
88
|
+
)
|
89
|
+
|
90
|
+
@down.should_receive(:print).with("Searching for ")
|
91
|
+
@down.should_receive(:puts).with("Portuguese...")
|
92
|
+
@down.search_subtitles(mock_movie, "pt").should eql([])
|
93
|
+
end
|
94
|
+
|
95
|
+
# it "should get subtitle languages" do
|
96
|
+
# @down.subtitle_languages.should be_instance_of(Array)
|
97
|
+
# @down.subtitle_languages.length.should eql(51)
|
98
|
+
# @down.subtitle_languages[0].should be_instance_of(String)
|
99
|
+
# end
|
100
|
+
|
62
101
|
end
|
63
102
|
end
|
64
103
|
|
65
|
-
# REAL TESTS THAT USES THE
|
66
|
-
#
|
104
|
+
# REAL TESTS THAT USES THE WIRE... DUNNO BETTER PRACTICE FOR THIS
|
105
|
+
#
|
106
|
+
# Mock is above, but I`ll keep this here, who knows if
|
67
107
|
# Opensubtitle API changes.... any suggestions?
|
68
|
-
#
|
69
|
-
# #
|
108
|
+
#
|
109
|
+
# #
|
70
110
|
# describe Subdown, " - Wired tests" do
|
71
111
|
# before(:each) do
|
72
112
|
# @down = Subdown.new
|
73
113
|
# @movie = mock(Movie, :haxx => '09a2c497663259cb')
|
74
114
|
# @down.log_in!
|
75
115
|
# end
|
76
|
-
#
|
116
|
+
#
|
77
117
|
# it "should get imdb info" do
|
78
|
-
# @movie.should_receive('info=').with({"MovieYear"=>"2004",
|
79
|
-
# "MovieImdbID"=>"403358",
|
80
|
-
# "MovieName"=>"Nochnoy dozor",
|
118
|
+
# @movie.should_receive('info=').with({"MovieYear"=>"2004",
|
119
|
+
# "MovieImdbID"=>"403358",
|
120
|
+
# "MovieName"=>"Nochnoy dozor",
|
81
121
|
# "MovieHash"=>"09a2c497663259cb"})
|
82
122
|
# @down.imdb_info(@movie)
|
83
123
|
# end
|
84
|
-
#
|
124
|
+
#
|
85
125
|
# it "should search subs info" do
|
86
|
-
#
|
126
|
+
#
|
87
127
|
# @movie.stub!(:size).and_return(733589504)
|
88
128
|
# res = @down.search_subtitles(@movie, 'pt')
|
89
129
|
# res.should be_instance_of(Array)
|
90
|
-
# res.each do |r|
|
130
|
+
# res.each do |r|
|
91
131
|
# r.should be_instance_of(Subtitle)
|
92
132
|
# end
|
93
133
|
# end
|
94
|
-
# end
|
134
|
+
# end
|
data/subtitle_it.gemspec
CHANGED
@@ -1,41 +1,127 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
1
6
|
Gem::Specification.new do |s|
|
2
7
|
s.name = %q{subtitle_it}
|
3
|
-
s.version = "
|
8
|
+
s.version = "1.5.0"
|
4
9
|
|
5
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
6
|
-
s.authors = ["Marcos Piccinini"
|
7
|
-
s.date = %q{
|
11
|
+
s.authors = ["Marcos Piccinini"]
|
12
|
+
s.date = %q{2011-04-15}
|
8
13
|
s.default_executable = %q{subtitle_it}
|
9
|
-
s.description = %q{
|
10
|
-
s.email =
|
14
|
+
s.description = %q{Download, edit and create subtitles. Supports various formats.}
|
15
|
+
s.email = %q{x@nofxx.com}
|
11
16
|
s.executables = ["subtitle_it"]
|
12
|
-
s.extra_rdoc_files = [
|
13
|
-
|
14
|
-
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"README.txt"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
"History.txt",
|
22
|
+
"License.txt",
|
23
|
+
"Manifest.txt",
|
24
|
+
"README.txt",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"bin/subtitle_it",
|
28
|
+
"config/hoe.rb",
|
29
|
+
"config/requirements.rb",
|
30
|
+
"lib/subtitle_it.rb",
|
31
|
+
"lib/subtitle_it/bin.rb",
|
32
|
+
"lib/subtitle_it/fixes.rb",
|
33
|
+
"lib/subtitle_it/formats/ass.rb",
|
34
|
+
"lib/subtitle_it/formats/mpl.rb",
|
35
|
+
"lib/subtitle_it/formats/rsb.rb",
|
36
|
+
"lib/subtitle_it/formats/srt.rb",
|
37
|
+
"lib/subtitle_it/formats/sub.rb",
|
38
|
+
"lib/subtitle_it/formats/xml.rb",
|
39
|
+
"lib/subtitle_it/formats/yml.rb",
|
40
|
+
"lib/subtitle_it/generator.rb",
|
41
|
+
"lib/subtitle_it/languages.rb",
|
42
|
+
"lib/subtitle_it/movie.rb",
|
43
|
+
"lib/subtitle_it/movie_hasher.rb",
|
44
|
+
"lib/subtitle_it/platform_endl.rb",
|
45
|
+
"lib/subtitle_it/subdown.rb",
|
46
|
+
"lib/subtitle_it/subline.rb",
|
47
|
+
"lib/subtitle_it/substyle.rb",
|
48
|
+
"lib/subtitle_it/subtime.rb",
|
49
|
+
"lib/subtitle_it/subtitle.rb",
|
50
|
+
"lib/subtitle_it/version.rb",
|
51
|
+
"script/console",
|
52
|
+
"script/destroy",
|
53
|
+
"script/generate",
|
54
|
+
"script/txt2html",
|
55
|
+
"setup.rb",
|
56
|
+
"spec/fixtures/godfather.srt",
|
57
|
+
"spec/fixtures/huge.ass",
|
58
|
+
"spec/fixtures/movie.xml",
|
59
|
+
"spec/fixtures/movie.yml",
|
60
|
+
"spec/fixtures/pseudo.rsb",
|
61
|
+
"spec/fixtures/pulpfiction.sub",
|
62
|
+
"spec/fixtures/puplfiction.mpl",
|
63
|
+
"spec/fixtures/sincity.yml",
|
64
|
+
"spec/spec_helper.rb",
|
65
|
+
"spec/subtitle_it/bin_spec.rb",
|
66
|
+
"spec/subtitle_it/fixes_spec.rb",
|
67
|
+
"spec/subtitle_it/formats/ass_spec.rb",
|
68
|
+
"spec/subtitle_it/formats/mpl_spec.rb",
|
69
|
+
"spec/subtitle_it/formats/rsb_spec.rb",
|
70
|
+
"spec/subtitle_it/formats/srt_spec.rb",
|
71
|
+
"spec/subtitle_it/formats/sub_spec.rb",
|
72
|
+
"spec/subtitle_it/formats/xml_spec.rb",
|
73
|
+
"spec/subtitle_it/formats/yml_spec.rb",
|
74
|
+
"spec/subtitle_it/generator_spec.rb",
|
75
|
+
"spec/subtitle_it/movie_hasher_spec.rb",
|
76
|
+
"spec/subtitle_it/movie_spec.rb",
|
77
|
+
"spec/subtitle_it/subdown_spec.rb",
|
78
|
+
"spec/subtitle_it/subline_spec.rb",
|
79
|
+
"spec/subtitle_it/substyle_spec.rb",
|
80
|
+
"spec/subtitle_it/subtime_spec.rb",
|
81
|
+
"spec/subtitle_it/subtitle_spec.rb",
|
82
|
+
"spec/subtitle_it_spec.rb",
|
83
|
+
"subtitle_it.gemspec",
|
84
|
+
"tasks/deployment.rake",
|
85
|
+
"tasks/environment.rake",
|
86
|
+
"tasks/rspec.rake"
|
87
|
+
]
|
15
88
|
s.homepage = %q{http://github.com/nofxx/subtitle_it}
|
16
|
-
s.post_install_message = %q{
|
17
|
-
For more information on subtitle_it, see http://github.com/nofxx/subtitle_it
|
18
|
-
|
19
|
-
}
|
20
|
-
s.rdoc_options = ["--main", "README.txt"]
|
21
89
|
s.require_paths = ["lib"]
|
22
|
-
s.
|
23
|
-
s.
|
90
|
+
s.rubygems_version = %q{1.3.7}
|
91
|
+
s.summary = %q{Download, edit and create subtitles.}
|
92
|
+
s.test_files = [
|
93
|
+
"spec/spec_helper.rb",
|
94
|
+
"spec/subtitle_it/bin_spec.rb",
|
95
|
+
"spec/subtitle_it/fixes_spec.rb",
|
96
|
+
"spec/subtitle_it/formats/ass_spec.rb",
|
97
|
+
"spec/subtitle_it/formats/mpl_spec.rb",
|
98
|
+
"spec/subtitle_it/formats/rsb_spec.rb",
|
99
|
+
"spec/subtitle_it/formats/srt_spec.rb",
|
100
|
+
"spec/subtitle_it/formats/sub_spec.rb",
|
101
|
+
"spec/subtitle_it/formats/xml_spec.rb",
|
102
|
+
"spec/subtitle_it/formats/yml_spec.rb",
|
103
|
+
"spec/subtitle_it/generator_spec.rb",
|
104
|
+
"spec/subtitle_it/movie_hasher_spec.rb",
|
105
|
+
"spec/subtitle_it/movie_spec.rb",
|
106
|
+
"spec/subtitle_it/subdown_spec.rb",
|
107
|
+
"spec/subtitle_it/subline_spec.rb",
|
108
|
+
"spec/subtitle_it/substyle_spec.rb",
|
109
|
+
"spec/subtitle_it/subtime_spec.rb",
|
110
|
+
"spec/subtitle_it/subtitle_spec.rb",
|
111
|
+
"spec/subtitle_it_spec.rb"
|
112
|
+
]
|
24
113
|
|
25
|
-
s.summary = %q{Ruby tool to work with subtitle files}
|
26
|
-
|
27
|
-
s.add_dependency(%q<hpricot>, [">= 0.6"])
|
28
|
-
|
29
114
|
if s.respond_to? :specification_version then
|
30
115
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
31
|
-
s.specification_version =
|
116
|
+
s.specification_version = 3
|
32
117
|
|
33
|
-
if
|
34
|
-
s.add_development_dependency(%q<
|
118
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
119
|
+
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
35
120
|
else
|
36
|
-
s.add_dependency(%q<
|
121
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
37
122
|
end
|
38
123
|
else
|
39
|
-
s.add_dependency(%q<
|
124
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
40
125
|
end
|
41
126
|
end
|
127
|
+
|
metadata
CHANGED
@@ -1,60 +1,52 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subtitle_it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 5
|
8
|
+
- 0
|
9
|
+
version: 1.5.0
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Marcos Piccinini
|
8
|
-
- Warlley Rezende
|
9
|
-
- Giovanni Rapagnani
|
10
13
|
autorequire:
|
11
14
|
bindir: bin
|
12
15
|
cert_chain: []
|
13
16
|
|
14
|
-
date:
|
17
|
+
date: 2011-04-15 00:00:00 -03:00
|
15
18
|
default_executable: subtitle_it
|
16
19
|
dependencies:
|
17
20
|
- !ruby/object:Gem::Dependency
|
18
|
-
name:
|
19
|
-
|
20
|
-
|
21
|
-
|
21
|
+
name: rspec
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
22
25
|
requirements:
|
23
26
|
- - ">="
|
24
27
|
- !ruby/object:Gem::Version
|
25
|
-
|
26
|
-
|
27
|
-
-
|
28
|
-
|
28
|
+
segments:
|
29
|
+
- 1
|
30
|
+
- 2
|
31
|
+
- 9
|
32
|
+
version: 1.2.9
|
29
33
|
type: :development
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
- - ">="
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: 1.7.0
|
36
|
-
version:
|
37
|
-
description: description of gem
|
38
|
-
email:
|
39
|
-
- x@nofxx.com
|
34
|
+
version_requirements: *id001
|
35
|
+
description: Download, edit and create subtitles. Supports various formats.
|
36
|
+
email: x@nofxx.com
|
40
37
|
executables:
|
41
38
|
- subtitle_it
|
42
39
|
extensions: []
|
43
40
|
|
44
41
|
extra_rdoc_files:
|
45
|
-
- History.txt
|
46
|
-
- License.txt
|
47
|
-
- Manifest.txt
|
48
42
|
- README.txt
|
49
|
-
- README.markdown
|
50
43
|
files:
|
51
|
-
- .autotest
|
52
44
|
- History.txt
|
53
45
|
- License.txt
|
54
46
|
- Manifest.txt
|
55
|
-
- README.markdown
|
56
47
|
- README.txt
|
57
48
|
- Rakefile
|
49
|
+
- VERSION
|
58
50
|
- bin/subtitle_it
|
59
51
|
- config/hoe.rb
|
60
52
|
- config/requirements.rb
|
@@ -92,7 +84,6 @@ files:
|
|
92
84
|
- spec/fixtures/pulpfiction.sub
|
93
85
|
- spec/fixtures/puplfiction.mpl
|
94
86
|
- spec/fixtures/sincity.yml
|
95
|
-
- spec/spec.opts
|
96
87
|
- spec/spec_helper.rb
|
97
88
|
- spec/subtitle_it/bin_spec.rb
|
98
89
|
- spec/subtitle_it/fixes_spec.rb
|
@@ -120,33 +111,51 @@ has_rdoc: true
|
|
120
111
|
homepage: http://github.com/nofxx/subtitle_it
|
121
112
|
licenses: []
|
122
113
|
|
123
|
-
post_install_message:
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
rdoc_options:
|
128
|
-
- --main
|
129
|
-
- README.txt
|
114
|
+
post_install_message:
|
115
|
+
rdoc_options: []
|
116
|
+
|
130
117
|
require_paths:
|
131
118
|
- lib
|
132
119
|
required_ruby_version: !ruby/object:Gem::Requirement
|
120
|
+
none: false
|
133
121
|
requirements:
|
134
122
|
- - ">="
|
135
123
|
- !ruby/object:Gem::Version
|
124
|
+
segments:
|
125
|
+
- 0
|
136
126
|
version: "0"
|
137
|
-
version:
|
138
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
139
129
|
requirements:
|
140
130
|
- - ">="
|
141
131
|
- !ruby/object:Gem::Version
|
132
|
+
segments:
|
133
|
+
- 0
|
142
134
|
version: "0"
|
143
|
-
version:
|
144
135
|
requirements: []
|
145
136
|
|
146
|
-
rubyforge_project:
|
147
|
-
rubygems_version: 1.3.
|
137
|
+
rubyforge_project:
|
138
|
+
rubygems_version: 1.3.7
|
148
139
|
signing_key:
|
149
|
-
specification_version:
|
150
|
-
summary:
|
151
|
-
test_files:
|
152
|
-
|
140
|
+
specification_version: 3
|
141
|
+
summary: Download, edit and create subtitles.
|
142
|
+
test_files:
|
143
|
+
- spec/spec_helper.rb
|
144
|
+
- spec/subtitle_it/bin_spec.rb
|
145
|
+
- spec/subtitle_it/fixes_spec.rb
|
146
|
+
- spec/subtitle_it/formats/ass_spec.rb
|
147
|
+
- spec/subtitle_it/formats/mpl_spec.rb
|
148
|
+
- spec/subtitle_it/formats/rsb_spec.rb
|
149
|
+
- spec/subtitle_it/formats/srt_spec.rb
|
150
|
+
- spec/subtitle_it/formats/sub_spec.rb
|
151
|
+
- spec/subtitle_it/formats/xml_spec.rb
|
152
|
+
- spec/subtitle_it/formats/yml_spec.rb
|
153
|
+
- spec/subtitle_it/generator_spec.rb
|
154
|
+
- spec/subtitle_it/movie_hasher_spec.rb
|
155
|
+
- spec/subtitle_it/movie_spec.rb
|
156
|
+
- spec/subtitle_it/subdown_spec.rb
|
157
|
+
- spec/subtitle_it/subline_spec.rb
|
158
|
+
- spec/subtitle_it/substyle_spec.rb
|
159
|
+
- spec/subtitle_it/subtime_spec.rb
|
160
|
+
- spec/subtitle_it/subtitle_spec.rb
|
161
|
+
- spec/subtitle_it_spec.rb
|
data/.autotest
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# #
|
2
|
-
# SMS AUTOTEST
|
3
|
-
#
|
4
|
-
#require 'autotest/growl'
|
5
|
-
#require 'autotest/html_report'
|
6
|
-
# require 'autotest/kdenotify'
|
7
|
-
require 'autotest/menu'
|
8
|
-
#require 'autotest/pretty'
|
9
|
-
require 'autotest/redgreen'
|
10
|
-
# require 'autotest/snarl'
|
11
|
-
require 'autotest/timestamp'
|
12
|
-
|
13
|
-
|
14
|
-
class Autotest
|
15
|
-
Autotest.add_hook :initialize do |at|
|
16
|
-
%w{.svn .hg .git .DS_store}.each {|exception|at.add_exception(exception)}
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|