redmine_nonproject_modules 0.3.5 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/000_dependencies.rb +1 -1
- data/config/initializers/001_patches.rb +7 -0
- data/config/initializers/assets.rb +4 -2
- data/lib/redmine_nonproject_modules/patches/redmine/i18n_patch.rb +10 -3
- data/lib/redmine_nonproject_modules/version.rb +1 -1
- metadata +17 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3878e44afc5250b5fe4730ecf1ac0814e9f5b6707836aed56417675e30f25768
|
4
|
+
data.tar.gz: defee47225dc5e925dd074a02152d2aa20a4dc00858cf27eec8f97326e665f53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe422be7376b493aa08df40e29b47e6cc9f92763b99496dd467336cfb1a62b3c26b4508fd9828116e3974c0ad1cc8ba527f2f7abc197f0c4d8524bcdc6dd84cc
|
7
|
+
data.tar.gz: 1b58df46babfefec5127dd0ca35cc5ac9498fc38958e24cec090293934aaabf5631e567df18621a70c59310c945844832d20284f2a7dc8f8552b8058d5119dc6
|
@@ -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.
|
5
|
+
requires_redmine_plugin(:redmine_plugins_helper, version_or_higher: '0.9.3')
|
6
6
|
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'redmine_nonproject_modules/patches/controller_patch'
|
4
|
+
require 'redmine_nonproject_modules/patches/group_patch'
|
5
|
+
require 'redmine_nonproject_modules/patches/redmine/i18n_patch'
|
6
|
+
require 'redmine_nonproject_modules/patches/redmine/menu_manager_patch'
|
7
|
+
require 'redmine_nonproject_modules/patches/user_patch'
|
@@ -1,2 +1,4 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
Rails.application.config.assets.precompile += %w[active_scaffold.css]
|
4
|
+
Rails.application.config.assets.precompile += %w[active_scaffold.js]
|
@@ -1,14 +1,21 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'redmine/i18n'
|
4
|
+
|
3
5
|
module RedmineNonprojectModules
|
4
6
|
module Patches
|
5
7
|
module Redmine
|
6
8
|
module I18nPatch
|
7
|
-
|
9
|
+
common_concern do
|
10
|
+
alias_method :original_l, :l
|
11
|
+
alias_method :l, :fixed_l
|
12
|
+
end
|
13
|
+
|
14
|
+
def fixed_l(*args)
|
8
15
|
if (args.first.is_a?(Time) || args.first.is_a?(Date)) && args.last.is_a?(Hash)
|
9
16
|
::I18n.l(args.first, args.last)
|
10
17
|
else
|
11
|
-
|
18
|
+
original_l(*args)
|
12
19
|
end
|
13
20
|
end
|
14
21
|
end
|
@@ -19,4 +26,4 @@ end
|
|
19
26
|
x = ::Redmine::I18n
|
20
27
|
y = ::RedmineNonprojectModules::Patches::Redmine::I18nPatch
|
21
28
|
|
22
|
-
x.send(:
|
29
|
+
x.send(:include, y) unless x.included_modules.include?(y)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- 0.3.
|
7
|
+
- 0.3.8
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_scaffold
|
@@ -30,34 +30,34 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
34
|
-
- - ">="
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: 0.12.2
|
33
|
+
version: '0.15'
|
37
34
|
type: :runtime
|
38
35
|
prerelease: false
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
40
37
|
requirements:
|
41
38
|
- - "~>"
|
42
39
|
- !ruby/object:Gem::Version
|
43
|
-
version: '0.
|
44
|
-
- - ">="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: 0.12.2
|
40
|
+
version: '0.15'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: eac_ruby_utils
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
44
|
requirements:
|
51
45
|
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
47
|
+
version: '0.95'
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 0.95.1
|
54
51
|
type: :runtime
|
55
52
|
prerelease: false
|
56
53
|
version_requirements: !ruby/object:Gem::Requirement
|
57
54
|
requirements:
|
58
55
|
- - "~>"
|
59
56
|
- !ruby/object:Gem::Version
|
60
|
-
version: '0.
|
57
|
+
version: '0.95'
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 0.95.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: jquery-rails
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,40 +72,20 @@ dependencies:
|
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '4.4'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: virtus
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - ">="
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '0'
|
82
|
-
type: :runtime
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - ">="
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '0'
|
89
75
|
- !ruby/object:Gem::Dependency
|
90
76
|
name: eac_ruby_gem_support
|
91
77
|
requirement: !ruby/object:Gem::Requirement
|
92
78
|
requirements:
|
93
79
|
- - "~>"
|
94
80
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
96
|
-
- - ">="
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: 0.1.2
|
81
|
+
version: 0.5.1
|
99
82
|
type: :development
|
100
83
|
prerelease: false
|
101
84
|
version_requirements: !ruby/object:Gem::Requirement
|
102
85
|
requirements:
|
103
86
|
- - "~>"
|
104
87
|
- !ruby/object:Gem::Version
|
105
|
-
version:
|
106
|
-
- - ">="
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
version: 0.1.2
|
88
|
+
version: 0.5.1
|
109
89
|
description:
|
110
90
|
email:
|
111
91
|
executables: []
|
@@ -131,6 +111,7 @@ files:
|
|
131
111
|
- app/views/layouts/nonproject_modules.html.erb
|
132
112
|
- app/views/nonproject_modules/index.html.erb
|
133
113
|
- config/initializers/000_dependencies.rb
|
114
|
+
- config/initializers/001_patches.rb
|
134
115
|
- config/initializers/assets.rb
|
135
116
|
- config/locales/en.yml
|
136
117
|
- config/locales/pt-BR.yml
|
@@ -163,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
144
|
- !ruby/object:Gem::Version
|
164
145
|
version: '0'
|
165
146
|
requirements: []
|
166
|
-
rubygems_version: 3.
|
147
|
+
rubygems_version: 3.1.6
|
167
148
|
signing_key:
|
168
149
|
specification_version: 4
|
169
150
|
summary: Support to non-project modules.
|