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 CHANGED
@@ -5,7 +5,7 @@ require 'tempfile'
5
5
 
6
6
  module Tracksperanto
7
7
  PATH = File.expand_path(File.dirname(__FILE__))
8
- VERSION = '3.5.1'
8
+ VERSION = '3.5.2'
9
9
 
10
10
  module Import; end
11
11
  module Export; end
@@ -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
- /.(pfb|pfmp)/ => 'We cannot directly open PFTrack projects, export .2dt files instead',
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
@@ -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)
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tracksperanto}
8
- s.version = "3.5.1"
8
+ s.version = "3.5.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Julik Tarkhanov"]
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: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 5
9
- - 1
10
- version: 3.5.1
9
+ - 2
10
+ version: 3.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Julik Tarkhanov