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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f0c1fb1d56db6f24bbacc6ab9a16a075c2483e92be71d1accd46fbf55efbbb4
4
- data.tar.gz: 2ef38bee90adb1a3bd28d69db7d16a3d612fba2b2170dfc3d3ad28afcaf13e55
3
+ metadata.gz: f39afb88d5a43070a52dd2e80b876819f05df922cb0cb148cae8a71c54b514a9
4
+ data.tar.gz: 7ed8899826f7c0279b3613db11ecbd89640777f4f40593154b7882b69a690be3
5
5
  SHA512:
6
- metadata.gz: 3a5a736eef40ebd284c9d0821702f7adcca8732c76695e503b9f9bbf4c70b8cfed9a1212cfdb8b93109845bd53c4f667a4fc55ed022c39f9e0b82dd3be22748a
7
- data.tar.gz: feb4e1818cea5260041dcc407d44e666460b59eef5d732216d0b2bbd81c616f179705e022008079f3895f7e9dda883ab11975159db77400608001c3fd38c325f
6
+ metadata.gz: 7fbe42d5ea96a5dc92b9777bf41994e891f46f3bb2fa92263427eeec416b4124af9b011cce70b211de2f12e6c60afe181e9ba5d2f58cf43f9718cfd0dda5aaf3
7
+ data.tar.gz: e9109c86c5e61563652809e0956920a2c2e5d934ba97c5bafe69b7a9b7cb7a1b8440e40e5e7de99f7dad94891693fe190827f043308791f43d88cad521d5f181
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ ::GroupPermission.add_permission('group_permissions')
4
+ ::GroupPermission.add_permission('group_merge')
@@ -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
@@ -4,5 +4,5 @@ module RedmineNonprojectModules
4
4
  AUTHOR = 'Eduardo Henrique Bogoni'
5
5
  HOMEPAGE = 'https://github.com/esquilo-azul/redmine_nonproject_modules'
6
6
  SUMMARY = 'Support to non-project modules.'
7
- VERSION = '0.3.9'
7
+ VERSION = '0.3.10'
8
8
  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.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
- - 0.3.9
7
+ - 0.3.10
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-29 00:00:00.000000000 Z
11
+ date: 2022-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: active_scaffold
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: '3.5'
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: '3.5'
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