]> git.saurik.com Git - redis.git/blame - client-libraries/ruby/Rakefile
Lua client added thanks to Daniele Alessandri
[redis.git] / client-libraries / ruby / Rakefile
CommitLineData
ed9b544e 1require 'rubygems'
2require 'rake/gempackagetask'
3require 'rubygems/specification'
4require 'date'
5require 'spec/rake/spectask'
6require 'tasks/redis.tasks'
7
8
9GEM = 'redis'
10GEM_VERSION = '0.0.2'
11AUTHORS = ['Ezra Zygmuntowicz', 'Taylor Weibley']
12EMAIL = "ez@engineyard.com"
13HOMEPAGE = "http://github.com/ezmobius/redis-rb"
14SUMMARY = "Ruby client library for redis key value storage server"
15
16spec = Gem::Specification.new do |s|
17 s.name = GEM
18 s.version = GEM_VERSION
19 s.platform = Gem::Platform::RUBY
20 s.has_rdoc = true
21 s.extra_rdoc_files = ["LICENSE"]
22 s.summary = SUMMARY
23 s.description = s.summary
24 s.authors = AUTHORS
25 s.email = EMAIL
26 s.homepage = HOMEPAGE
27
28 # Uncomment this to add a dependency
29 # s.add_dependency "foo"
30
31 s.require_path = 'lib'
32 s.autorequire = GEM
33 s.files = %w(LICENSE README.markdown Rakefile) + Dir.glob("{lib,spec}/**/*")
34end
35
36task :default => :spec
37
38desc "Run specs"
39Spec::Rake::SpecTask.new do |t|
40 t.spec_files = FileList['spec/**/*_spec.rb']
41 t.spec_opts = %w(-fs --color)
42end
43
44Rake::GemPackageTask.new(spec) do |pkg|
45 pkg.gem_spec = spec
46end
47
48desc "install the gem locally"
49task :install => [:package] do
50 sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
51end
52
53desc "create a gemspec file"
54task :make_spec do
55 File.open("#{GEM}.gemspec", "w") do |file|
56 file.puts spec.to_ruby
57 end
58end