redmine_events_manager 0.5.4 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c6c8d517694095909c95410b7bb72d3312013ff5eb34f6fe0f952234bde63e8
4
- data.tar.gz: 922e8ea8dc62d12b1b97fb6267f5163c70787e4018ebaf90d0602fac8ff06f4f
3
+ metadata.gz: a5afa146a13f0744da20028009e9a29f9c7b6fc5702c070e03aeedf00bb23d02
4
+ data.tar.gz: f261d080c7d371bc19aa64808a7f2b4fd5593a712b23a5f5fb3ea1d7f9f506be
5
5
  SHA512:
6
- metadata.gz: 4737c7a5720bbca56220d2ae5aaf929c7d5bae19413160a7629592fdeb66fb318e4bf348e5660884b9a4b605cd0f25864dd3f144c561af7d6b60b1d0a26691ae
7
- data.tar.gz: cee00b9a47eab86542d0dec4913b81d30fa3880c64795cc2c63542ef4567826155026431f22620f6c4ecaf90dade9f00a64c12f11ae574ba83974c0f1298359f
6
+ metadata.gz: 302e7db0f0b002c5e37b8918a6c89132cb2c3418ce1cb491175991bf7de20e0168258a7d5b9d9a050cf1bbb38ad9a4ea1333bf38c1771f0744b04e3bd685b0da
7
+ data.tar.gz: 2ad28a685bc414d97ffdfd334253786686a5f26c5717fae5649bb39b766b072a05feaa616775706b58a9e765c7d4ee793b3f3752bf466782e518dc4c02a8c40f
@@ -2,7 +2,7 @@
2
2
 
3
3
  class EventExceptionsController < ApplicationController
4
4
  before_action :require_admin
5
- layout 'admin'
5
+ layout 'nonproject_modules'
6
6
  before_action :clear_event_exception_unchecked, only: :index # rubocop:disable Rails/LexicallyScopedActionFilter
7
7
 
8
8
  active_scaffold :event_exception do |conf|
@@ -2,7 +2,7 @@
2
2
 
3
3
  class ListenerOptionsController < ApplicationController
4
4
  before_action :require_admin
5
- layout 'admin'
5
+ layout 'nonproject_modules'
6
6
 
7
7
  active_scaffold :listener_option do |conf|
8
8
  conf.columns[:listener_class].form_ui = :select
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ Redmine::Plugin.by_path(__FILE__).nonprojects_menu do |menu|
4
+ menu.push :event_exceptions, { controller: 'event_exceptions', action: 'index', id: nil },
5
+ caption: :label_event_exception_plural
6
+ menu.push :listener_options, { controller: 'listener_options', action: 'index', id: nil },
7
+ caption: :label_listener_option_plural
8
+ end
9
+
10
+ Redmine::MenuManager.map :top_menu do |menu|
11
+ menu.push :event_exception_unchecked,
12
+ { controller: 'event_exceptions', action: 'index', id: nil },
13
+ caption: '', last: true, if: proc {
14
+ User.current.admin? && RedmineEventsManager::Settings.event_exception_unchecked
15
+ }
16
+ end
@@ -5,3 +5,4 @@ en:
5
5
  delay: Delay in seconds for the listener to be processed.
6
6
  label_event_exception_plural: Event exceptions
7
7
  label_listener_option_plural: Listener options
8
+ menu_redmine_events_manager: Events
@@ -5,3 +5,4 @@ pt-BR:
5
5
  delay: Atraso em segundos para o listener ser processado.
6
6
  label_event_exception_plural: Exceções em eventos
7
7
  label_listener_option_plural: Opções de listeners
8
+ menu_redmine_events_manager: Eventos
data/dependencies.yaml CHANGED
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  redmine_nonproject_modules:
3
- version_or_higher: 0.6.4
3
+ version_or_higher: 0.7.0
data/init.rb CHANGED
@@ -10,19 +10,4 @@ Redmine::Plugin.register :redmine_events_manager do
10
10
  version ::RedmineEventsManager::VERSION # rubocop:disable Style/RedundantConstantBase
11
11
 
12
12
  settings default: { event_exception_unchecked: false }
13
-
14
- Redmine::MenuManager.map :admin_menu do |menu|
15
- menu.push :event_exceptions, { controller: 'event_exceptions', action: 'index', id: nil },
16
- caption: :label_event_exception_plural
17
- menu.push :listener_options, { controller: 'listener_options', action: 'index', id: nil },
18
- caption: :label_listener_option_plural
19
- end
20
-
21
- Redmine::MenuManager.map :top_menu do |menu|
22
- menu.push :event_exception_unchecked,
23
- { controller: 'event_exceptions', action: 'index', id: nil },
24
- caption: '', last: true, if: proc {
25
- User.current.admin? && RedmineEventsManager::Settings.event_exception_unchecked
26
- }
27
- end
28
13
  end
@@ -4,7 +4,7 @@ module RedmineEventsManager
4
4
  AUTHOR = 'Eduardo Henrique Bogoni'
5
5
  HOMEPAGE = 'https://github.com/esquilo-azul/redmine_events_manager'
6
6
  SUMMARY = 'Management for events'
7
- VERSION = '0.5.4'
7
+ VERSION = '0.6.0'
8
8
 
9
9
  module Version
10
10
  end
@@ -21,5 +21,5 @@ Gem::Specification.new do |s|
21
21
  s.add_dependency 'delayed_job_active_record', '~> 4.1', '>= 4.1.11'
22
22
 
23
23
  # Test/development gems
24
- s.add_development_dependency 'eac_rails_gem_support', '~> 0.13', '>= 0.13.2'
24
+ s.add_development_dependency 'eac_rails_gem_support', '~> 0.15', '>= 0.15.3'
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_events_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Henrique Bogoni
@@ -35,20 +35,20 @@ dependencies:
35
35
  requirements:
36
36
  - - "~>"
37
37
  - !ruby/object:Gem::Version
38
- version: '0.13'
38
+ version: '0.15'
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 0.13.2
41
+ version: 0.15.3
42
42
  type: :development
43
43
  prerelease: false
44
44
  version_requirements: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '0.13'
48
+ version: '0.15'
49
49
  - - ">="
50
50
  - !ruby/object:Gem::Version
51
- version: 0.13.2
51
+ version: 0.15.3
52
52
  executables: []
53
53
  extensions: []
54
54
  extra_rdoc_files: []
@@ -64,6 +64,7 @@ files:
64
64
  - assets/stylesheets/application.css
65
65
  - bin/bundle
66
66
  - config/initializers/001_requires.rb
67
+ - config/initializers/menu.rb
67
68
  - config/locales/en.yml
68
69
  - config/locales/pt-BR.yml
69
70
  - config/routes.rb