Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 77 lines (68 sloc) 2.667 kB
7bcabe6 Use echoe 4.5.6.
Evan Weaver authored
1 gem 'echoe', '>= 4.5.6'
1bd6ba8 @evan hmm
authored
2 require 'echoe'
3
4 Echoe.new("memcached") do |p|
5 p.author = "Evan Weaver"
6 p.project = "fauna"
c1043e7 @evan description
authored
7 p.summary = "An interface to the libmemcached C client."
3ce714a Better module naming. Oops.
Evan Weaver authored
8 p.rdoc_pattern = /README|TODO|LICENSE|CHANGELOG|BENCH|COMPAT|exceptions|experimental.rb|behaviors|rails.rb|memcached.rb/
78d2cc6 Clean up the clean task. How meta.
Brandon Mitchell authored
9 p.clean_pattern += ["ext/Makefile",
10 "ext/bin",
11 "ext/include",
12 "ext/lib",
13 "ext/share",
14 "ext/**/Makefile",
15 "ext/libmemcached-*/clients/memcat",
16 "ext/libmemcached-*/clients/memcp",
17 "ext/libmemcached-*/clients/memdump",
18 "ext/libmemcached-*/clients/memerror",
19 "ext/libmemcached-*/clients/memflush",
20 "ext/libmemcached-*/clients/memrm",
21 "ext/libmemcached-*/clients/memslap",
22 "ext/libmemcached-*/clients/memstat",
23 "ext/libmemcached-*/config.h",
24 "ext/libmemcached-*/config.log",
25 "ext/libmemcached-*/config.status",
26 "ext/libmemcached-*/docs/*.[1,3]",
27 "ext/libmemcached-*/libmemcached/memcached_configure.h",
28 "ext/libmemcached-*/libtool",
29 "ext/libmemcached-*/stamp*",
30 "ext/libmemcached-*/support/libmemcached.pc",
31 "ext/libmemcached-*/support/libmemcached-fc.spec",
32 "ext/libmemcached-*/**/*.[sl]?[oa]",
33 "ext/conftest.dSYM",
34 "lib/rlibmemcached*"]
79d8b76 @evan more docs
authored
35 end
36
37 task :exceptions do
38 $LOAD_PATH << "lib"
39 require 'memcached'
40 Memcached.constants.sort.each do |const_name|
41 const = Memcached.send(:const_get, const_name)
42 next if const == Memcached::Success or const == Memcached::Stored
43 if const.is_a? Class and const < Memcached::Error
44 puts "* Memcached::#{const_name}"
45 end
46 end
1bd6ba8 @evan hmm
authored
47 end
e57d4de @evan Add rake task for valgrind; update README.
authored
48
da9df5f Ruby 1.9 compatibility for zero-copy strings. Enforce better release …
Evan Weaver authored
49 task :test_all do
50 if !system("rvm use ree-1.8.7-2010.02 && rake clean && rake")
51 puts "REE test failed"
52 exit(1)
53 end
54 if !system("rvm use ruby-1.9.2 && rake clean && rake")
55 puts "1.9 test failed"
56 exit(1)
57 end
58 end
59
7bcabe6 Use echoe 4.5.6.
Evan Weaver authored
60 task :prerelease => [:test_all]
da9df5f Ruby 1.9 compatibility for zero-copy strings. Enforce better release …
Evan Weaver authored
61
b013b58 new profile scripts
Evan Weaver authored
62 task :benchmark do
63 exec("ruby #{File.dirname(__FILE__)}/test/profile/benchmark.rb")
e57d4de @evan Add rake task for valgrind; update README.
authored
64 end
7a9798d @evan Profiling task that wraps the valgrind helper.
authored
65
d486a34 Add C profiling.
Evan Weaver authored
66 task :rb_profile do
67 exec("ruby #{File.dirname(__FILE__)}/test/profile/rb_profiler.rb")
68 end
69
70 task :c_profile do
71 exec("ruby #{File.dirname(__FILE__)}/test/profile/c_profiler.rb")
72 end
73
74 task :valgrind do
75 exec("ruby #{File.dirname(__FILE__)}/test/profile/valgrind.rb")
7a9798d @evan Profiling task that wraps the valgrind helper.
authored
76 end
Something went wrong with that request. Please try again.