]> git.saurik.com Git - redis.git/blame - client-libraries/ruby/Rakefile
disconnect when we cannot read from the socket
[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'
11GEM_VERSION = '0.0.3.3'
12AUTHORS = ['Ezra Zygmuntowicz', 'Taylor Weibley', 'Matthew Clark']
13EMAIL = "matt.clark@punchstock.com"
14HOMEPAGE = "http://github.com/winescout/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
28
29 # Uncomment this to add a dependency
30 # s.add_dependency "foo"
31
32 s.require_path = 'lib'
33 s.autorequire = GEM
34 s.files = %w(LICENSE README.markdown Rakefile) + Dir.glob("{lib,spec}/**/*")
35end
36
37task :default => :spec
38
39desc "Run specs"
40Spec::Rake::SpecTask.new do |t|
41 t.spec_files = FileList['spec/**/*_spec.rb']
42 t.spec_opts = %w(-fs --color)
43end
44
45Rake::GemPackageTask.new(spec) do |pkg|
46 pkg.gem_spec = spec
47end
48
49desc "install the gem locally"
50task :install => [:package] do
51 sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
52end
53
54desc "create a gemspec file"
55task :make_spec do
56 File.open("#{GEM}.gemspec", "w") do |file|
57 file.puts spec.to_ruby
58 end
59end