-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
30 lines (26 loc) · 941 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- ruby -*-
$:.unshift File.join(File.dirname(__FILE__),"lib")
require 'rubygems'
#require 'bundler/setup'
require 'hoe'
require 'spillbot'
require 'spillbot/poster'
namespace :hoe do
Hoe.spec 'spillbot' do |prj|
developer('thessaloniki.rb', 'thessaloniki-rb@gmail.com' )
prj.version=Spillbot::Version::STRING
prj.summary = 'spillbot handles the publishing of thessaloniki.rb meetup information'
prj.description = prj.paragraphs_of('README.txt', 1..4).join("\n\n")
prj.url = "https://github.com/thessaloniki/spillbot"
prj.changes = prj.paragraphs_of('History.txt', 0..1).join("\n\n")
end
end
desc "Generate the meetup poster"
task :poster do |t|
template_file=File.join(File.dirname(__FILE__),'template','tmpl_thessrb.svg')
output="poster.svg"
meetup=YAML.load(File.read(ENV['MEETUP']))
svg=generate_poster(meetup,template_file)
File.open(output,"wb"){ |f| f.write(svg) }
end
# vim: syntax=ruby