eac_rails_base0 0.9.0 → 0.11.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 +1 -0
- data/app/helpers/eac_rails_base0/layout_helper.rb +40 -8
- data/config/locales/pt-BR.yml +7 -0
- data/config/routes.rb +1 -0
- data/lib/eac_rails_base0.rb +1 -0
- data/lib/eac_rails_base0/app_base/ability.rb +2 -0
- data/lib/eac_rails_base0/app_base/ability_mapping.rb +2 -0
- data/lib/eac_rails_base0/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52b1c17d4069f065dcd2842557d0266e40c9b33f8a08944f39c490d8a2977b71
|
4
|
+
data.tar.gz: de9e9530d71d98158b235c97277810997394e6c41201fe8bf31e4b0088b364f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 934ccd554b29db7a1dd85639b6a936d8538d0a28327703aaf230b4e84efc01771111e0dfec62d6437c854e86b6c8010b35932449b624e55dd1ec5e685a49e5cc
|
7
|
+
data.tar.gz: 495315ce64a8737e7b495e788f974037a8e7c502b4226dcbf85a7b71a3935c4477c5d6569e9d5d3127ba2196df32f3253c6988f96ff7d399196b09fff7889195
|
@@ -23,14 +23,46 @@ module EacRailsBase0
|
|
23
23
|
|
24
24
|
def base0_app_main_menu_default_entries
|
25
25
|
{
|
26
|
-
'Administração' =>
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
26
|
+
'Administração' => base0_app_main_menu_admin_entries
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
def base0_app_main_menu_admin_entries
|
31
|
+
h = {}
|
32
|
+
base0_app_main_menu_admin_gems.each do |gem_module|
|
33
|
+
identifier = gem_module.name.underscore
|
34
|
+
h[::I18n.t("eac_rails_base0.main_menu.admin.#{identifier}")] =
|
35
|
+
send("#{identifier}_main_menu_admin_entries")
|
36
|
+
end
|
37
|
+
h
|
38
|
+
end
|
39
|
+
|
40
|
+
def base0_app_main_menu_admin_gems
|
41
|
+
[::EacUsersSupport, ::TasksScheduler, ::Aranha, ::BrRailties]
|
42
|
+
end
|
43
|
+
|
44
|
+
def eac_users_support_main_menu_admin_entries
|
45
|
+
{
|
46
|
+
::EacUsersSupport::User.model_name.human(count: 2) => [eac_users_support.admin_users_path]
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
def tasks_scheduler_main_menu_admin_entries
|
51
|
+
{
|
52
|
+
t('activerecord.models.scheduled_task.other') => [main_app.status_scheduled_tasks_path]
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
def aranha_main_menu_admin_entries
|
57
|
+
{
|
58
|
+
::Aranha::Address.model_name.human(count: 2) => [aranha.addresses_path]
|
59
|
+
}
|
60
|
+
end
|
61
|
+
|
62
|
+
def br_railties_main_menu_admin_entries
|
63
|
+
{
|
64
|
+
::BrRailties::FederalUnit.model_name.human(count: 2) => [br_railties.federal_units_path],
|
65
|
+
::BrRailties::Municipality.model_name.human(count: 2) => [br_railties.municipalities_path]
|
34
66
|
}
|
35
67
|
end
|
36
68
|
end
|
data/config/locales/pt-BR.yml
CHANGED
data/config/routes.rb
CHANGED
data/lib/eac_rails_base0.rb
CHANGED
@@ -10,6 +10,8 @@ module EacRailsBase0
|
|
10
10
|
map_devise
|
11
11
|
map_controller 'EacUsersSupport::Admin::Users', :manage, ::EacUsersSupport::User
|
12
12
|
map_controller 'Aranha::Addresses', :manage, ::Aranha::Address
|
13
|
+
map_controller 'BrRailties::FederalUnits', :manage, ::BrRailties::FederalUnit
|
14
|
+
map_controller 'BrRailties::Municipalities', :manage, ::BrRailties::Municipality
|
13
15
|
map_controller 'ScheduledTasks', :manage, ::ScheduledTask
|
14
16
|
map_controller 'TasksSchedulerDaemon', :manage, ::ScheduledTask
|
15
17
|
end
|
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.11.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: 2019-02-
|
11
|
+
date: 2019-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha
|
@@ -44,6 +44,20 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 3.3.7
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: br_railties
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.2'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0.2'
|
47
61
|
- !ruby/object:Gem::Dependency
|
48
62
|
name: byebug
|
49
63
|
requirement: !ruby/object:Gem::Requirement
|