Sha256: 83523ddf6a1af9c57d7a535301034f945f7f6cd3843d8d6c266233bfd73f6df3

Contents?: true

Size: 546 Bytes

Versions: 6

Compression:

Stored size: 546 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'
  license "MIT"
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

6 entries across 6 versions & 1 rubygems

Version Path
graph-2.11.1 Rakefile
graph-2.11.0 Rakefile
graph-2.10.0 Rakefile
graph-2.9.1 Rakefile
graph-2.9.0 Rakefile
graph-2.8.2 Rakefile