2020-06-08 21:03:59 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-06-12 20:03:43 +00:00
|
|
|
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
|
2021-01-27 18:00:22 +00:00
|
|
|
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
|
2020-06-08 21:03:59 +00:00
|
|
|
require "bundler/setup"
|
|
|
|
|
2021-03-02 21:57:44 +00:00
|
|
|
load "rails/tasks/statistics.rake"
|
|
|
|
|
2021-03-02 22:32:20 +00:00
|
|
|
require "bundler/gem_tasks"
|
|
|
|
|
|
|
|
begin
|
|
|
|
require 'bundler/gem_tasks'
|
|
|
|
rescue LoadError
|
|
|
|
nil
|
|
|
|
end
|
|
|
|
|
|
|
|
require 'rubygems'
|
|
|
|
require 'bundler'
|
|
|
|
require 'rdoc/task'
|
|
|
|
begin
|
|
|
|
Bundler.setup(:default, :development)
|
|
|
|
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 'rspec/core'
|
|
|
|
require 'rspec/core/rake_task'
|
|
|
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
|
|
spec.pattern = FileList['spec/**/*_spec.rb']
|
|
|
|
end
|
|
|
|
|
|
|
|
task :default => :spec
|