redmine_nonproject_modules 0.3.9 → 0.3.12
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/group_permissions.rb +4 -0
- data/config/initializers/menus.rb +12 -0
- data/init.rb +0 -19
- data/lib/redmine_nonproject_modules/version.rb +1 -1
- metadata +14 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d743a1b2448dff65784a22d0b946643892ca6cb2b5590e682176bb27dc889296
|
4
|
+
data.tar.gz: 383166099c8d1b76edc486a69c1aa80b1deee8bbf66049e54d6f634daed3f97a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00d9ed407fe692e1a7b8f4f43eefd17cfd3b90d2f6ffe45c5ad79301553bd6b35b72b3fc37a05d22d5671ed25cbdf958efb3f72ac6ec7eb14131cfbaa114cee9
|
7
|
+
data.tar.gz: 497ebba4ca76d1a2e9105cac69906777b98664bbf9e60d36f8e56d6c2073697fe37d814bbe000158c003af29e874e8cd7fd87e5acaeb7020d8483b5e4c1a7285
|
@@ -2,5 +2,5 @@
|
|
2
2
|
|
3
3
|
Redmine::Plugin.post_register :redmine_nonproject_modules do
|
4
4
|
# Source: https://github.com/esquilo-azul/redmine_plugins_helper
|
5
|
-
requires_redmine_plugin(:redmine_plugins_helper, version_or_higher: '0.
|
5
|
+
requires_redmine_plugin(:redmine_plugins_helper, version_or_higher: '0.12')
|
6
6
|
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
Redmine::MenuManager.map :admin_menu do |menu|
|
4
|
+
menu.push :group_permissions, { controller: 'group_permissions', action: 'index' },
|
5
|
+
caption: :label_group_permission_plural, after: :groups,
|
6
|
+
if: proc { GroupPermission.permission?('group_permissions') }
|
7
|
+
end
|
8
|
+
|
9
|
+
Redmine::MenuManager.map :top_menu do |menu|
|
10
|
+
menu.push :nonproject_modules, { controller: 'nonproject_modules', action: 'index', id: nil },
|
11
|
+
caption: :label_nonproject_modules
|
12
|
+
end
|
data/init.rb
CHANGED
@@ -18,23 +18,4 @@ Redmine::Plugin.register :redmine_nonproject_modules do
|
|
18
18
|
version ::RedmineNonprojectModules::VERSION
|
19
19
|
url ::RedmineNonprojectModules::HOMEPAGE
|
20
20
|
author_url 'https://github.com/eduardobogoni'
|
21
|
-
|
22
|
-
Redmine::MenuManager.map :admin_menu do |menu|
|
23
|
-
menu.push :group_permissions, { controller: 'group_permissions', action: 'index' },
|
24
|
-
caption: :label_group_permission_plural, after: :groups,
|
25
|
-
if: proc { GroupPermission.permission?('group_permissions') }
|
26
|
-
end
|
27
|
-
|
28
|
-
Redmine::MenuManager.map :top_menu do |menu|
|
29
|
-
menu.push :nonproject_modules, { controller: 'nonproject_modules', action: 'index', id: nil },
|
30
|
-
caption: :label_nonproject_modules
|
31
|
-
end
|
32
|
-
|
33
|
-
ActiveScaffold.delayed_setup = true
|
34
|
-
end
|
35
|
-
|
36
|
-
Rails.configuration.to_prepare do
|
37
|
-
GroupPermission.add_permission('group_permissions')
|
38
|
-
GroupPermission.add_permission('group_merge')
|
39
|
-
require_dependency 'redmine_nonproject_modules/patches/user_patch'
|
40
21
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine_nonproject_modules
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- 0.3.
|
7
|
+
- 0.3.12
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: eac_active_scaffold
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0.2'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.2.2
|
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: '
|
29
|
+
version: '0.2'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.2.2
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: eac_rails_utils
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,6 +119,8 @@ files:
|
|
113
119
|
- config/initializers/000_dependencies.rb
|
114
120
|
- config/initializers/001_patches.rb
|
115
121
|
- config/initializers/assets.rb
|
122
|
+
- config/initializers/group_permissions.rb
|
123
|
+
- config/initializers/menus.rb
|
116
124
|
- config/locales/en.yml
|
117
125
|
- config/locales/pt-BR.yml
|
118
126
|
- config/routes.rb
|