/[Frey]/trunk/lib/Frey/Run.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Run.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 358 by dpavlin, Sun Nov 16 16:36:53 2008 UTC revision 363 by dpavlin, Sun Nov 16 17:50:25 2008 UTC
# Line 115  sub html { Line 115  sub html {
115                          } elsif ( $self->run eq 'sponge' ) {                          } elsif ( $self->run eq 'sponge' ) {
116                                  my $data = $o->sponge;                                  my $data = $o->sponge;
117                                  confess "invalid data from sponge = ", dump( $data ) unless ref($data) eq 'HASH';                                  confess "invalid data from sponge = ", dump( $data ) unless ref($data) eq 'HASH';
118                                  $html .= "<strong>" . $#{ $data->{rows} } . "</strong> rows from <code>$class->new" . dump( $self->params ) . "->sponge</code>";                                  my $rows = $#{ $data->{rows} } + 1;
119                                    $rows ||= 'no';
120                                    $html .= "<strong>$rows</strong> rows from <code>$class->new" . dump( $self->params ) . "->sponge</code>";
121                                  $html .= '<table>';                                  $html .= '<table>';
122                                  $html .= '<tr><th>' . join('</th><th>', @{$data->{NAME}} ) . '</th></tr>';                                  $html .= '<tr><th>' . join('</th><th>', @{$data->{NAME}} ) . '</th></tr>';
123                                  $html .= '<tr><td>' . join('</td><td>', @$_ ) . '</td></tr>' foreach @{ $data->{rows} };                                  $html .= '<tr><td>' . join('</td><td>', @$_ ) . '</td></tr>' foreach @{ $data->{rows} };
# Line 123  sub html { Line 125  sub html {
125                          } elsif ( $self->run eq 'data' ) {                          } elsif ( $self->run eq 'data' ) {
126                                  my $data = $o->data;                                  my $data = $o->data;
127                                  $html .= Frey::Dumper->new( data => $data )->markup;                                  $html .= Frey::Dumper->new( data => $data )->markup;
128                                  $html .= '<hr/><code>' . $self->html_dump( $data ) . '</code>';                                  $html .= '<hr/><span class="frey-popdown">dump<span><code>' . $self->html_dump( $data ) . '</code></span></span>';
129                          } else {                          } else {
130                                  $html = $self->error( "IGNORE: $class ", $o->dump );                                  $html = $self->error( "IGNORE: $class ", $o->dump );
131                          }                          }

Legend:
Removed from v.358  
changed lines
  Added in v.363

  ViewVC Help
Powered by ViewVC 1.1.26