Sha256: 67c96f8e7b2e93140668a3f48a47242cc891c63de065a824395e9034335f88fa
Contents?: true
Size: 433 Bytes
Versions: 10
Compression:
Stored size: 433 Bytes
Contents
#!/usr/bin/env ruby1.9 require 'reportbuilder' refs=[] Dir.glob "**/*.rb" do |f| reference=false File.open(f).each_line do |l| if l=~/== Reference/ reference=true elsif reference if l=~/\*\s+(.+)/ refs.push $1 else reference=false end end end end rb=ReportBuilder.new(:name=>"References") do |g| refs.uniq.sort.each do |r| g.text "* #{r}" end end rb.save_text("references.txt")
Version data entries
10 entries across 10 versions & 2 rubygems