2 require 'rake/gempackagetask'
 
   3 require 'rubygems/specification'
 
   5 require 'spec/rake/spectask'
 
   6 require 'tasks/redis.tasks'
 
  11 GEM_VERSION = '0.0.3.4'
 
  12 AUTHORS = ['Ezra Zygmuntowicz', 'Taylor Weibley', 'Matthew Clark']
 
  13 EMAIL = "ez@engineyard.com"
 
  14 HOMEPAGE = "http://github.com/ezmobius/redis-rb"
 
  15 SUMMARY = "Ruby client library for redis key value storage server"
 
  17 spec = Gem::Specification.new do |s|
 
  19   s.version = GEM_VERSION
 
  20   s.platform = Gem::Platform::RUBY
 
  22   s.extra_rdoc_files = ["LICENSE"]
 
  24   s.description = s.summary
 
  28   s.add_dependency "rspec"
 
  29   s.require_path = 'lib'
 
  31   s.files = %w(LICENSE README.markdown Rakefile) + Dir.glob("{lib,spec}/**/*")
 
  34 task :default => :spec
 
  37 Spec::Rake::SpecTask.new do |t|
 
  38   t.spec_files = FileList['spec/**/*_spec.rb']
 
  39   t.spec_opts = %w(-fs --color)
 
  42 Rake::GemPackageTask.new(spec) do |pkg|
 
  46 desc "install the gem locally"
 
  47 task :install => [:package] do
 
  48   sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
 
  51 desc "create a gemspec file"
 
  53   File.open("#{GEM}.gemspec", "w") do |file|
 
  54     file.puts spec.to_ruby