eac_rails_base0 0.61.1 → 0.63.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/eac_rails_base0.js +1 -0
- data/app/assets/stylesheets/eac_rails_base0.scss +12 -0
- data/app/helpers/eac_rails_base0/main_menu_helper.rb +8 -1
- data/config/locales/pt-BR.yml +1 -0
- data/config/routes.rb +1 -0
- data/lib/eac_rails_base0/app_base/ability.rb +1 -0
- data/lib/eac_rails_base0/app_base/ability_mapping.rb +22 -9
- data/lib/eac_rails_base0/app_base/application/all.rb +7 -2
- data/lib/eac_rails_base0/engine.rb +2 -0
- data/lib/eac_rails_base0/version.rb +1 -1
- data/lib/eac_rails_base0/x_engine.rb +10 -0
- metadata +41 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92a075cff5368476ea569c5202ecb74bf81443e207039389ed11aa51a522415a
|
4
|
+
data.tar.gz: 7593598c9e0df68c45f79e99c61f0d565817031c3bb261575be8be510fffb5f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 725ab159279aca7301b0bfe6523246cf161d344d4a96a66a8500bff2e80e59cdd381a637409a04038008a24a4618a1cf9b155f7b21fa14f5bb25b3a9e06ad0cd
|
7
|
+
data.tar.gz: 78553bf1b53c4d0e57e1aa6c39ba5bb49ced2f0a9b1e7319964f0234233f8e44f25f6348406f9c87f31a79a7778e19d9870880e93f7530a2d7c3282577f826d1
|
@@ -1,13 +1,25 @@
|
|
1
|
+
@import 'eac_rails_remotes/application';
|
2
|
+
|
1
3
|
@import 'eac_users_support/application';
|
4
|
+
|
2
5
|
@import 'eac_rails_base0/bootstrap_import';
|
6
|
+
|
3
7
|
@import "eac_rails_utils";
|
8
|
+
|
4
9
|
@import "aranha/application";
|
10
|
+
|
5
11
|
@import "tasks_scheduler";
|
12
|
+
|
6
13
|
@import 'br_railties';
|
14
|
+
|
7
15
|
@import 'eac_active_scaffold';
|
16
|
+
|
8
17
|
@import 'jquery-ui';
|
18
|
+
|
9
19
|
@import 'eac_rails_base0/default_configuration';
|
20
|
+
|
10
21
|
@import 'eac_rails_base0/components';
|
22
|
+
|
11
23
|
@import 'eac_rails_base0/styles_legend';
|
12
24
|
|
13
25
|
.alert-notice {
|
@@ -3,7 +3,8 @@
|
|
3
3
|
module EacRailsBase0
|
4
4
|
module MainMenuHelper
|
5
5
|
APP_MAIN_MENU_ENTRIES_METHOD = 'app_main_menu_entries'
|
6
|
-
ADMIN_ENTRIES = %w[eac_users_support tasks_scheduler aranha br_railties mailer
|
6
|
+
ADMIN_ENTRIES = %w[eac_users_support tasks_scheduler aranha br_railties mailer
|
7
|
+
eac_rails_remotes].freeze
|
7
8
|
|
8
9
|
def base0_app_main_menu_entries
|
9
10
|
if respond_to?(APP_MAIN_MENU_ENTRIES_METHOD)
|
@@ -35,6 +36,12 @@ module EacRailsBase0
|
|
35
36
|
end.to_h
|
36
37
|
end
|
37
38
|
|
39
|
+
def eac_rails_remotes_main_menu_admin_entries
|
40
|
+
{
|
41
|
+
::EacRailsRemotes::Instance.model_name.human(count: 2) => [eac_rails_remotes.instances_path]
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
38
45
|
def eac_users_support_main_menu_admin_entries
|
39
46
|
{
|
40
47
|
::EacUsersSupport::User.model_name.human(count: 2) => [eac_users_support.admin_users_path]
|
data/config/locales/pt-BR.yml
CHANGED
data/config/routes.rb
CHANGED
@@ -5,6 +5,7 @@ Rails.application.routes.draw do
|
|
5
5
|
mount ::EacUsersSupport::Engine => '/'
|
6
6
|
mount ::Aranha::Rails::Engine => '/aranha'
|
7
7
|
mount ::BrRailties::Engine => '/br_railties'
|
8
|
+
mount ::EacRailsRemotes::Engine => '/remotes'
|
8
9
|
|
9
10
|
namespace(:eac_rails_base0) do
|
10
11
|
resources(:mailer, only: []) do
|
@@ -8,27 +8,40 @@ module EacRailsBase0
|
|
8
8
|
include CanCanDry::AbilityMappingSets::Devise
|
9
9
|
include CanCanDry::AbilityMappingSets::DeviseInvitable
|
10
10
|
|
11
|
+
MAP_METHODS = %w[aranha br_railties devise devise_invitable eac_rails_base0 eac_rails_remotes
|
12
|
+
eac_users_support tasks_schedulers].freeze
|
13
|
+
|
11
14
|
def initialize
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
map_controller '
|
17
|
-
map_controller 'BrRailties::Municipalities', :manage, ::BrRailties::Municipality
|
18
|
-
map_controller 'ScheduledTasks', :manage, ::ScheduledTask
|
19
|
-
map_controller 'TasksSchedulerDaemon', :manage, ::ScheduledTask
|
20
|
-
map_eac_rails_base0
|
15
|
+
MAP_METHODS.each { |m| send("map_#{m}") }
|
16
|
+
end
|
17
|
+
|
18
|
+
def map_eac_rails_remotes
|
19
|
+
map_controller 'EacRailsRemotes::Instances', :manage, ::EacRailsRemotes::Instance
|
21
20
|
end
|
22
21
|
|
23
22
|
def map_eac_rails_base0
|
24
23
|
map_controller 'EacRailsBase0::Mailer', :manage, :eac_rails_base0_mailer
|
25
24
|
end
|
26
25
|
|
26
|
+
def map_eac_users_support
|
27
|
+
map_controller 'EacUsersSupport::Admin::Users', :manage, ::EacUsersSupport::User
|
28
|
+
end
|
29
|
+
|
27
30
|
def map_aranha
|
28
31
|
map_controller 'Aranha::Addresses', :manage, ::Aranha::Address
|
29
32
|
map_controller 'Aranha::ProcessorConfigurations', :manage, ::Aranha::ProcessorConfiguration
|
30
33
|
map_controller 'Aranha::StartPoints', :manage, ::Aranha::StartPoint
|
31
34
|
end
|
35
|
+
|
36
|
+
def map_br_railties
|
37
|
+
map_controller 'BrRailties::FederalUnits', :manage, ::BrRailties::FederalUnit
|
38
|
+
map_controller 'BrRailties::Municipalities', :manage, ::BrRailties::Municipality
|
39
|
+
end
|
40
|
+
|
41
|
+
def map_tasks_schedulers
|
42
|
+
map_controller 'ScheduledTasks', :manage, ::ScheduledTask
|
43
|
+
map_controller 'TasksSchedulerDaemon', :manage, ::ScheduledTask
|
44
|
+
end
|
32
45
|
end
|
33
46
|
end
|
34
47
|
end
|
@@ -6,8 +6,9 @@ module EacRailsBase0App
|
|
6
6
|
class Application < Rails::Application
|
7
7
|
module All
|
8
8
|
common_concern do
|
9
|
-
setup('app_root', 'engines', '
|
10
|
-
'localization', 'load_paths', 'loggers',
|
9
|
+
setup('app_root', 'engines', 'local_engines', 'active_record', 'assets_cache',
|
10
|
+
'dependencies', 'defaults', 'localization', 'load_paths', 'loggers',
|
11
|
+
'unknown_asset_fallback')
|
11
12
|
end
|
12
13
|
|
13
14
|
module ClassMethods
|
@@ -39,6 +40,10 @@ module EacRailsBase0App
|
|
39
40
|
require 'eac_rails_base0/engine'
|
40
41
|
end
|
41
42
|
|
43
|
+
def setup_local_engines
|
44
|
+
::EacRailsBase0::XEngine.require_local
|
45
|
+
end
|
46
|
+
|
42
47
|
def setup_unknown_asset_fallback
|
43
48
|
config.assets.unknown_asset_fallback = false
|
44
49
|
end
|
@@ -11,6 +11,12 @@ module EacRailsBase0
|
|
11
11
|
class << self
|
12
12
|
enable_simple_cache
|
13
13
|
|
14
|
+
def require_local
|
15
|
+
local_roots.each do |root|
|
16
|
+
require_dependency "#{root.basename.to_path.gsub('-', '/')}/engine"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
14
20
|
def local_root
|
15
21
|
::Rails.root.join(::EacRailsBase0::Paths.engines_subpath)
|
16
22
|
end
|
@@ -24,6 +30,10 @@ module EacRailsBase0
|
|
24
30
|
def local_uncached
|
25
31
|
all.select(&:local?)
|
26
32
|
end
|
33
|
+
|
34
|
+
def local_roots
|
35
|
+
local_root.glob('*/*.gemspec').map(&:parent)
|
36
|
+
end
|
27
37
|
end
|
28
38
|
|
29
39
|
def initialize(engine_instance)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_rails_base0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.63.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|
@@ -16,20 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.17.1
|
19
|
+
version: '0.18'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 0.17.1
|
26
|
+
version: '0.18'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: aranha-rails
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,40 +178,62 @@ dependencies:
|
|
184
178
|
requirements:
|
185
179
|
- - "~>"
|
186
180
|
- !ruby/object:Gem::Version
|
187
|
-
version: '0.
|
181
|
+
version: '0.35'
|
182
|
+
type: :runtime
|
183
|
+
prerelease: false
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
requirements:
|
186
|
+
- - "~>"
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: '0.35'
|
189
|
+
- !ruby/object:Gem::Dependency
|
190
|
+
name: eac_rails_delayed_job
|
191
|
+
requirement: !ruby/object:Gem::Requirement
|
192
|
+
requirements:
|
193
|
+
- - "~>"
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: '0.1'
|
188
196
|
- - ">="
|
189
197
|
- !ruby/object:Gem::Version
|
190
|
-
version: 0.
|
198
|
+
version: 0.1.4
|
191
199
|
type: :runtime
|
192
200
|
prerelease: false
|
193
201
|
version_requirements: !ruby/object:Gem::Requirement
|
194
202
|
requirements:
|
195
203
|
- - "~>"
|
196
204
|
- !ruby/object:Gem::Version
|
197
|
-
version: '0.
|
205
|
+
version: '0.1'
|
198
206
|
- - ">="
|
199
207
|
- !ruby/object:Gem::Version
|
200
|
-
version: 0.
|
208
|
+
version: 0.1.4
|
201
209
|
- !ruby/object:Gem::Dependency
|
202
210
|
name: eac_rails_gem_support
|
203
211
|
requirement: !ruby/object:Gem::Requirement
|
204
212
|
requirements:
|
205
213
|
- - "~>"
|
206
214
|
- !ruby/object:Gem::Version
|
207
|
-
version: '0.
|
208
|
-
- - ">="
|
209
|
-
- !ruby/object:Gem::Version
|
210
|
-
version: 0.4.1
|
215
|
+
version: '0.7'
|
211
216
|
type: :runtime
|
212
217
|
prerelease: false
|
213
218
|
version_requirements: !ruby/object:Gem::Requirement
|
214
219
|
requirements:
|
215
220
|
- - "~>"
|
216
221
|
- !ruby/object:Gem::Version
|
217
|
-
version: '0.
|
218
|
-
|
222
|
+
version: '0.7'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: eac_rails_remotes
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0.1'
|
230
|
+
type: :runtime
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - "~>"
|
219
235
|
- !ruby/object:Gem::Version
|
220
|
-
version: 0.
|
236
|
+
version: '0.1'
|
221
237
|
- !ruby/object:Gem::Dependency
|
222
238
|
name: eac_rails_utils
|
223
239
|
requirement: !ruby/object:Gem::Requirement
|
@@ -244,14 +260,14 @@ dependencies:
|
|
244
260
|
requirements:
|
245
261
|
- - "~>"
|
246
262
|
- !ruby/object:Gem::Version
|
247
|
-
version: '0.
|
263
|
+
version: '0.117'
|
248
264
|
type: :runtime
|
249
265
|
prerelease: false
|
250
266
|
version_requirements: !ruby/object:Gem::Requirement
|
251
267
|
requirements:
|
252
268
|
- - "~>"
|
253
269
|
- !ruby/object:Gem::Version
|
254
|
-
version: '0.
|
270
|
+
version: '0.117'
|
255
271
|
- !ruby/object:Gem::Dependency
|
256
272
|
name: eac_users_support
|
257
273
|
requirement: !ruby/object:Gem::Requirement
|
@@ -278,14 +294,14 @@ dependencies:
|
|
278
294
|
requirements:
|
279
295
|
- - "~>"
|
280
296
|
- !ruby/object:Gem::Version
|
281
|
-
version: '3.
|
297
|
+
version: '3.19'
|
282
298
|
type: :runtime
|
283
299
|
prerelease: false
|
284
300
|
version_requirements: !ruby/object:Gem::Requirement
|
285
301
|
requirements:
|
286
302
|
- - "~>"
|
287
303
|
- !ruby/object:Gem::Version
|
288
|
-
version: '3.
|
304
|
+
version: '3.19'
|
289
305
|
- !ruby/object:Gem::Dependency
|
290
306
|
name: jbuilder
|
291
307
|
requirement: !ruby/object:Gem::Requirement
|