Skip to content

Commit 2a41fee

Browse files
committed
resetting develop/master so can continue working
2 parents 06ec8e1 + 93e85b7 commit 2a41fee

File tree

7 files changed

+21
-11
lines changed

7 files changed

+21
-11
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,20 @@ Released under GPLv2 in accordance with Redmine licensing.
1818
* Flexible: recurs only if the previous task was complete
1919
* View/Add/Edit/Delete issue recurrence permissions controlled via Redmine's native Roles and Permissions menu
2020

21+
Note: recurrences depend on the date of the issue that is recurring (e.g. if you want it
22+
to recur every 2nd Thursday of the month, the issue's first date should be a Thursday)
23+
2124
## Installation
2225

2326
Follow standard Redmine plugin installation -- (barely) modified from http://www.redmine.org/projects/redmine/wiki/Plugins
2427

25-
1. Copy or clone the plugin directory into #{RAILS_ROOT}/plugins/recurring_tasks
28+
1. Copy or clone the plugin directory into #{RAILS_ROOT}/plugins/recurring_tasks -- note the folder name 'recurring_tasks' must be verbatim.
2629

2730
e.g. git clone https://github.com/nutso/redmine-plugin-recurring-tasks.git recurring_tasks
2831

2932
2. Rake the database migration (make a db backup before)
3033

31-
e.g. rake redmine:plugins:migrate RAILS_ENV=production
34+
e.g. bundle exec rake redmine:plugins:migrate RAILS_ENV=production
3235

3336
3. Restart Redmine (or web server)
3437

@@ -38,9 +41,9 @@ You should now be able to see the plugin list in Administration -> Plugins.
3841
3942
1. Set the check for recurrence via Crontab.
4043

41-
Crontab example (running the check for recurrence every 6 hours):
44+
Crontab example (running the check for recurrence every 6 hours on the 15s) -- replace {path_to_redmine} with your actual path, e.g. /var/www/redmine:
4245
```bash
43-
* */4 * * * /bin/sh "cd {path_to_redmine} && bundle exec rake RAILS_ENV=production redmine:recur_tasks" >> log/cron_rake.log 2>&1
46+
15 */4 * * * /bin/sh "cd {path_to_redmine} && bundle exec rake RAILS_ENV=production redmine:recur_tasks" >> log/cron_rake.log 2>&1
4447
```
4548

4649
2. Decide which role(s) should have the ability to view/add/edit/delete issue recurrence and configure accordingly in Redmine's permission manager (Administration > Roles and Permissions)
@@ -73,7 +76,7 @@ Follow standard Redmine plugin un-installation -- (barely) modified from http://
7376

7477
1. Downgrade the database (make a db backup before)
7578

76-
rake redmine:plugins:migrate NAME=recurring_tasks VERSION=0 RAILS_ENV=production
79+
bundle exec rake redmine:plugins:migrate NAME=recurring_tasks VERSION=0 RAILS_ENV=production
7780

7881
2. Remove the plugin from the plugins folder (#{RAILS_ROOT}/plugins)
7982

ReleaseNotes.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@
1616
* Backwards-compatibility to Redmine 2.2 by testing if issue.closed_on? method exists ([#49](https://github.com/nutso/redmine-plugin-recurring-tasks/issues/36))
1717
* Redmine 3.0 support contributed by @lammel ([#65](https://github.com/nutso/redmine-plugin-recurring-tasks/pull/65))
1818
* French translation updated by @jbeauvois ([#66](https://github.com/nutso/redmine-plugin-recurring-tasks/issues/66)
19+
* Better documentation of plugin permissions
20+
* Reversible migrations so can uninstall fully ([#53](https://github.com/nutso/redmine-plugin-recurring-tasks/issues/53))
21+
* Highlighting to user that adding recurrence via issues page is the best way ([#52](https://github.com/nutso/redmine-plugin-recurring-tasks/issues/52))
1922

2023
## Version 1.4.0 (07 Sep 2014)
2124

25+
* NOTE: Version number in 1.4.0 is incorrectly labelled as 1.3.0. ([#58](https://github.com/nutso/redmine-plugin-recurring-tasks/issues/58))
2226
* French translation updated by @fidergo-stephane-gourichon ([#46](https://github.com/nutso/redmine-plugin-recurring-tasks/pull/46))
23-
* Recur on day x of every n months ([#26](https://github.com/nutso/redmine-plugin-recurring-tasks/issues/26)) -- contributed by @cryptogopher ([#41](https://github.com/nutso/redmine-plugin-recurring-tasks/pull/41)); resolves ([#26](https://github.com/nutso/redmine-plugin-recurring-tasks/issues/26))
27+
* Recur on day x of every n months ([#26](https://github.com/nutso/redmine-plugin-recurring-tasks/issues/26)) -- contributed by @cryptogopher ([#41](https://github.com/nutso/redmine-plugin-recurring-tasks/pull/41))
2428

2529
## Version 1.3.0 (01 Mar 2014)
2630

app/views/recurring_tasks/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
22
<div class="contextual">
3-
<%= link_to(l(:label_add_recurring_task), {:action => 'new'}, :class => 'icon icon-add') %>
3+
<%= link_to(l(:label_add_recurring_task), {:action => 'new'}, :class => 'icon icon-add', :title => l(:help_add_general_recurring_task)) %>
44
</div>
55
<% end %>
66

config/locales/en.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ en:
4545
recurring_task_created: "Recurrence created. "
4646
recurring_task_saved: "Recurrence saved. "
4747
recurring_task_removed: "Recurrence removed. "
48+
49+
help_add_general_recurring_task: "You may find it easier to add recurrence via the specific issue's page."

db/migrate/002_standardize_recurrence_units_nonlocalized.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def up
2424
# There is no guarantee that the current localized translation was the value
2525
# previously in the database.
2626
def down
27-
# say "ActiveRecord::IrreversibleMigration"
28-
raise ActiveRecord::IrreversibleMigration
27+
logger.error ActiveRecord::IrreversibleMigration
28+
say "Cannot roll back StandardizeRecurrenceUnitsNonlocalized database migration as it modified the data, not the structure."
2929
end
3030
end

db/migrate/004_set_default_modifier_for_existing_monthly_issues.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def up
1818
# There is no rolling back - this is a change to the DATA in the database,
1919
# not to the structure itself.
2020
def down
21-
raise ActiveRecord::IrreversibleMigration
21+
logger.error ActiveRecord::IrreversibleMigration
22+
say "Cannot roll back SetDefaultModifierForExistingMonthlyIssues database migration as it modified the data, not the structure."
2223
end
2324
end

init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
author_url 'https://github.com/nutso/'
1111
url 'https://github.com/nutso/redmine-plugin-recurring-tasks'
1212
description 'Allows you to set a task to recur on a regular schedule, or when marked complete, regenerate a new task due in the future. Plugin is based -- very loosely -- on the periodic tasks plugin published by Tanguy de Courson'
13-
version '1.3.0'
13+
version '1.4.0'
1414

1515
Redmine::MenuManager.map :top_menu do |menu|
1616
menu.push :recurring_tasks, { :controller => 'recurring_tasks', :action => 'index' }, :caption => :label_recurring_tasks, :if => Proc.new { User.current.admin? }

0 commit comments

Comments
 (0)