Sha256: fa8270e2a93d8138caf3685c9ad22defeb3139c6e1143f7ab2f2df3c26e9dfc0

Contents?: true

Size: 688 Bytes

Versions: 2

Compression:

Stored size: 688 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

if ENV['RAILS_BUNDLE_FIRST']
  unless system('bundle check')
    # system('ruby -r rubygems -e "p Gem.path"')
    puts "RAILS_BUNDLE_FIRST is set, running `bundle install`..."
    system("bundle install") || raise("'bundle install' failed.")
  end
end

require 'appstats/tasks'
require 'rspec/core/rake_task'
require 'tasks/standalone_migrations'

import 'lib/appstats/ci.rake'

begin
  require 'tasks/standalone_migrations'
rescue LoadError => e
  puts "gem install standalone_migrations to get db:migrate:* tasks! (Error: #{e})"
end

RSpec::Core::RakeTask.new(:spec) do |t|
	t.pattern = "spec/*_spec.rb"
	t.rspec_opts = "--color"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
appstats-0.25.1 Rakefile
appstats-0.25.0 Rakefile