Sha256: 1c3198b2e0b628575c63a422013eeaf51d33fcada7f92f4b26e1be02d363113e
Contents?: true
Size: 1.97 KB
Versions: 1
Compression:
Stored size: 1.97 KB
Contents
$:.unshift 'lib' require 'rubygems' require 'rake' require 'rake/testtask' require 'rake/rdoctask' require 'spec/rake/spectask' task :default => "spec:suite" begin require "jeweler" Jeweler::Tasks.new do |gemspec| gemspec.name = "#{ENV["GEM_PREFIX"]}redis-store" gemspec.summary = "Rack::Session, Rack::Cache and cache Redis stores for Ruby web frameworks." gemspec.description = "Rack::Session, Rack::Cache and cache Redis stores for Ruby web frameworks." gemspec.email = "guidi.luca@gmail.com" gemspec.homepage = "http://github.com/jodosha/redis-store" gemspec.authors = [ "Luca Guidi" ] gemspec.executables = [ ] gemspec.add_dependency "redis", ">= 2.0.0" end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler not available. Install it with: sudo gem install jeweler" end namespace :spec do desc "Run all the examples by starting a detached Redis instance" task :suite do invoke_with_redis_cluster "spec:run" end Spec::Rake::SpecTask.new(:run) do |t| t.spec_files = FileList['spec/**/*_spec.rb'] t.spec_opts = %w(-fs --color) end end desc "Run all examples with RCov" task :rcov do invoke_with_redis_cluster "rcov_run" end Spec::Rake::SpecTask.new(:rcov_run) do |t| t.spec_files = FileList['spec/**/*_spec.rb'] t.rcov = true end namespace :redis_cluster do desc "Starts the redis_cluster" task :start do result = RedisClusterRunner.start_detached raise("Could not start redis-server, aborting.") unless result end desc "Stops the redis_cluster" task :stop do RedisClusterRunner.stop end end namespace :bundle do task :clean do system "rm -rf ~/.bundle/ ~/.gem/ .bundle/ Gemfile.lock" end end # courtesy of http://github.com/ezmobius/redis-rb team load "tasks/redis.tasks.rb" def invoke_with_redis_cluster(task_name) begin Rake::Task["redis_cluster:start"].invoke Rake::Task[task_name].invoke ensure Rake::Task["redis_cluster:stop"].invoke end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redis-store-1.0.0.beta1 | Rakefile |