Sha256: e6db7ae53f2cd3f379f0ddf86da0d8ce93e259aa6599a7cadc62390e9027bab1

Contents?: true

Size: 1.13 KB

Versions: 26

Compression:

Stored size: 1.13 KB

Contents

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

begin
  require 'rdoc/task'
rescue LoadError
  require 'rdoc/rdoc'
  require 'rake/rdoctask'
  RDoc::Task = Rake::RDocTask
end

desc 'Generate documentation for Alchemy CMS.'
RDoc::Task.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'Alchemy CMS'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README.md')
  rdoc.rdoc_files.include('config/alchemy/*.yml')
  rdoc.rdoc_files.include('lib/**/*.rb')
  rdoc.rdoc_files.include('app/**/*.rb')
end

APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
load 'rails/tasks/engine.rake'

require 'rspec/core'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

task :default => ['alchemy:spec:prepare', :spec]

Bundler::GemHelper.install_tasks

namespace :alchemy do
  namespace :spec do

    desc "Prepares database for testing Alchemy"
    task :prepare do
      system 'cd spec/dummy && RAILS_ENV=test bundle exec rake db:drop db:create db:migrate:reset && cd -'
    end

  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
alchemy_cms-2.9.1 Rakefile
alchemy_cms-3.0.2 Rakefile
alchemy_cms-3.0.1 Rakefile
alchemy_cms-3.0.0 Rakefile
alchemy_cms-3.0.0.rc8 Rakefile
alchemy_cms-2.9.0 Rakefile
alchemy_cms-2.8.3 Rakefile
alchemy_cms-2.7.5 Rakefile
alchemy_cms-2.6.3 Rakefile
alchemy_cms-3.0.0.rc7 Rakefile
alchemy_cms-3.0.0.rc6 Rakefile
alchemy_cms-2.7.4 Rakefile
alchemy_cms-2.8.2 Rakefile
alchemy_cms-2.8.1 Rakefile
alchemy_cms-2.7.3 Rakefile
alchemy_cms-3.0.0.rc5 Rakefile
alchemy_cms-2.7.2 Rakefile
alchemy_cms-2.7.1 Rakefile
alchemy_cms-2.7.0 Rakefile
alchemy_cms-2.6.2.1 Rakefile