eac_rails_base0 0.45.0 → 0.46.0
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 +4 -4
- data/app/controllers/eac_rails_base0/mailer_controller.rb +12 -0
- data/app/helpers/eac_rails_base0/layout_helper.rb +9 -9
- data/app/views/eac_rails_base0/mailer/info.html.erb +17 -0
- data/config/locales/en.yml +7 -0
- data/config/locales/pt-BR.yml +3 -0
- data/config/routes.rb +8 -0
- data/lib/eac_rails_base0/app_base/ability.rb +1 -0
- data/lib/eac_rails_base0/app_base/ability_mapping.rb +5 -0
- data/lib/eac_rails_base0/app_base/application/development.rb +3 -1
- data/lib/eac_rails_base0/version.rb +1 -1
- data/lib/eac_rails_base0/x_engine.rb +4 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c96092667c86b10c873e3a50592375478186f66a8532f05b237fe7ec591c604f
|
4
|
+
data.tar.gz: df32971dca2efcd3e13005ec8220f5f05fce87f3019f701e49bbc8aff45ab802
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9c801d5573d57f06281c1fa02e7a85b13b54ce491d5fc363a640526b4fcbf306d1a641c76c1fcdbc6e40a96d36f2841b72c40a6f1c13c61ab30423811f5f922
|
7
|
+
data.tar.gz: 770749e226208d837accc62737169c36f30e38a5fdcfc1e5997b68cf6cda4ca23906a4006a0470a030c035ee08c0d96f249a51e2080902aa296223b399ac997f
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EacRailsBase0
|
4
|
+
class MailerController < ::EacRailsBase0::ApplicationController
|
5
|
+
def info
|
6
|
+
klass = ::ActionMailer::Base
|
7
|
+
@sections = %w[default_params default_url_options smtp_settings].map do |section|
|
8
|
+
["#{klass}.#{section}", klass.send(section)]
|
9
|
+
end.to_h
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -4,6 +4,7 @@ module EacRailsBase0
|
|
4
4
|
module LayoutHelper
|
5
5
|
APP_TITLE_METHOD = 'app_title'
|
6
6
|
APP_MAIN_MENU_ENTRIES_METHOD = 'app_main_menu_entries'
|
7
|
+
ADMIN_ENTRIES = %w[eac_users_support tasks_scheduler aranha br_railties mailer].freeze
|
7
8
|
|
8
9
|
def base0_app_title
|
9
10
|
if respond_to?(APP_TITLE_METHOD)
|
@@ -28,17 +29,16 @@ module EacRailsBase0
|
|
28
29
|
end
|
29
30
|
|
30
31
|
def base0_app_main_menu_admin_entries
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
send("#{identifier}_main_menu_admin_entries")
|
36
|
-
end
|
37
|
-
h
|
32
|
+
ADMIN_ENTRIES.map do |identifier|
|
33
|
+
[::I18n.t("eac_rails_base0.main_menu.admin.#{identifier}"),
|
34
|
+
send("#{identifier}_main_menu_admin_entries")]
|
35
|
+
end.to_h
|
38
36
|
end
|
39
37
|
|
40
|
-
def
|
41
|
-
|
38
|
+
def mailer_main_menu_admin_entries
|
39
|
+
{
|
40
|
+
t('eac_rails_base0.mailer.info') => [main_app.info_eac_rails_base0_mailer_index_path]
|
41
|
+
}
|
42
42
|
end
|
43
43
|
|
44
44
|
def eac_users_support_main_menu_admin_entries
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<h2><%= t('eac_rails_base0.mailer.info') %></h2>
|
2
|
+
<% @sections.each do |section_title, section_data| %>
|
3
|
+
<h3><%= section_title %></h3>
|
4
|
+
<dl>
|
5
|
+
<% section_data.each do |key, value| %>
|
6
|
+
<dt><%= key %></dt>
|
7
|
+
<dd>
|
8
|
+
<% if key.to_s.downcase.include?('password') %>
|
9
|
+
<em><%= value.present? ? 'Present' : 'Blank' %></em>
|
10
|
+
<% else %>
|
11
|
+
<%= value %>
|
12
|
+
<% end %>
|
13
|
+
(<%= value.class %>)
|
14
|
+
</dd>
|
15
|
+
<% end %>
|
16
|
+
</dl>
|
17
|
+
<% end %>
|
data/config/locales/pt-BR.yml
CHANGED
@@ -27,9 +27,12 @@ pt-BR:
|
|
27
27
|
eac_rails_base0:
|
28
28
|
app_version:
|
29
29
|
unsetted: Não especificada
|
30
|
+
mailer:
|
31
|
+
info: 'Informações de e-mail'
|
30
32
|
main_menu:
|
31
33
|
admin:
|
32
34
|
aranha: Aranha
|
33
35
|
br_railties: BrRailties
|
36
|
+
mailer: E-mail
|
34
37
|
eac_users_support: Usuários
|
35
38
|
tasks_scheduler: Agendador
|
data/config/routes.rb
CHANGED
@@ -7,4 +7,12 @@ Rails.application.routes.draw do
|
|
7
7
|
mount ::EacUsersSupport::Engine => '/'
|
8
8
|
mount ::Aranha::Engine => '/aranha'
|
9
9
|
mount ::BrRailties::Engine => '/br_railties'
|
10
|
+
|
11
|
+
namespace(:eac_rails_base0) do
|
12
|
+
resources(:mailer, include: []) do
|
13
|
+
collection do
|
14
|
+
get :info
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
10
18
|
end
|
@@ -17,6 +17,11 @@ module EacRailsBase0
|
|
17
17
|
map_controller 'BrRailties::Municipalities', :manage, ::BrRailties::Municipality
|
18
18
|
map_controller 'ScheduledTasks', :manage, ::ScheduledTask
|
19
19
|
map_controller 'TasksSchedulerDaemon', :manage, ::ScheduledTask
|
20
|
+
map_eac_rails_base0
|
21
|
+
end
|
22
|
+
|
23
|
+
def map_eac_rails_base0
|
24
|
+
map_controller 'EacRailsBase0::Mailer', :manage, :eac_rails_base0_mailer
|
20
25
|
end
|
21
26
|
end
|
22
27
|
end
|
@@ -48,7 +48,9 @@ module EacRailsBase0App
|
|
48
48
|
|
49
49
|
def setup_log
|
50
50
|
config.active_support.deprecation = :log
|
51
|
-
|
51
|
+
logger = ActiveSupport::Logger.new(STDOUT)
|
52
|
+
logger.formatter = config.log_formatter
|
53
|
+
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
52
54
|
end
|
53
55
|
end
|
54
56
|
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.46.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: 2020-10-
|
11
|
+
date: 2020-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_scaffold
|
@@ -577,6 +577,7 @@ files:
|
|
577
577
|
- app/assets/stylesheets/eac_rails_base0/components.scss
|
578
578
|
- app/assets/stylesheets/eac_rails_base0/default_configuration.scss
|
579
579
|
- app/controllers/eac_rails_base0/application_controller.rb
|
580
|
+
- app/controllers/eac_rails_base0/mailer_controller.rb
|
580
581
|
- app/helpers/eac_rails_base0/app_version_helper.rb
|
581
582
|
- app/helpers/eac_rails_base0/layout_helper.rb
|
582
583
|
- app/helpers/eac_rails_base0/panel_default_helper.rb
|
@@ -591,6 +592,7 @@ files:
|
|
591
592
|
- app/views/devise/registrations/new.html.erb
|
592
593
|
- app/views/devise/sessions/new.html.erb
|
593
594
|
- app/views/devise/shared/_links.html.erb
|
595
|
+
- app/views/eac_rails_base0/mailer/info.html.erb
|
594
596
|
- app/views/layouts/eac_rails_base0/_flash.html.erb
|
595
597
|
- app/views/layouts/eac_rails_base0/_main_menu.html.erb
|
596
598
|
- app/views/layouts/eac_rails_base0/_navbar_user.html.erb
|
@@ -609,6 +611,7 @@ files:
|
|
609
611
|
- config/initializers/patches.rb
|
610
612
|
- config/initializers/session_store.rb
|
611
613
|
- config/initializers/wrap_parameters.rb
|
614
|
+
- config/locales/en.yml
|
612
615
|
- config/locales/pt-BR.yml
|
613
616
|
- config/routes.rb
|
614
617
|
- exe/eac_rails_base0_app
|