From 5f0ace0c82155ef3b0e883614e36031ceaea9d22 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Tue, 6 Dec 2016 11:21:03 -0800 Subject: [PATCH] Add gem release Rakefile --- Rakefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Rakefile diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..755ebc1 --- /dev/null +++ b/Rakefile @@ -0,0 +1,22 @@ +require 'rubygems' +require 'bundler/setup' +require 'rspec/core/rake_task' + +# Immediately sync all stdout so that tools like buildbot can +# immediately load in the output. +$stdout.sync = true +$stderr.sync = true + +# Change to the directory of this file. +Dir.chdir(File.expand_path("../", __FILE__)) + +# This installs the tasks that help with gem creation and +# publishing. +Bundler::GemHelper.install_tasks + +# Install the `spec` task so that we can run tests. +RSpec::Core::RakeTask.new(:spec) do |t| + t.rspec_opts = "--order defined" +end +# Default task is to run the unit tests +task :default => :spec