require "spec" require "spec/rake/spectask" require 'lib/sax-machine.rb' Spec::Rake::SpecTask.new do |t| t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""] t.spec_files = FileList['spec/**/*_spec.rb'] end task :install do rm_rf "*.gem" puts `gem build sax-machine.gemspec` puts `sudo gem install sax-machine-#{SAXMachine::VERSION}.gem` end