cuporter 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -56,7 +56,7 @@ namespace :cuporter do
56
56
 
57
57
  spec = Gem::Specification.new do |s|
58
58
  s.name = 'cuporter'
59
- s.version = '0.3.1'
59
+ s.version = '0.3.2'
60
60
  s.rubyforge_project = s.name
61
61
 
62
62
  s.platform = Gem::Platform::RUBY
@@ -7,9 +7,12 @@ module Cuporter
7
7
  ","
8
8
  end
9
9
 
10
- def line(number, line)
11
- line.sub!(/^#{tab}/, "#{number}#{tab}") if number
12
- line
10
+ def line(number, empty_columns, name)
11
+ empty_columns.sub!(/^#{tab}/, "#{number}#{tab}") if number
12
+ name.gsub!(tab, ";")
13
+ name.sub!(/^\|/, '')
14
+ name.gsub!("|", tab)
15
+ empty_columns + name
13
16
  end
14
17
 
15
18
  end
@@ -7,7 +7,8 @@ module Cuporter
7
7
  @tab ||= @number_scenarios ? " " : " "
8
8
  end
9
9
 
10
- def line(number, line)
10
+ def line(number, empty_columns, name)
11
+ line = empty_columns + name
11
12
  if @number_scenarios
12
13
  number_string = number ? "#{number}." : ""
13
14
  number_field = number_string.rjust(self.class::COL_WIDTH, " ")
@@ -4,12 +4,12 @@ module Cuporter
4
4
  module TextMethods
5
5
 
6
6
  def write_node(node, tab_stops)
7
- @output.puts line(node.number, "#{tab * tab_stops}#{node.name}")
7
+ @output.puts line(node.number, "#{tab * tab_stops}", node.name)
8
8
  node.children.each do |child|
9
9
  if child.has_children?
10
10
  write_node(child, tab_stops + 1)
11
11
  else
12
- @output.puts line(child.number, "#{tab * tab_stops}#{tab }#{child.name}")
12
+ @output.puts line(child.number, "#{tab * tab_stops}#{tab }", child.name)
13
13
  end
14
14
  end
15
15
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuporter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 2
10
+ version: 0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tim Camper
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-05 00:00:00 -04:00
18
+ date: 2011-01-28 00:00:00 -05:00
19
19
  default_executable: cuporter
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -47,40 +47,40 @@ files:
47
47
  - LICENSE
48
48
  - README.textile
49
49
  - Rakefile
50
- - lib/cuporter/tag_list_parser.rb
50
+ - lib/cuporter/cli/filter_args_builder.rb
51
+ - lib/cuporter/cli/options.rb
51
52
  - lib/cuporter/example_set_node.rb
52
- - lib/cuporter/formatter/tag_report/csv.rb
53
- - lib/cuporter/formatter/tag_report/text_node_writer.rb
54
- - lib/cuporter/formatter/tag_report/text.rb
55
- - lib/cuporter/formatter/tag_report/html_node_writer.rb
56
- - lib/cuporter/formatter/tag_report/html.rb
57
- - lib/cuporter/formatter/pretty_text_methods.rb
58
- - lib/cuporter/formatter/html_node_writer.rb
59
- - lib/cuporter/formatter/html_methods.rb
53
+ - lib/cuporter/extensions/string.rb
54
+ - lib/cuporter/feature_parser.rb
55
+ - lib/cuporter/filter.rb
60
56
  - lib/cuporter/formatter/csv_text_methods.rb
61
- - lib/cuporter/formatter/writer.rb
62
- - lib/cuporter/formatter/text_methods.rb
57
+ - lib/cuporter/formatter/html_methods.rb
58
+ - lib/cuporter/formatter/html_node_writer.rb
63
59
  - lib/cuporter/formatter/name_report/csv.rb
64
- - lib/cuporter/formatter/name_report/text_node_writer.rb
65
- - lib/cuporter/formatter/name_report/text.rb
66
- - lib/cuporter/formatter/name_report/html_node_writer.rb
67
60
  - lib/cuporter/formatter/name_report/html.rb
68
- - lib/cuporter/report/report.rb
61
+ - lib/cuporter/formatter/name_report/html_node_writer.rb
62
+ - lib/cuporter/formatter/name_report/text.rb
63
+ - lib/cuporter/formatter/name_report/text_node_writer.rb
64
+ - lib/cuporter/formatter/pretty_text_methods.rb
65
+ - lib/cuporter/formatter/tag_report/csv.rb
66
+ - lib/cuporter/formatter/tag_report/html.rb
67
+ - lib/cuporter/formatter/tag_report/html_node_writer.rb
68
+ - lib/cuporter/formatter/tag_report/text.rb
69
+ - lib/cuporter/formatter/tag_report/text_node_writer.rb
70
+ - lib/cuporter/formatter/text_methods.rb
71
+ - lib/cuporter/formatter/writer.rb
72
+ - lib/cuporter/name_list_parser.rb
73
+ - lib/cuporter/node.rb
74
+ - lib/cuporter/node_numberer.rb
69
75
  - lib/cuporter/report/name_report.rb
76
+ - lib/cuporter/report/report.rb
70
77
  - lib/cuporter/report/tag_report.rb
71
- - lib/cuporter/cli/filter_args_builder.rb
72
- - lib/cuporter/cli/options.rb
73
78
  - lib/cuporter/tag_list_node.rb
74
- - lib/cuporter/extensions/string.rb
75
- - lib/cuporter/feature_parser.rb
76
- - lib/cuporter/node.rb
77
- - lib/cuporter/name_list_parser.rb
78
- - lib/cuporter/filter.rb
79
- - lib/cuporter/node_numberer.rb
79
+ - lib/cuporter/tag_list_parser.rb
80
80
  - lib/cuporter.rb
81
- - lib/cuporter/formatter/tag_report/style.css
82
- - lib/cuporter/formatter/name_report/style.css
83
81
  - lib/cuporter/formatter/cuporter.css
82
+ - lib/cuporter/formatter/name_report/style.css
83
+ - lib/cuporter/formatter/tag_report/style.css
84
84
  - lib/cuporter/formatter/jquery-min.js
85
85
  - bin/cuporter
86
86
  has_rdoc: true