require "bundler/gem_tasks" require 'rake' require 'rake/extensiontask' require 'rake/testtask' require File.expand_path('../lib/acpc_dealer/version', __FILE__) desc 'Build gem' task :default => :build task :build => :compile Rake::TestTask.new do |t| t.libs << "lib" << 'spec/support' t.test_files = FileList['spec/**/*_spec.rb'] t.verbose = false t.warning = false end def gemspec @clean_gemspec ||= eval(File.read(File.expand_path('../acpc_dealer.gemspec', __FILE__))) end Gem::PackageTask.new(gemspec) { |pkg| } Rake::ExtensionTask.new('hand_evaluator', gemspec)