Sha256: dba5b149e24e7325e2ce497a2acbeb9401e620a739d2a8cf5e25e4fe1b252385

Contents?: true

Size: 1.05 KB

Versions: 7

Compression:

Stored size: 1.05 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 PgSearch'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README.md')
  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"
    task :prepare do
      system 'cd spec/dummy; RAILS_ENV=test bin/rake db:setup db:seed; cd -'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alchemy-pg_search-3.0.0 Rakefile
alchemy-pg_search-2.4.0 Rakefile
alchemy-pg_search-2.3.0 Rakefile
alchemy-pg_search-2.2.0 Rakefile
alchemy-pg_search-2.1.0 Rakefile
alchemy-pg_search-2.0.0 Rakefile
alchemy-pg_search-1.2.0 Rakefile