tracksperanto 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,32 @@
1
+ require File.dirname(__FILE__) + '/../helper'
2
+
3
+ class MayaLiveImportTest < Test::Unit::TestCase
4
+ DELTA = 0.001
5
+
6
+ def test_introspects_properly
7
+ i = Tracksperanto::Import::MayaLive
8
+ assert_equal "Maya Live track export file", i.human_name
9
+ assert i.autodetects_size?
10
+ end
11
+
12
+ def test_parse_file
13
+ f = File.open(File.dirname(__FILE__) + "/samples/mayalive_kipShot.txt")
14
+
15
+ p = Tracksperanto::Import::MayaLive.new
16
+ trackers = p.parse(f)
17
+
18
+ assert_equal 1280, p.width
19
+ assert_equal 540, p.height
20
+
21
+ assert_equal 18, trackers.length
22
+
23
+ first_t = trackers[0]
24
+ assert_equal "trackedPoint1", first_t.name
25
+ assert_equal 225, first_t.length
26
+ first_kf = first_t[0]
27
+
28
+ assert_equal 0, first_kf.frame
29
+ assert_in_delta 388.542, first_kf.abs_x, DELTA
30
+ assert_in_delta 513.346, first_kf.abs_y, DELTA
31
+ end
32
+ end
@@ -0,0 +1,28 @@
1
+ require File.dirname(__FILE__) + '/helper'
2
+
3
+ class TestExtio < Test::Unit::TestCase
4
+ def e(st)
5
+ Tracksperanto::ExtIO.new(StringIO.new(st))
6
+ end
7
+
8
+ def test_gets
9
+ assert_equal "Mary had\n", e("Mary had\n").gets
10
+ end
11
+
12
+ def test_gets_and_strip
13
+ assert_equal "Mary had", e("Mary had\na little lamb\n").gets_and_strip
14
+ end
15
+
16
+ def test_gets_and_strip_at_end
17
+ s = e("Mary had\na little lamb\n")
18
+ s.gets_and_strip
19
+ s.gets_and_strip
20
+
21
+ assert_nil s.gets_and_strip
22
+ end
23
+
24
+ def test_gets_non_empty
25
+ s = e("\n\n\n\nfoo")
26
+ assert_equal "foo", s.gets_non_empty
27
+ end
28
+ end
@@ -2,17 +2,17 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{tracksperanto}
5
- s.version = "1.3.0"
5
+ s.version = "1.4.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Julik Tarkhanov"]
9
- s.date = %q{2009-09-24}
9
+ s.date = %q{2009-10-02}
10
10
  s.default_executable = %q{tracksperanto}
11
11
  s.description = %q{Tracksperanto is a universal 2D-track translator between many apps.}
12
12
  s.email = ["me@julik.nl"]
13
13
  s.executables = ["tracksperanto"]
14
14
  s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
15
- s.files = [".DS_Store", "History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/tracksperanto", "lib/.DS_Store", "lib/export/base.rb", "lib/export/equalizer.rb", "lib/export/match_mover.rb", "lib/export/mux.rb", "lib/export/nuke_script.rb", "lib/export/pftrack.rb", "lib/export/pftrack_5.rb", "lib/export/shake_text.rb", "lib/export/syntheyes.rb", "lib/import/base.rb", "lib/import/equalizer.rb", "lib/import/flame_stabilizer.rb", "lib/import/match_mover.rb", "lib/import/nuke_script.rb", "lib/import/pftrack.rb", "lib/import/shake_grammar/catcher.rb", "lib/import/shake_grammar/lexer.rb", "lib/import/shake_script.rb", "lib/import/shake_text.rb", "lib/import/syntheyes.rb", "lib/middleware/base.rb", "lib/middleware/golden.rb", "lib/middleware/reformat.rb", "lib/middleware/scaler.rb", "lib/middleware/shift.rb", "lib/middleware/slipper.rb", "lib/pipeline/base.rb", "lib/tracksperanto.rb", "lib/tracksperanto/block_init.rb", "lib/tracksperanto/casts.rb", "lib/tracksperanto/const_name.rb", "lib/tracksperanto/format_detector.rb", "lib/tracksperanto/keyframe.rb", "lib/tracksperanto/safety.rb", "lib/tracksperanto/tracker.rb", "lib/tracksperanto/zip_tuples.rb", "test/.DS_Store", "test/export/.DS_Store", "test/export/README_EXPORT_TESTS.txt", "test/export/samples/ref_NukeScript.nk", "test/export/samples/ref_NukeScript.nk.autosave", "test/export/samples/ref_PFTrack.2dt", "test/export/samples/ref_PFTrack5.2dt", "test/export/samples/ref_ShakeText.txt", "test/export/samples/ref_Syntheyes.txt", "test/export/samples/ref_equalizer.txt", "test/export/samples/ref_matchmover.rz2", "test/export/test_equalizer_export.rb", "test/export/test_match_mover_export.rb", "test/export/test_mux.rb", "test/export/test_nuke_export.rb", "test/export/test_pftrack5_export.rb", "test/export/test_pftrack_export.rb", "test/export/test_shake_export.rb", "test/export/test_syntheyes_export.rb", "test/helper.rb", "test/import/.DS_Store", "test/import/samples/.DS_Store", "test/import/samples/3de_export_cube.txt", "test/import/samples/flyover2DP_syntheyes.txt", "test/import/samples/four_tracks_in_one_matchmove.shk", "test/import/samples/four_tracks_in_one_stabilizer.shk", "test/import/samples/fromCombustion_fromMidClip_wSnap.stabilizer", "test/import/samples/garage.2dt", "test/import/samples/hugeFlameSetup.stabilizer", "test/import/samples/kipPointsMatchmover.rz2", "test/import/samples/megaTrack.action.3dtrack.stabilizer", "test/import/samples/one_shake_tracker.txt", "test/import/samples/one_shake_tracker_from_first.txt", "test/import/samples/one_tracker_with_break.nk", "test/import/samples/one_tracker_with_break_in_grp.nk", "test/import/samples/shake_tracker_nodes.shk", "test/import/samples/shake_tracker_nodes_to_syntheyes.txt", "test/import/samples/sourcefile_pftrack.2dt", "test/import/samples/three_tracks_in_one_stabilizer.shk", "test/import/samples/two_shake_trackers.txt", "test/import/samples/two_tracks_in_one_tracker.shk", "test/import/test_3de_import.rb", "test/import/test_flame_import.rb", "test/import/test_match_mover_import.rb", "test/import/test_nuke_import.rb", "test/import/test_pftrack_import.rb", "test/import/test_shake_catcher.rb", "test/import/test_shake_lexer.rb", "test/import/test_shake_script_import.rb", "test/import/test_shake_text_import.rb", "test/import/test_syntheyes_import.rb", "test/middleware/test_golden_middleware.rb", "test/middleware/test_reformat_middleware.rb", "test/middleware/test_scaler_middleware.rb", "test/middleware/test_shift_middleware.rb", "test/middleware/test_slip_middleware.rb", "test/pipeline/test_pipeline_base.rb", "test/test_const_name.rb", "test/test_format_detector.rb", "test/test_keyframe.rb", "test/test_tracker.rb", "tracksperanto.gemspec"]
15
+ s.files = [".DS_Store", "History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/tracksperanto", "lib/.DS_Store", "lib/export/base.rb", "lib/export/equalizer.rb", "lib/export/match_mover.rb", "lib/export/maya_live.rb", "lib/export/mux.rb", "lib/export/nuke_script.rb", "lib/export/pftrack.rb", "lib/export/pftrack_5.rb", "lib/export/shake_text.rb", "lib/export/syntheyes.rb", "lib/import/base.rb", "lib/import/equalizer.rb", "lib/import/flame_stabilizer.rb", "lib/import/match_mover.rb", "lib/import/maya_live.rb", "lib/import/nuke_script.rb", "lib/import/pftrack.rb", "lib/import/shake_grammar/catcher.rb", "lib/import/shake_grammar/lexer.rb", "lib/import/shake_script.rb", "lib/import/shake_text.rb", "lib/import/syntheyes.rb", "lib/middleware/base.rb", "lib/middleware/golden.rb", "lib/middleware/reformat.rb", "lib/middleware/scaler.rb", "lib/middleware/shift.rb", "lib/middleware/slipper.rb", "lib/pipeline/base.rb", "lib/tracksperanto.rb", "lib/tracksperanto/block_init.rb", "lib/tracksperanto/casts.rb", "lib/tracksperanto/const_name.rb", "lib/tracksperanto/ext_io.rb", "lib/tracksperanto/format_detector.rb", "lib/tracksperanto/keyframe.rb", "lib/tracksperanto/safety.rb", "lib/tracksperanto/tracker.rb", "lib/tracksperanto/zip_tuples.rb", "test/.DS_Store", "test/export/.DS_Store", "test/export/README_EXPORT_TESTS.txt", "test/export/samples/ref_Mayalive.txt", "test/export/samples/ref_NukeScript.nk", "test/export/samples/ref_NukeScript.nk.autosave", "test/export/samples/ref_PFTrack.2dt", "test/export/samples/ref_PFTrack5.2dt", "test/export/samples/ref_ShakeText.txt", "test/export/samples/ref_Syntheyes.txt", "test/export/samples/ref_equalizer.txt", "test/export/samples/ref_matchmover.rz2", "test/export/test_equalizer_export.rb", "test/export/test_match_mover_export.rb", "test/export/test_maya_live_export.rb", "test/export/test_mux.rb", "test/export/test_nuke_export.rb", "test/export/test_pftrack5_export.rb", "test/export/test_pftrack_export.rb", "test/export/test_shake_export.rb", "test/export/test_syntheyes_export.rb", "test/helper.rb", "test/import/.DS_Store", "test/import/samples/.DS_Store", "test/import/samples/3de_export_cube.txt", "test/import/samples/flyover2DP_syntheyes.txt", "test/import/samples/four_tracks_in_one_matchmove.shk", "test/import/samples/four_tracks_in_one_stabilizer.shk", "test/import/samples/fromCombustion_fromMidClip_wSnap.stabilizer", "test/import/samples/garage.2dt", "test/import/samples/hugeFlameSetup.stabilizer", "test/import/samples/kipPointsMatchmover.rz2", "test/import/samples/mayalive_kipShot.txt", "test/import/samples/megaTrack.action.3dtrack.stabilizer", "test/import/samples/one_shake_tracker.txt", "test/import/samples/one_shake_tracker_from_first.txt", "test/import/samples/one_tracker_with_break.nk", "test/import/samples/one_tracker_with_break_in_grp.nk", "test/import/samples/shake_tracker_nodes.shk", "test/import/samples/shake_tracker_nodes_to_syntheyes.txt", "test/import/samples/sourcefile_pftrack.2dt", "test/import/samples/three_tracks_in_one_stabilizer.shk", "test/import/samples/two_shake_trackers.txt", "test/import/samples/two_tracks_in_one_tracker.shk", "test/import/test_3de_import.rb", "test/import/test_flame_import.rb", "test/import/test_match_mover_import.rb", "test/import/test_maya_live_import.rb", "test/import/test_nuke_import.rb", "test/import/test_pftrack_import.rb", "test/import/test_shake_catcher.rb", "test/import/test_shake_lexer.rb", "test/import/test_shake_script_import.rb", "test/import/test_shake_text_import.rb", "test/import/test_syntheyes_import.rb", "test/middleware/test_golden_middleware.rb", "test/middleware/test_reformat_middleware.rb", "test/middleware/test_scaler_middleware.rb", "test/middleware/test_shift_middleware.rb", "test/middleware/test_slip_middleware.rb", "test/test_const_name.rb", "test/test_extio.rb", "test/test_format_detector.rb", "test/test_keyframe.rb", "test/test_tracker.rb", "tracksperanto.gemspec"]
16
16
  s.has_rdoc = true
