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 +4 -4
- data/app/controllers/event_exceptions_controller.rb +1 -1
- data/app/controllers/listener_options_controller.rb +1 -1
- data/config/initializers/menu.rb +16 -0
- data/config/locales/en.yml +1 -0
- data/config/locales/pt-BR.yml +1 -0
- data/dependencies.yaml +1 -1
- data/init.rb +0 -15
- data/lib/redmine_events_manager/version.rb +1 -1
- data/redmine_events_manager.gemspec +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a5afa146a13f0744da20028009e9a29f9c7b6fc5702c070e03aeedf00bb23d02
|
|
4
|
+
data.tar.gz: f261d080c7d371bc19aa64808a7f2b4fd5593a712b23a5f5fb3ea1d7f9f506be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 '
|
|
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|
|
|
@@ -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
|
data/config/locales/en.yml
CHANGED
data/config/locales/pt-BR.yml
CHANGED
data/dependencies.yaml
CHANGED
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
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
38
|
+
version: '0.15'
|
|
39
39
|
- - ">="
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: 0.
|
|
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.
|
|
48
|
+
version: '0.15'
|
|
49
49
|
- - ">="
|
|
50
50
|
- !ruby/object:Gem::Version
|
|
51
|
-
version: 0.
|
|
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
|