30 lines
507 B
Text
30 lines
507 B
Text
|
# encoding: UTF-8
|
||
|
# frozen_string_literal: true
|
||
|
|
||
|
require 'rubygems'
|
||
|
require 'bundler'
|
||
|
require "bundler/gem_tasks"
|
||
|
|
||
|
begin
|
||
|
Bundler.setup(:default, :development, :test)
|
||
|
rescue Bundler::BundlerError => e
|
||
|
$stderr.puts e.message
|
||
|
$stderr.puts "Run `bundle install` to install missing gems"
|
||
|
exit e.status_code
|
||
|
end
|
||
|
|
||
|
require 'rake'
|
||
|
|
||
|
require 'rake/testtask'
|
||
|
|
||
|
Rake::TestTask.new(:test) do |t|
|
||
|
t.libs << 'lib'
|
||
|
t.libs << 'test'
|
||
|
t.pattern = 'test/**/*_test.rb'
|
||
|
t.verbose = false
|
||
|
end
|
||
|
|
||
|
task default: :test
|
||
|
|
||
|
|