Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.4.3
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (34 sloc) 0.971 kb
require "bundler"
Bundler::GemHelper.install_tasks
require "rake/testtask"
require "rake/extensiontask"
unless defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
Rake::ExtensionTask.new('hiredis_ext') do |task|
# Pass --with-foo-config args to extconf.rb
task.config_options = ARGV[1..-1] || []
task.lib_dir = File.join(*['lib', 'hiredis', 'ext'])
end
namespace :hiredis do
task :clean do
# Fetch hiredis if not present
if !File.directory?("vendor/hiredis/.git")
system("git submodule update --init")
end
system("cd vendor/hiredis && make clean")
end
end
# "rake clean" should also clean bundled hiredis
Rake::Task[:clean].enhance(['hiredis:clean'])
# Build from scratch
task :rebuild => [:clean, :compile]
else
task :rebuild do
# no-op
end
end
task :default => [:rebuild, :test]
desc "Run tests"
Rake::TestTask.new(:test) do |t|
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
Jump to Line
Something went wrong with that request. Please try again.