tracksperanto 2.6.2 → 2.6.3

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/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 2.6.3 / 2011-31-07
2
+
3
+ * Report progress from the parser for Flame, like it has been before
4
+
1
5
  === 2.6.2 / 2011-30-07
2
6
 
3
7
  * Fix missing progress percentages in the Flame import module
data/Rakefile CHANGED
@@ -10,7 +10,12 @@ begin
10
10
  p.extra_rdoc_files = FileList['*.rdoc'] + FileList['*.txt']
11
11
  p.version = Tracksperanto::VERSION
12
12
 
13
- p.extra_deps = {"flame_channel_parser" => "~> 2.1", "progressbar" => "~> 0.9", "update_hints" => "~> 1.0" }
13
+ p.extra_deps = {
14
+ "flame_channel_parser" => "2.2.1",
15
+ "progressbar" => "~> 0.9",
16
+ "update_hints" => "~> 1.0"
17
+ }
18
+
14
19
  p.extra_dev_deps = {"flexmock" => "~> 0.8", "cli_test" => "~>1.0"}
15
20
 
16
21
  p.developer('Julik Tarkhanov', 'me@julik.nl')
@@ -61,8 +61,10 @@ class Tracksperanto::Import::FlameStabilizer < Tracksperanto::Import::Base
61
61
  end
62
62
 
63
63
  def extract_channels_from_stream(io)
64
- parser = StabilizerParser.new(&method(:report_progress))
64
+ parser = StabilizerParser.new
65
+ parser.logger_proc = method(:report_progress)
65
66
  channels = parser.parse(io)
67
+
66
68
  [channels, channels.map{|c| c.path }]
67
69
  end
68
70
 
data/lib/tracksperanto.rb CHANGED
@@ -5,7 +5,7 @@ require 'flame_channel_parser'
5
5
 
6
6
  module Tracksperanto
7
7
  PATH = File.expand_path(File.dirname(__FILE__))
8
- VERSION = '2.6.2'
8
+ VERSION = '2.6.3'
9
9
 
10
10
  module Import; end
11
11
  module Export; end
@@ -86,11 +86,18 @@ class FlameImportTest < Test::Unit::TestCase
86
86
  assert_equal 61, trackers[0].length
87
87
  end
88
88
 
89
- # a failing setup from flame 2012
90
89
  def test_from_flame2012_with_empty_trackers
91
90
  fixture = File.open(File.dirname(__FILE__) + '/samples/flame_stabilizer/flame_2012_another.stabilizer')
92
91
  trackers = Tracksperanto::Import::FlameStabilizer.new(:io => fixture).to_a
93
92
  assert_equal 1, trackers.length
94
93
  assert_equal 100, trackers[0].length
95
94
  end
95
+
96
+ def test_from_flame2012_with_traced_messages
97
+ fixture = File.open(File.dirname(__FILE__) + '/samples/flame_stabilizer/flame_2012_another.stabilizer')
98
+ output = ""
99
+ progress_block = lambda {|msg| output << msg }
100
+ trackers = Tracksperanto::Import::FlameStabilizer.new(:io => fixture, :progress_block => progress_block).to_a
101
+ assert output.include?('Parsing channel "tracker1/shift/x"')
102
+ end
96
103
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: tracksperanto
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.6.2
5
+ version: 2.6.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Julik Tarkhanov
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-30 00:00:00 Z
13
+ date: 2011-07-31 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: flame_channel_parser
@@ -18,9 +18,9 @@ dependencies:
18
18
  requirement: &id001 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
- - - ~>
21
+ - - "="
22
22
  - !ruby/object:Gem::Version
23
- version: "2.1"
23
+ version: 2.2.1
24
24
  type: :runtime
25
25
  version_requirements: *id001
26
26
  - !ruby/object:Gem::Dependency