require "bundler/gem_tasks" require 'rspec/core' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |t| t.rspec_opts = ["-c", "-f progress", "-Ilib"] t.pattern = "spec/**/*_spec.rb" t.verbose = true end task :spec => :compile require 'rake/extensiontask' spec = Bundler::GemHelper.gemspec Rake::ExtensionTask.new('murmurhash', spec) do |ext| ext.ext_dir = 'ext/digest/murmurhash' ext.lib_dir = 'lib/digest/murmurhash' end require 'digest/murmurhash/version' desc "gem reinstall v#{Digest::MurmurHash::VERSION}" task :reinstall do |t| system "gem uninstall murmurhash" system "rake clean" system "bundle exec rake" system "rake install" system "irb -rdigest/murmurhash" end task :default => [:spec, :build]