-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
42 lines (34 loc) · 1.01 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
require 'rubygems'
require 'lib/asciimo'
Gem::Specification.new do |gem|
$gemspec = gem
gem.name = gem.rubyforge_project = "asciimo"
gem.version = Asciimo::VERSION
gem.summary = "create awesome ascii art with ruby"
gem.description = "uses asciimo.js to generate colored ascii art text in 300+ fonts. It can be used from the commandline or inside Ruby code."
gem.email = "cowboyd@thefrontside.net"
gem.homepage = "http://github.com/cowboyd/asciimo.rb"
gem.authors = ["Charles Lowell"]
gem.executables = ["asciimo"]
gem.require_paths = ["lib"]
gem.add_dependency "therubyracer", ">= 0.7.4"
gem.files = Rake::FileList.new("**/*").tap do |manifest|
manifest.exclude "**/*.gem"
end
end
desc "Build gem"
task :gem => :gemspec do
Gem::Builder.new($gemspec).build
end
desc "build the gemspec"
task :gemspec => :clean do
File.open("#{$gemspec.name}.gemspec", "w") do |f|
f.write($gemspec.to_ruby)
end
end
task :clean do
sh "rm -rf *.gem"
end
for file in Dir['tasks/*.rake']
load file
end