require "bundler/gem_tasks" require "rake/testtask" require "rubocop/rake_task" $LOAD_PATH.unshift File.expand_path("../lib", __FILE__) task "release:rubygem_push" do # Delay loading Chandler until this point, since it requires Ruby >= 2.1, # which may not be available in all environments (e.g. Travis). # We assume that the person doing `rake release` has Ruby >= 2.1. require "chandler/tasks" Rake.application.invoke_task("chandler:push") end Rake::TestTask.new(:test) do |t| t.libs << "test" t.libs << "lib" t.test_files = FileList["test/**/*_test.rb"] end RuboCop::RakeTask.new task :default => [:test, :rubocop]