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

Version Path
graph-2.6.0 Rakefile
graph-2.5.3 Rakefile
graph-2.5.2 Rakefile
graph-2.5.1 Rakefile
graph-2.5.0 Rakefile
graph-2.4.1 Rakefile
graph-2.4.0 Rakefile
graph-2.3.1 Rakefile
graph-2.3.0 Rakefile
graph-2.2.0 Rakefile
graph-2.1.0 Rakefile
graph-2.0.1 Rakefile
graph-2.0.0 Rakefile