reportbuilder 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig ADDED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ === 1.2.2 / 2010-04-06
2
+ * Bug fix: Table should be parsed with #preformatted, not #text on Text output
3
+
1
4
  === 1.2.1 / 2010-03-29
2
5
  * ReportBuilder#add returns self, to create chain of adds
3
6
  * Changes on documentation, replacing Generator for Builder
data/Rakefile CHANGED
@@ -6,8 +6,8 @@ require 'rubygems'
6
6
  require 'hoe'
7
7
  require 'reportbuilder'
8
8
 
9
-
10
9
  Hoe.spec 'reportbuilder' do
10
+ self.testlib=:minitest
11
11
  self.version=ReportBuilder::VERSION
12
12
  self.rubyforge_name = 'ruby-statsample'
13
13
  self.developer('Claudio Bustos', 'clbustos_at_gmail.com')
data/lib/reportbuilder.rb CHANGED
@@ -53,7 +53,7 @@ class ReportBuilder
53
53
  # Doesn't print a title if set to true
54
54
  attr_accessor :no_title
55
55
  # ReportBuilder version
56
- VERSION = '1.2.1'
56
+ VERSION = '1.2.2'
57
57
 
58
58
  FormatNotFound=Class.new(Exception)
59
59
  # Available formats
@@ -23,7 +23,7 @@ class ReportBuilder
23
23
  end
24
24
  row_i=1
25
25
  next_with_hr=false
26
- @t.rows.each_with_index{|row|
26
+ @t.rows.each_with_index{|row,row_i|
27
27
  if row==:hr
28
28
  next_with_hr=true
29
29
  # Nothing
@@ -33,7 +33,7 @@ class ReportBuilder
33
33
  create_hr(row_i)
34
34
  next_with_hr=false
35
35
  end
36
- row_i+=1
36
+ #row_i+=1
37
37
  end
38
38
  }
39
39
 
@@ -17,7 +17,7 @@ class ReportBuilder
17
17
  tt.rows=t.rows.map {|row| parse_row(row)}
18
18
  end
19
19
  #pp table.rows
20
- @builder.text(table.to_s)
20
+ @builder.preformatted(table.to_s)
21
21
  end
22
22
  # Parse a row
23
23
  def parse_row(row)
metadata CHANGED
@@ -5,16 +5,37 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 2
8
- - 1
9
- version: 1.2.1
8
+ - 2
9
+ version: 1.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Claudio Bustos
13
13
  autorequire:
14
14
  bindir: bin
15
- cert_chain: []
15
+ cert_chain:
16
+ - |
17
+ -----BEGIN CERTIFICATE-----
18
+ MIIDMjCCAhqgAwIBAgIBADANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhjbGJ1
19
+ c3RvczEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
20
+ MB4XDTEwMDMyOTIxMzg1NVoXDTExMDMyOTIxMzg1NVowPzERMA8GA1UEAwwIY2xi
21
+ dXN0b3MxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
22
+ bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALf8JVMGqE7m5kYb+PNN
23
+ neZv2pcXV5fQCi6xkyG8bi2/SIFy/LyxuvLzEeOxBeaz1Be93bayIUquOIqw3dyw
24
+ /KXWa31FxuNuvAm6CN8fyeRYX/ou4cw3OIUUnIvB7RMNIu4wbgeM6htV/QEsNLrv
25
+ at1/mh9JpqawPrcjIOVMj4BIp67vmzJCaUf+S/H2uYtSO09F+YQE3tv85TPeRmqU
26
+ yjyXyTc/oJiw1cXskUL8UtMWZmrwNLHXuZWWIMzkjiz3UNdhJr/t5ROk8S2WPznl
27
+ 0bMy/PMIlAbqWolRn1zl2VFJ3TaXScbqImY8Wf4g62b/1ZSUlGrtnLNsCYXrWiso
28
+ UPUCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFGu9
29
+ rrJ1H64qRmNNu3Jj/Qjvh0u5MA0GCSqGSIb3DQEBBQUAA4IBAQCV0Unka5isrhZk
30
+ GjqSDqY/6hF+G2pbFcbWUpjmC8NWtAxeC+7NGV3ljd0e1SLfoyBj4gnFtFmY8qX4
31
+ K02tgSZM0eDV8TpgFpWXzK6LzHvoanuahHLZEtk/+Z885lFene+nHadkem1n9iAB
32
+ cs96JO9/JfFyuXM27wFAwmfHCmJfPF09R4VvGHRAvb8MGzSVgk2i06OJTqkBTwvv
33
+ JHJdoyw3+8bw9RJ+jLaNoQ+xu+1pQdS2bb3m7xjZpufml/m8zFCtjYM/7qgkKR8z
34
+ /ZZt8lCiKfFArppRrZayE2FVsps4X6WwBdrKTMZ0CKSXTRctbEj1BAZ67eoTvBBt
35
+ rpP0jjs0
36
+ -----END CERTIFICATE-----
16
37
 
17
- date: 2010-03-29 00:00:00 -03:00
38
+ date: 2010-04-06 00:00:00 -04:00
18
39
  default_executable:
19
40
  dependencies:
20
41
  - !ruby/object:Gem::Dependency
@@ -58,24 +79,10 @@ dependencies:
58
79
  version: 2.0.4
59
80
  type: :development
60
81
  version_requirements: *id003
61
- - !ruby/object:Gem::Dependency
62
- name: gemcutter
63
- prerelease: false
64
- requirement: &id004 !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- segments:
69
- - 0
70
- - 5
71
- - 0
72
- version: 0.5.0
73
- type: :development
74
- version_requirements: *id004
75
82
  - !ruby/object:Gem::Dependency
76
83
  name: nokogiri
77
84
  prerelease: false
78
- requirement: &id005 !ruby/object:Gem::Requirement
85
+ requirement: &id004 !ruby/object:Gem::Requirement
79
86
  requirements:
80
87
  - - ~>
81
88
  - !ruby/object:Gem::Version
@@ -84,21 +91,21 @@ dependencies:
84
91
  - 4
85
92
  version: "1.4"
86
93
  type: :development
87
- version_requirements: *id005
94
+ version_requirements: *id004
88
95
  - !ruby/object:Gem::Dependency
89
96
  name: hoe
90
97
  prerelease: false
91
- requirement: &id006 !ruby/object:Gem::Requirement
98
+ requirement: &id005 !ruby/object:Gem::Requirement
92
99
  requirements:
93
100
  - - ">="
94
101
  - !ruby/object:Gem::Version
95
102
  segments:
96
103
  - 2
97
- - 5
98
- - 1
99
- version: 2.5.1
104
+ - 6
105
+ - 0
106
+ version: 2.6.0
100
107
  type: :development
101
- version_requirements: *id006
108
+ version_requirements: *id005
102
109
  description: Report Abstract Interface. Creates text, html and rtf output, based on a common framework.
103
110
  email:
104
111
  - clbustos_at_gmail.com
metadata.gz.sig ADDED
Binary file