redmine_nonproject_modules 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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: f39afb88d5a43070a52dd2e80b876819f05df922cb0cb148cae8a71c54b514a9
|
4
|
+
data.tar.gz: 7ed8899826f7c0279b3613db11ecbd89640777f4f40593154b7882b69a690be3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fbe42d5ea96a5dc92b9777bf41994e891f46f3bb2fa92263427eeec416b4124af9b011cce70b211de2f12e6c60afe181e9ba5d2f58cf43f9718cfd0dda5aaf3
|
7
|
+
data.tar.gz: e9109c86c5e61563652809e0956920a2c2e5d934ba97c5bafe69b7a9b7cb7a1b8440e40e5e7de99f7dad94891693fe190827f043308791f43d88cad521d5f181
|
@@ -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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- 0.3.
|
7
|
+
- 0.3.10
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06
|
11
|
+
date: 2022-07-06 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
|