# frozen_string_literal: true

require 'rubygems'
require 'bundler/setup'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'

# Immediately sync all stdout
$stdout.sync = true
$stderr.sync = true

# Change to the directory of this file
Dir.chdir(__dir__)

# Installs the tasks for gem creation
Bundler::GemHelper.install_tasks

# Install the `spec` task so that we can run tests
RSpec::Core::RakeTask.new

# Add Rubocop tasks
RuboCop::RakeTask.new

# Default task is to run the unit tests
task default: 'spec'
