forked from arthurnn/memcached
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
30 lines (26 loc) · 1015 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
require 'echoe'
Echoe.new("memcached") do |p|
p.author = "Evan Weaver"
p.project = "fauna"
p.summary = "An interface to the libmemcached C client."
p.url = "http://blog.evanweaver.com/files/doc/fauna/memcached/"
p.docs_host = "blog.evanweaver.com:~/www/bax/public/files/doc/"
p.rdoc_pattern = /README|TODO|LICENSE|CHANGELOG|BENCH|COMPAT|exceptions|behaviors|rails.rb|memcached.rb/
end
task :exceptions do
$LOAD_PATH << "lib"
require 'memcached'
Memcached.constants.sort.each do |const_name|
const = Memcached.send(:const_get, const_name)
next if const == Memcached::Success or const == Memcached::Stored
if const.is_a? Class and const < Memcached::Error
puts "* Memcached::#{const_name}"
end
end
end
task :valgrind do
exec("valgrind --tool=memcheck --leak-check=yes --show-reachable=no --num-callers=15 --track-fds=yes ruby #{File.dirname(__FILE__)}/test/profile/valgrind.rb")
end
task :profile do
exec("ruby #{File.dirname(__FILE__)}/test/profile/profile.rb")
end