tracksperanto 3.5.5 → 3.5.6

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/Gemfile CHANGED
@@ -18,11 +18,11 @@ group :development do
18
18
  gem "rake"
19
19
  gem "linebyline"
20
20
 
21
+ gem "jeweler", '1.8.4' # Last one without the stupid nokogiri dependency
22
+
21
23
  if RUBY_VERSION < "1.9"
22
- gem "jeweler", '1.8.4' # Last one without the stupid nokogiri dependency
23
24
  gem "flexmock", "~> 0.8", :require => %w( flexmock flexmock/test_unit ) # Max. supported on 1.8
24
25
  else
25
- gem "jeweler", '~> 1.8'
26
26
  gem "flexmock", "~> 1.3.2", :require => %w( flexmock flexmock/test_unit )
27
27
  end
28
28
 
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 3.5.6
2
+
3
+ * SynthEyes has two export formats which creates confusion. Add snag messages to import moudules to hint that.
4
+
1
5
  === 3.5.5
2
6
 
3
7
  * Fix joining animation curves that had negative frame numbers (might happen in Nuke scripts)
data/MIT_LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009-2012 Julik Tarkhanov
1
+ Copyright (c) 2009-2015 Julik Tarkhanov
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -108,7 +108,7 @@ If you want your own copy of the web application at your facility we can discuss
108
108
  * Shake .shk script file
109
109
  * Shake .txt tracker file and Nuke CameraTracker auto tracks export
110
110
  * Syntheyes "All Tracker Paths" export .txt file
111
- * Syntheyes 2D tracker paths file
111
+ * Syntheyes "Tracker 2-D paths" file
112
112
 
113
113
  ### Formats Tracksperanto can export to
114
114
 
@@ -144,8 +144,8 @@ Consult the --help option to see what is available.
144
144
 
145
145
  ## Development
146
146
 