17
17
  s.homepage = %q{http://guerilla-di.org/tracksperanto}
18
18
  s.rdoc_options = ["--main", "README.txt"]
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.rubyforge_project = %q{guerilla-di}
21
21
  s.rubygems_version = %q{1.3.1}
22
22
  s.summary = %q{Tracksperanto is a universal 2D-track translator between many apps.}
23
- s.test_files = ["test/export/test_equalizer_export.rb", "test/export/test_match_mover_export.rb", "test/export/test_mux.rb", "test/export/test_nuke_export.rb", "test/export/test_pftrack5_export.rb", "test/export/test_pftrack_export.rb", "test/export/test_shake_export.rb", "test/export/test_syntheyes_export.rb", "test/import/test_3de_import.rb", "test/import/test_flame_import.rb", "test/import/test_match_mover_import.rb", "test/import/test_nuke_import.rb", "test/import/test_pftrack_import.rb", "test/import/test_shake_catcher.rb", "test/import/test_shake_lexer.rb", "test/import/test_shake_script_import.rb", "test/import/test_shake_text_import.rb", "test/import/test_syntheyes_import.rb", "test/middleware/test_golden_middleware.rb", "test/middleware/test_reformat_middleware.rb", "test/middleware/test_scaler_middleware.rb", "test/middleware/test_shift_middleware.rb", "test/middleware/test_slip_middleware.rb", "test/pipeline/test_pipeline_base.rb", "test/test_const_name.rb", "test/test_format_detector.rb", "test/test_keyframe.rb", "test/test_tracker.rb"]
23
+ s.test_files = ["test/export/test_equalizer_export.rb", "test/export/test_match_mover_export.rb", "test/export/test_maya_live_export.rb", "test/export/test_mux.rb", "test/export/test_nuke_export.rb", "test/export/test_pftrack5_export.rb", "test/export/test_pftrack_export.rb", "test/export/test_shake_export.rb", "test/export/test_syntheyes_export.rb", "test/import/test_3de_import.rb", "test/import/test_flame_import.rb", "test/import/test_match_mover_import.rb", "test/import/test_maya_live_import.rb", "test/import/test_nuke_import.rb", "test/import/test_pftrack_import.rb", "test/import/test_shake_catcher.rb", "test/import/test_shake_lexer.rb", "test/import/test_shake_script_import.rb", "test/import/test_shake_text_import.rb", "test/import/test_syntheyes_import.rb", "test/middleware/test_golden_middleware.rb", "test/middleware/test_reformat_middleware.rb", "test/middleware/test_scaler_middleware.rb", "test/middleware/test_shift_middleware.rb", "test/middleware/test_slip_middleware.rb", "test/test_const_name.rb", "test/test_extio.rb", "test/test_format_detector.rb", "test/test_keyframe.rb", "test/test_tracker.rb"]
24
24
 
25
25
  if s.respond_to? :specification_version then
26
26
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracksperanto
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julik Tarkhanov
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-24 00:00:00 +02:00
12
+ date: 2009-10-02 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -54,6 +54,7 @@ files:
54
54
  - lib/export/base.rb
55
55
  - lib/export/equalizer.rb
56
56
  - lib/export/match_mover.rb
57
+ - lib/export/maya_live.rb
57
58
  - lib/export/mux.rb
58
59
  - lib/export/nuke_script.rb
59
60
  - lib/export/pftrack.rb
@@ -64,6 +65,7 @@ files:
64
65
  - lib/import/equalizer.rb
65
66
  - lib/import/flame_stabilizer.rb
66
67
  - lib/import/match_mover.rb
68
+ - lib/import/maya_live.rb
67
69
  - lib/import/nuke_script.rb
68
70
  - lib/import/pftrack.rb
69
71
  - lib/import/shake_grammar/catcher.rb
@@ -82,6 +84,7 @@ files:
82
84
  - lib/tracksperanto/block_init.rb
83
85
  - lib/tracksperanto/casts.rb
84
86
  - lib/tracksperanto/const_name.rb
87
+ - lib/tracksperanto/ext_io.rb
85
88
  - lib/tracksperanto/format_detector.rb
86
89
  - lib/tracksperanto/keyframe.rb
87
90
  - lib/tracksperanto/safety.rb
@@ -90,6 +93,7 @@ files:
90
93
  - test/.DS_Store
91
94
  - test/export/.DS_Store
92
95
  - test/export/README_EXPORT_TESTS.txt
96
+ - test/export/samples/ref_Mayalive.txt
93
97
  - test/export/samples/ref_NukeScript.nk
94
98
  - test/export/samples/ref_NukeScript.nk.autosave
95
99
  - test/export/samples/ref_PFTrack.2dt
@@ -100,6 +104,7 @@ files:
100
104
  - test/export/samples/ref_matchmover.rz2
101
105
  - test/export/test_equalizer_export.rb
102
106
  - test/export/test_match_mover_export.rb
107
+ - test/export/test_maya_live_export.rb
103
108
  - test/export/test_mux.rb
104
109
  - test/export/test_nuke_export.rb
105
110
  - test/export/test_pftrack5_export.rb
@@ -117,6 +122,7 @@ files:
117
122
  - test/import/samples/garage.2dt
118
123
  - test/import/samples/hugeFlameSetup.stabilizer
119
124
  - test/import/samples/kipPointsMatchmover.rz2
125
+ - test/import/samples/mayalive_kipShot.txt
120
126
  - test/import/samples/megaTrack.action.3dtrack.stabilizer
121
127
  - test/import/samples/one_shake_tracker.txt
122
128
  - test/import/samples/one_shake_tracker_from_first.txt
@@ -131,6 +137,7 @@ files:
131
137
  - test/import/test_3de_import.rb
132
138
  - test/import/test_flame_import.rb
133
139
  - test/import/test_match_mover_import.rb
140
+ - test/import/test_maya_live_import.rb
134
141
  - test/import/test_nuke_import.rb
135
142
  - test/import/test_pftrack_import.rb
136
143
  - test/import/test_shake_catcher.rb
@@ -143,8 +150,8 @@ files:
143
150
  - test/middleware/test_scaler_middleware.rb
144
151
  - test/middleware/test_shift_middleware.rb
145
152
  - test/middleware/test_slip_middleware.rb
146
- - test/pipeline/test_pipeline_base.rb
147
153
  - test/test_const_name.rb
154
+ - test/test_extio.rb
148
155
  - test/test_format_detector.rb
149
156
  - test/test_keyframe.rb
150
157
  - test/test_tracker.rb
@@ -179,6 +186,7 @@ summary: Tracksperanto is a universal 2D-track translator between many apps.
179
186
  test_files:
180
187
  - test/export/test_equalizer_export.rb
181
188
  - test/export/test_match_mover_export.rb
189
+ - test/export/test_maya_live_export.rb
182
190
  - test/export/test_mux.rb
183
191
  - test/export/test_nuke_export.rb
184
192
  - test/export/test_pftrack5_export.rb
@@ -188,6 +196,7 @@ test_files:
188
196
  - test/import/test_3de_import.rb
189
197
  - test/import/test_flame_import.rb
190
198
  - test/import/test_match_mover_import.rb
199
+ - test/import/test_maya_live_import.rb
191
200
  - test/import/test_nuke_import.rb
192
201
  - test/import/test_pftrack_import.rb
193
202
  - test/import/test_shake_catcher.rb
@@ -200,8 +209,8 @@ test_files:
200
209
  - test/middleware/test_scaler_middleware.rb
201
210
  - test/middleware/test_shift_middleware.rb
202
211
  - test/middleware/test_slip_middleware.rb
203
- - test/pipeline/test_pipeline_base.rb
204
212
  - test/test_const_name.rb
213
+ - test/test_extio.rb
205
214
  - test/test_format_detector.rb
206
215
  - test/test_keyframe.rb
207
216
  - test/test_tracker.rb
@@ -1,14 +0,0 @@
1
- require File.dirname(__FILE__) + '/../helper'
2
-
3
- class PipelineTest < Test::Unit::TestCase
4
-
5
- def test_pipeline_responds_to_everything_needed
6
- p = Tracksperanto::Pipeline::Base.new
7
- assert_respond_to p, :exporters
8
- assert_respond_to p, :exporters=
9
- assert_respond_to p, :progress_block
10
- assert_respond_to p, :progress_block=
11
- end
12
-
13
- # TODO - write these oh boy
14
- end