Sha256: 392e81a45264b08002057ba29c7a9f8a61c05766f6972b2c6a4c20df0634641b

Contents?: true

Size: 1.11 KB

Versions: 20

Compression:

Stored size: 1.11 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:setup && cd -'
    end

  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 Rakefile
alchemy_cms-3.1.3 Rakefile
lc_alchemy_cms-3.2.1 Rakefile
lc_alchemy_cms-3.2.0 Rakefile
alchemy_cms-3.2.0 Rakefile
alchemy_cms-3.2.0.rc1 Rakefile
alchemy_cms-3.2.0.beta Rakefile
alchemy_cms-3.1.1 Rakefile
alchemy_cms-3.0.4 Rakefile
alchemy_cms-3.1.0 Rakefile
alchemy_cms-3.1.0.rc3 Rakefile
alchemy_cms-3.1.0.rc2 Rakefile
alchemy_cms-3.1.0.rc1 Rakefile
alchemy_cms-3.1.0.beta6 Rakefile
alchemy_cms-3.1.0.beta5 Rakefile
alchemy_cms-3.1.0.beta4 Rakefile
alchemy_cms-3.0.3 Rakefile
alchemy_cms-3.1.0.beta3 Rakefile
alchemy_cms-3.1.0.beta2 Rakefile
alchemy_cms-3.1.0.beta1 Rakefile