Sha256: a35085a8d94bdc1d9e63c83dbd997b8bd9c9d501845e9d0e11cca6fc04eced62
Contents?: true
Size: 567 Bytes
Versions: 13
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
13 entries across 13 versions & 1 rubygems