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

Version Path
statsample-1.1.0 grab_references.rb
statsample-1.0.1 grab_references.rb
statsample-1.0.0 grab_references.rb
statsample-0.18.0 grab_references.rb
statsample-bivariate-extension-0.16.1 grab_references.rb
statsample-0.17.0 grab_references.rb
statsample-bivariate-extension-0.16.0 grab_references.rb
statsample-0.16.0 grab_references.rb
statsample-0.15.1 grab_references.rb
statsample-0.15.0 grab_references.rb