forked from delano/redis-dump
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
48 lines (42 loc) · 1.37 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
require "rubygems"
require "rake"
require "rake/clean"
require 'yaml'
begin
require 'hanna/rdoctask'
rescue LoadError
require 'rake/rdoctask'
end
config = YAML.load_file("VERSION.yml")
task :default => ["build"]
CLEAN.include [ 'pkg', 'doc' ]
name = "redis-dump"
begin
require "jeweler"
Jeweler::Tasks.new do |gem|
gem.version = "#{config[:MAJOR]}.#{config[:MINOR]}.#{config[:PATCH]}"
gem.name = "redis-dump"
gem.rubyforge_project = gem.name
gem.summary = "Backup and restore your Redis data to and from JSON."
gem.description = gem.summary
gem.email = "delano@solutious.com"
gem.homepage = "http://github.com/delano/redis-dump"
gem.authors = ["Delano Mandelbaum"]
gem.add_dependency("yajl-ruby", ">= 0.1")
gem.add_dependency("redis", ">= 2.0")
gem.add_dependency("uri-redis", ">= 0.4.0")
gem.add_dependency("drydock", ">= 0.6.9")
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
Rake::RDocTask.new do |rdoc|
version = "#{config[:MAJOR]}.#{config[:MINOR]}.#{config[:PATCH]}.#{config[:BUILD]}"
rdoc.rdoc_dir = "doc"
rdoc.title = "redis-dump #{version}"
rdoc.rdoc_files.include("README*")
rdoc.rdoc_files.include("LICENSE.txt")
#rdoc.rdoc_files.include("bin/*.rb")
rdoc.rdoc_files.include("lib/**/*.rb")
end