redmine_nonproject_modules 0.3.6 → 0.3.7
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 39d1568e4e0932e2aa4292246e5b96357211fc548b2276ed6ece9faf200b510a
|
|
4
|
+
data.tar.gz: 29e9167fc8281599408461df37ff7c32e5bd7bb97a6a4a1c3f7a802f81c278f9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e33b6fe438cbadf5a7f7597995f7bbe68e82ee608c4040f6e837acd3ab645c8f60fdc357d40270e547787d71d5144f3057a23ccc98e6a37e5cd077fd067f714
|
|
7
|
+
data.tar.gz: c98a5861109fb025c2a86e53a6e35685067a1912d86d4762a889b06e970867ba4df150b44afb15fa4b28f36e521b671cd9b0be4abb7ee188f3d3fc9c8ae1773c
|
|
@@ -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,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.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- 0.3.
|
|
7
|
+
- 0.3.7
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-06-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: active_scaffold
|
|
@@ -131,6 +131,7 @@ files:
|
|
|
131
131
|
- app/views/layouts/nonproject_modules.html.erb
|
|
132
132
|
- app/views/nonproject_modules/index.html.erb
|
|
133
133
|
- config/initializers/000_dependencies.rb
|
|
134
|
+
- config/initializers/001_patches.rb
|
|
134
135
|
- config/initializers/assets.rb
|
|
135
136
|
- config/locales/en.yml
|
|
136
137
|
- config/locales/pt-BR.yml
|
|
@@ -163,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
163
164
|
- !ruby/object:Gem::Version
|
|
164
165
|
version: '0'
|
|
165
166
|
requirements: []
|
|
166
|
-
rubygems_version: 3.
|
|
167
|
+
rubygems_version: 3.1.6
|
|
167
168
|
signing_key:
|
|
168
169
|
specification_version: 4
|
|
169
170
|
summary: Support to non-project modules.
|