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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f0c1fb1d56db6f24bbacc6ab9a16a075c2483e92be71d1accd46fbf55efbbb4
4
- data.tar.gz: 2ef38bee90adb1a3bd28d69db7d16a3d612fba2b2170dfc3d3ad28afcaf13e55
3
+ metadata.gz: d743a1b2448dff65784a22d0b946643892ca6cb2b5590e682176bb27dc889296
4
+ data.tar.gz: 383166099c8d1b76edc486a69c1aa80b1deee8bbf66049e54d6f634daed3f97a
5
5
  SHA512:
6
- metadata.gz: 3a5a736eef40ebd284c9d0821702f7adcca8732c76695e503b9f9bbf4c70b8cfed9a1212cfdb8b93109845bd53c4f667a4fc55ed022c39f9e0b82dd3be22748a
7
- data.tar.gz: feb4e1818cea5260041dcc407d44e666460b59eef5d732216d0b2bbd81c616f179705e022008079f3895f7e9dda883ab11975159db77400608001c3fd38c325f
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.9.3')
5
+ requires_redmine_plugin(:redmine_plugins_helper, version_or_higher: '0.12')
6
6
  end
@@ -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.12'
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.12
5
5
  platform: ruby
6
6
  authors:
7
- - 0.3.9
7
+ - 0.3.12
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-15 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