/
Rakefile
55 lines (45 loc) · 1.28 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# -*- ruby -*-
require 'rubygems'
require 'hoe'
module Rubygoo
VERSION = '0.1.0'
end
Hoe.new('rubygoo', Rubygoo::VERSION) do |p|
p.developer('Shawn Anderson', 'shawn42@gmail.com')
p.author = "Shawn Anderson"
p.description = "GUI library for use with Gosu or Rubygame"
p.email = 'shawn42@gmail.com'
p.summary = "Easy to use gui library for Rubygame or Gosu."
p.url = "http://rubygoo.googlecode.com"
p.changes = p.paragraphs_of('History.txt', 12..13).join("\n\n")
p.remote_rdoc_dir = '' # Release to root
p.extra_deps << ['constructor']
p.extra_deps << ['publisher']
p.extra_deps << ['rspec']
end
# run rubygame_app
task :run do
# this is for convenience on os x
sh "rsdl samples/rubygame_app.rb"
end
STATS_DIRECTORIES = [
%w(Source lib/)
].collect { |name, dir| [ name, "#{dir}" ] }.select { |name, dir| File.directory?(dir) }
desc "Report code statistics (KLOCs, etc) from the application"
task :stats do
require 'code_statistics'
CodeStatistics.new(*STATS_DIRECTORIES).to_s
end
begin
require 'rake'
require 'spec/rake/spectask'
desc "Run all specs"
Spec::Rake::SpecTask.new('specs') do |t|
t.spec_files = FileList['test/*_spec.rb']
end
rescue LoadError
task :spec do
puts "ERROR: RSpec is not installed?"
end
end
# vim: syntax=Ruby