2 require 'rake/gempackagetask'
 
   3 require 'rubygems/specification'
 
   5 require 'spec/rake/spectask'
 
   6 require 'tasks/redis.tasks'
 
  11 AUTHORS = ['Ezra Zygmuntowicz', 'Taylor Weibley']
 
  12 EMAIL = "ez@engineyard.com"
 
  13 HOMEPAGE = "http://github.com/ezmobius/redis-rb"
 
  14 SUMMARY = "Ruby client library for redis key value storage server"
 
  16 spec = Gem::Specification.new do |s|
 
  18   s.version = GEM_VERSION
 
  19   s.platform = Gem::Platform::RUBY
 
  21   s.extra_rdoc_files = ["LICENSE"]
 
  23   s.description = s.summary
 
  28   # Uncomment this to add a dependency
 
  29   # s.add_dependency "foo"
 
  31   s.require_path = 'lib'
 
  33   s.files = %w(LICENSE README.markdown Rakefile) + Dir.glob("{lib,spec}/**/*")
 
  36 task :default => :spec
 
  39 Spec::Rake::SpecTask.new do |t|
 
  40   t.spec_files = FileList['spec/**/*_spec.rb']
 
  41   t.spec_opts = %w(-fs --color)
 
  44 Rake::GemPackageTask.new(spec) do |pkg|
 
  48 desc "install the gem locally"
 
  49 task :install => [:package] do
 
  50   sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
 
  53 desc "create a gemspec file"
 
  55   File.open("#{GEM}.gemspec", "w") do |file|
 
  56     file.puts spec.to_ruby