redmine_nonproject_modules 0.3.4 → 0.3.7

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: c417f99f1a29888b41e9f436899fa571d059b836d596f2f7a27efe8c2f0c8420
4
- data.tar.gz: ee4051f4b9b220d4e2c50f1e4492604932046d68984ffc79cdc5999763081415
3
+ metadata.gz: 39d1568e4e0932e2aa4292246e5b96357211fc548b2276ed6ece9faf200b510a
4
+ data.tar.gz: 29e9167fc8281599408461df37ff7c32e5bd7bb97a6a4a1c3f7a802f81c278f9
5
5
  SHA512:
6
- metadata.gz: 7a908fabb449db2afddef4909699133656ead7208f38305c7971aef6ac9e6c04e40cec91aaec9bec7789a8007b001eb0bdc3650e4489b5b672ac7ba372728ddb
7
- data.tar.gz: a92620cf8505e8af7815c597bda645ca9c313595205e99c4ead35c8ca3019125f06aca2e96cd5e65a40015bc6faba03c27b16388f890113311c7b146c1335198
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'
@@ -0,0 +1,4 @@
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
- def l(*args)
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
- super(*args)
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(:prepend, y) unless x.included_modules.include?(y)
29
+ x.send(:include, y) unless x.included_modules.include?(y)
@@ -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.4'
7
+ VERSION = '0.3.7'
8
8
  end
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
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
- - 0.3.4
7
+ - 0.3.7
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-27 00:00:00.000000000 Z
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,8 @@ 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
135
+ - config/initializers/assets.rb
134
136
  - config/locales/en.yml
135
137
  - config/locales/pt-BR.yml
136
138
  - config/routes.rb
@@ -162,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
164
  - !ruby/object:Gem::Version
163
165
  version: '0'
164
166
  requirements: []
165
- rubygems_version: 3.0.8
167
+ rubygems_version: 3.1.6
166
168
  signing_key:
167
169
  specification_version: 4
168
170
  summary: Support to non-project modules.