-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
41 lines (33 loc) · 990 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
29
30
31
32
33
34
35
36
37
38
39
40
41
# Look in the tasks/setup.rb file for the various options that can be
# configured in this Rakefile. The .rake files in the tasks directory
# are where the options are used.
begin
require 'bones'
Bones.setup
rescue LoadError
begin
load 'tasks/setup.rb'
rescue LoadError
raise RuntimeError, '### please install the "bones" gem ###'
end
end
ensure_in_path 'lib'
require 'surpass'
task :default => 'spec:run'
PROJ.name = 'surpass'
PROJ.authors = 'Ana Nelson'
PROJ.email = 'ana@ananelson.com'
PROJ.url = 'https://surpass.rubyforge.org'
PROJ.version = Surpass::VERSION
PROJ.rubyforge.name = 'surpass'
PROJ.ignore_file = '.bzrignore'
PROJ.spec.opts << '--color'
PROJ.exclude = %w{.bzr webby surpass-manual-* examples spec tasks stats .DS_Store}
desc "Run all examples (except the big ones) in examples dir."
task :examples do
`ls examples/*.rb`.chomp.split("\n").each_with_index do |f, i|
next if f =~ /big/
puts "processing #{f}..."
`ruby #{f}`
end
end