Sha256: 686095bab6399e4c6fa2a5a80a07f00477cdcddb76da7c720f956785a08dbf15

Contents?: true

Size: 1.78 KB

Versions: 3

Compression:

Stored size: 1.78 KB

Contents

.@ PackageName :: "ScoreAggregation"

#
# Main Flow
#

Rule Main
  input '*.score'.all
  input 'stat-template.erb'
  output '*.stat.md'.all
  output '*.png'.all
  output '*.html'.all
Flow
  rule PersonalPreStatistics
  rule PersonalStatistics
  rule PersonalBarGraph
  rule TotalMean
  rule TotalStatistics
  rule Histgram
  rule BuildHTML
End

#
#  Personal Aggregations
#

Rule PersonalPreStatistics
  input '*.score'
  output '{$*}.pre-stat.md'
  output '{$*}.mean'
Action
  personal-pre-statistics.rb
End

Rule PersonalStatistics
  input '*.pre-stat.md'
  input '{$*}.dev'
  output '{$*}.stat.md'
Action
   echo "| Deviaion | `cat {$I[2]}` |" | cat {$I[1]} - > {$O[1]}
End

Rule PersonalBarGraph
  input '*.score'
  output '{$*}_bar-graph.png'
Action
  personal-bar-graph.sh
End

#
# Total Aggregations
#

Rule TotalMean
  input '*.mean'.all
  output 'total.mean'
Action
  total-mean.rb > {$O[1]}
End

Rule TotalStatistics
  input '*.score'.all
  input '*.mean'.except('total.mean').all
  input 'total.mean'
  output '*.dev'.all
  output 'total.stat.md'
Action
  total-statistics.rb
End

#
# Histgram
#

Rule Histgram
  input '*.mean'.except('total.mean').all
  output 'histgram.png'
Flow
  rule MeanSummary
  rule HistgramGraph
End

Rule MeanSummary
  input '*.mean'.all
  output 'total.histgram'
Action
  mean-summary.rb > {$O[1]}
End

Rule HistgramGraph
  input 'total.histgram'
  output 'histgram.png'
Action
  histgram-graph.sh
End

#
# Build HTML View
#

Rule BuildHTML
  input '*.stat.md'
  input 'stat-template.erb'
  output '{$*}.html'
Flow
  rule MD2HTML
  rule ApplyTemplate
End

Rule MD2HTML
  input '*.stat.md'
  output '{$*}.html.part'
Action
  kramdown {$I[1]} > {$O[1]}
End

Rule ApplyTemplate
  input '*.html.part'
  input 'stat-template.erb'
  output '{$*}.html'
Action
  apply-template.rb > {$O[1]}
End

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pione-0.4.2 example/ScoreAggregation/ScoreAggregation.pione
pione-0.4.1 example/ScoreAggregation/ScoreAggregation.pione
pione-0.4.0 example/ScoreAggregation/ScoreAggregation.pione