forked from fiveruns/memcache-client
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathRakefile
42 lines (36 loc) · 1.12 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
# vim: syntax=Ruby
require 'rubygems'
require 'rake/rdoctask'
require 'rake/testtask'
require File.dirname(__FILE__) + "/lib/memcache/version.rb"
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "memcache-client"
s.version = MemCache::VERSION
s.summary = s.description = "A Ruby library for accessing memcached."
s.email = "[email protected]"
s.homepage = "http://github.com/mperham/memcache-client"
s.authors = ['Eric Hodel', 'Robert Cottrell', 'Mike Perham']
s.has_rdoc = true
s.files = FileList["[A-Z]*", "{lib,test}/**/*", 'performance.txt']
s.test_files = FileList["test/test_*.rb"]
s.executables = ['memcached_top']
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it for jeweler-related tasks with: sudo gem install jeweler"
end
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_files.include("README.rdoc", "FAQ.rdoc", "History.rdoc", "lib/memcache.rb")
rd.rdoc_dir = 'doc'
end
Rake::TestTask.new do |t|
t.warning = true
t.libs = ['lib', 'test']
end
task :default => :test
task :rcov do
`rcov -Ilib test/*.rb`
end