Sha256: b883766e18b938b8a6b701b71feed855358ee41be3c52641730ee73820cd2a1a

Contents?: true

Size: 791 Bytes

Versions: 4

Compression:

Stored size: 791 Bytes

Contents

# frozen_string_literal: true

begin
  require 'bundler/setup'
rescue LoadError
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end

require 'rdoc/task'

RDoc::Task.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'Thermos'
  rdoc.options << '--line-numbers'
  rdoc.rdoc_files.include('README.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Bundler::GemHelper.install_tasks

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(:format) do
  system('bundle exec rbprettier --write {lib,test}/**/*.rb')
end

task(:default) do
  Dir.chdir('test/dummy')
  system('rake db:migrate')
  Dir.chdir('../../')
  Rake::Task['test'].execute
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thermos-1.0.2 Rakefile
thermos-1.0.1 Rakefile
thermos-1.0.0 Rakefile
thermos-0.6.0 Rakefile