]> git.saurik.com Git - redis.git/blame - client-libraries/ruby/Rakefile
client libraries synched in git
[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'
57172ffb 10GEM_NAME = 'redis'
d7fc9edb 11GEM_VERSION = '0.0.3.4'
57172ffb 12AUTHORS = ['Ezra Zygmuntowicz', 'Taylor Weibley', 'Matthew Clark']
d7fc9edb 13EMAIL = "ez@engineyard.com"
14HOMEPAGE = "http://github.com/ezmobius/redis-rb"
ed9b544e 15SUMMARY = "Ruby client library for redis key value storage server"
16
17spec = Gem::Specification.new do |s|
18 s.name = GEM
19 s.version = GEM_VERSION
20 s.platform = Gem::Platform::RUBY
21 s.has_rdoc = true
22 s.extra_rdoc_files = ["LICENSE"]
23 s.summary = SUMMARY
24 s.description = s.summary
25 s.authors = AUTHORS
26 s.email = EMAIL
27 s.homepage = HOMEPAGE
d7fc9edb 28 s.add_dependency "rspec"
ed9b544e 29 s.require_path = 'lib'
30 s.autorequire = GEM
31 s.files = %w(LICENSE README.markdown Rakefile) + Dir.glob("{lib,spec}/**/*")
32end
33
34task :default => :spec
35
36desc "Run specs"
37Spec::Rake::SpecTask.new do |t|
38 t.spec_files = FileList['spec/**/*_spec.rb']
39 t.spec_opts = %w(-fs --color)
40end
41
42Rake::GemPackageTask.new(spec) do |pkg|
43 pkg.gem_spec = spec
44end
45
46desc "install the gem locally"
47task :install => [:package] do
48 sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
49end
50
51desc "create a gemspec file"
52task :make_spec do
53 File.open("#{GEM}.gemspec", "w") do |file|
54 file.puts spec.to_ruby
55 end
56end