Sha256: 5cc599af0445f8ab7aba61e97389c7ea63abf8c75e856621f5d15431497655b6
Contents?: true
Size: 567 Bytes
Versions: 1
Compression:
Stored size: 567 Bytes
Contents
# -*- ruby -*- require 'rubygems' require 'hoe' require './lib/graph.rb' Hoe.plugin :seattlerb Hoe.spec 'graph' do developer 'Ryan Davis', 'ryand-ruby@zenspider.com' self.rubyforge_name = 'seattlerb' end gallery = Dir["gallery/*.rb"] pngs = gallery.map { |f| f.sub(/\.rb$/, ".png") } dots = gallery.map { |f| f.sub(/\.rb$/, ".dot") } file pngs file dots task :gallery => pngs rule ".png" => ".rb" do |t| Dir.chdir "gallery" do ruby "-I../lib #{File.basename t.source}" end end task :clean do rm_f Dir[*pngs] + Dir[*dots] end # vim: syntax=ruby
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
graph-2.7.0 | Rakefile |