tracksperanto 3.5.1 → 3.5.2
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/lib/tracksperanto.rb +1 -1
- data/lib/tracksperanto/blacklist.rb +2 -1
- data/test/test_blacklist.rb +6 -0
- data/tracksperanto.gemspec +1 -1
- metadata +3 -3
data/lib/tracksperanto.rb
CHANGED
|
@@ -18,8 +18,9 @@ class Tracksperanto::Blacklist
|
|
|
18
18
|
/\.(r3d)$/ => 'Tracksperanto is not a tracking application, it converts tracks. We do not support RAW file formats.',
|
|
19
19
|
/\.(dpx|tif(f?)|jp(e?)g|png|gif|tga)$/ => 'Tracksperanto is not a tracking application, it converts tracks. We do not support image file formats.',
|
|
20
20
|
'.sni' => 'We cannot read binary SynthEyes scene files. Export your tracks as one of the supported formats.',
|
|
21
|
-
|
|
21
|
+
/\.(pfb|pfmp)/ => 'We cannot directly open PFTrack projects, export .2dt files instead',
|
|
22
22
|
'.mmf' => 'We cannot directly open MatchMover projects, please export your tracks as .rz2 instead',
|
|
23
|
+
/\.(doc(x?)|xls(x?)|ppt(x?))/ => 'You really think we can process Microsoft Office files? You need a drink.',
|
|
23
24
|
}
|
|
24
25
|
end
|
|
25
26
|
end
|
data/test/test_blacklist.rb
CHANGED
|
@@ -27,6 +27,12 @@ class TestBlacklist < Test::Unit::TestCase
|
|
|
27
27
|
file.pfb
|
|
28
28
|
file.pfmp
|
|
29
29
|
file.mmf
|
|
30
|
+
file.doc
|
|
31
|
+
file.docx
|
|
32
|
+
file.ppt
|
|
33
|
+
file.pptx
|
|
34
|
+
file.xls
|
|
35
|
+
file.xlsx
|
|
30
36
|
).each do | filename |
|
|
31
37
|
error = assert_raise(Tracksperanto::UnsupportedFormatError, "Should fail for #{filename.inspect}") do
|
|
32
38
|
Tracksperanto::Blacklist.raise_if_format_unsupported(filename)
|
data/tracksperanto.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tracksperanto
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 23
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 3
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 3.5.
|
|
9
|
+
- 2
|
|
10
|
+
version: 3.5.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Julik Tarkhanov
|