Mercurial > hg > soundsoftware-site
view .svn/pristine/dc/dcac5a29f794b90b0c70d7b180bb1c20ea9606aa.svn-base @ 1080:5bd8c86cfa6a issue_540
Makes the Publication model act as an activity; overloading the default ActivitiesController#index view in the Bibliography Plugin in order to differentiate Publications from the other event types.
* Known issues:
** route to /activities is not working (only to /activity);
** publication cache needs to be implemented in the model, not in the helper;
** when a publication is added to n projects, n events are created (all with the same content).
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 22 Nov 2012 16:51:23 +0000 |
parents | cbb26bc654de |
children |
line wrap: on
line source
desc "Run the Continous Integration tests for Redmine" task :ci do # RAILS_ENV and ENV[] can diverge so force them both to test ENV['RAILS_ENV'] = 'test' RAILS_ENV = 'test' Rake::Task["ci:setup"].invoke Rake::Task["ci:build"].invoke Rake::Task["ci:teardown"].invoke end # Tasks can be hooked into by redefining them in a plugin namespace :ci do desc "Setup Redmine for a new build." task :setup do Rake::Task["ci:dump_environment"].invoke Rake::Task["db:create"].invoke Rake::Task["db:migrate"].invoke Rake::Task["db:schema:dump"].invoke Rake::Task["test:scm:update"].invoke end desc "Build Redmine" task :build do Rake::Task["test"].invoke end # Use this to cleanup after building or run post-build analysis. desc "Finish the build" task :teardown do end desc "Dump the environment information to a BUILD_ENVIRONMENT ENV variable for debugging" task :dump_environment do ENV['BUILD_ENVIRONMENT'] = ['ruby -v', 'gem -v', 'gem list'].collect do |command| result = `#{command}` "$ #{command}\n#{result}" end.join("\n") end end