147
- ![Gem Version](https://badge.fury.io/rb/tracksperanto.png)
148
- ![tests](https://secure.travis-ci.org/guerilla-di/tracksperanto.png)
147
+ [![Gem Version](https://badge.fury.io/rb/tracksperanto.svg)](http://badge.fury.io/rb/tracksperanto)
148
+ [![Travis](https://secure.travis-ci.org/guerilla-di/tracksperanto.png)](https://travis-ci.org/guerilla-di/tracksperanto)
149
149
 
150
150
  If you are interested in reusing Tracksperanto's code or adding modules to the software consult
151
151
  the [short developer introduction](https://github.com/guerilla-di/tracksperanto/blob/master/CONTRIBUTING.md)
data/Rakefile CHANGED
@@ -65,5 +65,13 @@ after :test do
65
65
 
66
66
  end
67
67
 
68
+ # Automatically update the LICENSE
69
+ after :test do
70
+ license_path = File.dirname(__FILE__) + "/MIT_LICENSE.txt"
71
+ license_text = File.read(license_path)
72
+ license_text.gsub!(/2009\-(\d+)/, "2009-#{Time.now.year + 1}")
73
+ File.open(license_path, "w"){|f| f << license_text }
74
+ end
75
+
68
76
  task :default => [ :test ]
69
77
 
@@ -3,7 +3,13 @@ class Tracksperanto::Import::Syntheyes < Tracksperanto::Import::Base
3
3
  include Tracksperanto::UVCoordinates
4
4
 
5
5
  def self.human_name
6
- "Syntheyes 2D tracker paths file"
6
+ "Syntheyes \"Tracker 2-D paths\" file"
7
+ end
8
+
9
+ def self.known_snags
10
+ "Syntheyes has two formats for exporting tracks. One is called \"Tracker 2-D paths\" in the menu. " +
11
+ "The other is called \"All Tracker Paths\". You told Tracksperanto to treat your file as " +
12
+ "\"Tracker 2-D paths\", if something goes wrong might be a good idea to try the other Tracksperanto input format"
7
13
  end
8
14
 
9
15
  def each
@@ -7,6 +7,13 @@ class Tracksperanto::Import::SyntheyesAllTrackerPaths < Tracksperanto::Import::B
7
7
  CHARACTERS_OR_QUOTES = /[AZaz"]/
8
8
  TRACKER_KEYFRAME = /^(\d+) ((\d+)\.(\d+)) ((\d+)\.(\d+))/
9
9
 
10
+ def self.known_snags
11
+ "Syntheyes has two formats for exporting tracks. One is called \"Tracker 2-D paths\" in the menu. " +
12
+ "The other is called \"All Tracker Paths\". You told Tracksperanto to treat your file as " +
13
+ "\"All Tracker Paths\", if something goes wrong might be a good idea to try the other Tracksperanto input format"
14
+ end
15
+
16
+
10
17
  def each
11
18
  t = Tracksperanto::Tracker.new
12
19
  while line = @io.gets do
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.5'
8
+ VERSION = '3.5.6'
9
9
 
10
10
  module Import; end
11
11
  module Export; end
@@ -24,6 +24,7 @@ class Tracksperanto::Blacklist
24
24
  /\.(abc|fbx)$/ => 'We cannot import 3D scenes such as Alembic or FBX.',
25
25
  '.3de' => 'We cannot handle 3DE project files directly, please export your 2D tracks in a compatible format instead.',
26
26
  '.bpj' => "We cannot handle Boujou projects directly, please export your feature tracks from Boujou as a text file",
27
+ '.py' => 'We cannot handle Python scripts - please export your 2D tracks in a compatible format instead.'
27
28
  }
28
29
  end
29
30
  end
@@ -8,6 +8,8 @@ class SyntheyesAllPathsImportTest < Test::Unit::TestCase
8
8
  i = Tracksperanto::Import::SyntheyesAllTrackerPaths
9
9
  assert_equal "Syntheyes \"All Tracker Paths\" export .txt file", i.human_name
10
10
  assert !i.autodetects_size?
11
+ assert_not_nil i.known_snags
12
+ assert !i.known_snags.empty?
11
13
  end
12
14
 
13
15
  def test_parsing_from_importable
@@ -6,8 +6,10 @@ class SyntheyesImportTest < Test::Unit::TestCase
6
6
 
7
7
  def test_introspects_properly
8
8
  i = Tracksperanto::Import::Syntheyes
9
- assert_equal "Syntheyes 2D tracker paths file", i.human_name
9
+ assert_equal 'Syntheyes "Tracker 2-D paths" file', i.human_name
10
10
  assert !i.autodetects_size?
11
+ assert_not_nil i.known_snags
12
+ assert !i.known_snags.empty?
11
13
  end
12
14
 
13
15
  def test_parsing_from_importable
@@ -37,6 +37,7 @@ class TestBlacklist < Test::Unit::TestCase
37
37
  file.abc
38
38
  file.3de
39
39
  file.bpj
40
+ file.py
40
41
  ).each do | filename |
41
42
  error = assert_raise(Tracksperanto::UnsupportedFormatError, "Should fail for #{filename.inspect}") do
42
43
  Tracksperanto::Blacklist.raise_if_format_unsupported(filename)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tracksperanto}
8
- s.version = "3.5.5"
8
+ s.version = "3.5.6"
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"]
12
- s.date = %q{2014-11-24}
12
+ s.date = %q{2014-11-29}
13
13
  s.default_executable = %q{tracksperanto}
14
14
  s.description = %q{Converts 2D track exports between different apps like Flame, MatchMover, PFTrack...}
15
15
  s.email = %q{me@julik.nl}
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 5
9
- - 5
10
- version: 3.5.5
9
+ - 6
10
+ version: 3.5.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Julik Tarkhanov
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2014-11-24 00:00:00 +01:00
18
+ date: 2014-11-29 00:00:00 +01:00
19
19
  default_executable: tracksperanto
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency