redmine_tasks_scheduler 0.3.0 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/000_dependencies.rb +1 -1
- data/config/initializers/001_patches.rb +4 -0
- data/config/initializers/alert.rb +2 -1
- data/config/initializers/menu.rb +2 -1
- data/init.rb +1 -3
- data/lib/redmine_tasks_scheduler/patches/tasks_scheduler_controller_patch.rb +4 -0
- data/lib/redmine_tasks_scheduler/patches/tasks_scheduler_info_patch.rb +7 -0
- data/lib/redmine_tasks_scheduler/settings.rb +1 -7
- data/lib/redmine_tasks_scheduler/version.rb +1 -1
- metadata +16 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffcb5bc76a6bbf72e747ee8a41accddb63d04c5dd40b7d13118d7ba771255997
|
4
|
+
data.tar.gz: a2fb50a397a756fd4b4c0b6445c48369a22aeabc3bdf3a23049547df5a5d8dcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01c5ab03197b708c304b6d3c37f2cda91c62a6d9ffcd3ceca3ad9cd5c329435c419d84964fd135f82b18a20d000cb8367a9c1cb5cd9bda4252330dbbaa36afbb
|
7
|
+
data.tar.gz: 38e7eee7783eb4a140e7d3da279d23246068d71d2616f4e076c6d2d2b5abe7d7232a3b88b888bf77220bba934ea0deb5e4ef86cd8a0f6103316de0351c74c3d9
|
@@ -2,5 +2,5 @@
|
|
2
2
|
|
3
3
|
Redmine::Plugin.by_path(__FILE__).instance_eval do
|
4
4
|
# Source: https://github.com/esquilo-azul/redmine_nonproject_modules
|
5
|
-
requires_redmine_plugin(:redmine_nonproject_modules, version_or_higher: '0.
|
5
|
+
requires_redmine_plugin(:redmine_nonproject_modules, version_or_higher: '0.3.12')
|
6
6
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
return unless ::RedminePluginsHelper::Available.database_schema?
|
4
|
+
|
4
5
|
GroupPermission.add_permission(::TasksSchedulerDaemonController::PERMISSIONS)
|
5
6
|
Redmine::MenuManager.map :top_menu do |menu|
|
6
7
|
menu.push :tasks_scheduler_alert,
|
data/config/initializers/menu.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
return unless ::RedminePluginsHelper::Available.database_schema?
|
4
|
+
|
4
5
|
GroupPermission.add_permission(::ScheduledTasksController::PERMISSIONS)
|
5
6
|
Redmine::MenuManager.map :admin_menu do |menu|
|
6
7
|
menu.push :scheduled_tasks, { controller: 'scheduled_tasks', action: 'status', id: nil },
|
data/init.rb
CHANGED
@@ -1,13 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'redmine'
|
4
|
-
require 'active_scaffold'
|
5
|
-
ActiveScaffold.delayed_setup = true
|
6
4
|
|
7
5
|
Redmine::Plugin.register :redmine_tasks_scheduler do
|
8
6
|
name 'Redmine Tasks Scheduler'
|
9
7
|
author 'eduardobogoni@gmail.com'
|
10
8
|
description 'Scheduler for rake tasks on Redmine.'
|
11
|
-
version '0.2.
|
9
|
+
version '0.2.4'
|
12
10
|
settings default: { 'daemon_autostart' => '1' }, partial: 'settings/redmine_tasks_scheduler'
|
13
11
|
end
|
@@ -10,12 +10,16 @@ module RedmineTasksScheduler
|
|
10
10
|
|
11
11
|
require_permission const_get('PERMISSIONS')
|
12
12
|
layout 'admin'
|
13
|
+
helper :scheduled_tasks
|
14
|
+
helper :tasks_scheduler
|
13
15
|
end
|
14
16
|
end
|
15
17
|
end
|
16
18
|
end
|
17
19
|
end
|
18
20
|
|
21
|
+
return unless ::RedminePluginsHelper::Available.database_schema?
|
22
|
+
|
19
23
|
[::ScheduledTasksController, ::TasksSchedulerDaemonController].each do |controller_class|
|
20
24
|
patch_class = ::RedmineTasksScheduler::Patches::TasksSchedulerControllerPatch
|
21
25
|
unless controller_class.included_modules.include?(patch_class)
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# To-do: remove when fixed in gem "tasks_scheduler"
|
4
|
+
require 'tasks_scheduler/info'
|
5
|
+
const_name = 'TASKS_LIMIT_DEFAULT_VALUE'
|
6
|
+
::TasksScheduler::Info.send(:remove_const, const_name)
|
7
|
+
::TasksScheduler::Info.const_set(const_name, -1)
|
@@ -4,16 +4,10 @@ module RedmineTasksScheduler
|
|
4
4
|
class Settings
|
5
5
|
class << self
|
6
6
|
def daemon_autostart
|
7
|
-
return false unless
|
7
|
+
return false unless ::RedminePluginsHelper::Available.settings?
|
8
8
|
|
9
9
|
::Setting.plugin_redmine_tasks_scheduler[:daemon_autostart] == '1'
|
10
10
|
end
|
11
|
-
|
12
|
-
private
|
13
|
-
|
14
|
-
def settings_table_exist?
|
15
|
-
::Setting.connection.table_exists? ::Setting.table_name
|
16
|
-
end
|
17
11
|
end
|
18
12
|
end
|
19
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine_tasks_scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- 0.3.
|
7
|
+
- 0.3.3
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tasks_scheduler
|
@@ -16,34 +16,34 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.6'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.6.10
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
29
|
+
version: '0.6'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.6.10
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: eac_ruby_gem_support
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
-
- - ">="
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: 0.1.2
|
39
|
+
version: 0.5.1
|
37
40
|
type: :development
|
38
41
|
prerelease: false
|
39
42
|
version_requirements: !ruby/object:Gem::Requirement
|
40
43
|
requirements:
|
41
44
|
- - "~>"
|
42
45
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
44
|
-
- - ">="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: 0.1.2
|
46
|
+
version: 0.5.1
|
47
47
|
description:
|
48
48
|
email:
|
49
49
|
executables: []
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- app/assets/stylesheets/redmine_tasks_scheduler.css
|
55
55
|
- app/views/settings/_redmine_tasks_scheduler.html.erb
|
56
56
|
- config/initializers/000_dependencies.rb
|
57
|
+
- config/initializers/001_patches.rb
|
57
58
|
- config/initializers/alert.rb
|
58
59
|
- config/initializers/daemon_auto_start.rb
|
59
60
|
- config/initializers/menu.rb
|
@@ -62,6 +63,7 @@ files:
|
|
62
63
|
- init.rb
|
63
64
|
- lib/redmine_tasks_scheduler.rb
|
64
65
|
- lib/redmine_tasks_scheduler/patches/tasks_scheduler_controller_patch.rb
|
66
|
+
- lib/redmine_tasks_scheduler/patches/tasks_scheduler_info_patch.rb
|
65
67
|
- lib/redmine_tasks_scheduler/settings.rb
|
66
68
|
- lib/redmine_tasks_scheduler/version.rb
|
67
69
|
homepage: https://github.com/esquilo-azul/redmine_tasks_scheduler
|
@@ -82,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
84
|
- !ruby/object:Gem::Version
|
83
85
|
version: '0'
|
84
86
|
requirements: []
|
85
|
-
rubygems_version: 3.
|
87
|
+
rubygems_version: 3.1.6
|
86
88
|
signing_key:
|
87
89
|
specification_version: 4
|
88
90
|
summary: Scheduler for rake tasks on Redmine.
|