Sha256: fe71b034d3e4f43378ceeea0429b61e818059604f905111ef4533d2027df8b91

Contents?: true

Size: 530 Bytes

Versions: 3

Compression:

Stored size: 530 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'
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

3 entries across 3 versions & 1 rubygems

Version Path
graph-2.8.1 Rakefile
graph-2.8.0 Rakefile
graph-2.7.1 Rakefile