eac_rails_base0 0.13.2 → 0.14.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/stylesheets/eac_rails_base0.scss +4 -0
- data/app/views/layouts/eac_rails_base0/_tasks_scheduler_alert.html.erb +10 -0
- data/app/views/layouts/eac_rails_base0/application.html.erb +2 -1
- data/config/initializers/action_mailer.rb +19 -0
- data/config/initializers/active_scaffold.rb +5 -0
- data/lib/eac_rails_base0/app_base/application.rb +9 -3
- data/lib/eac_rails_base0/version.rb +1 -1
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8720d2ff5aebe5227f22f5261e9bc6d4fa24a788d8c8706ebb887211ebca23a
|
4
|
+
data.tar.gz: fedf68397b13eb5ac2af456d8fb849a309a4206d72502e0c05ec038880eb4a09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2b13c027c10686a2d2ea707266564766139d30e4d974edd5aab348fdd630cf970a422e58d2c0ac0e8761b2ce34e512eea3106865a9cfeb8a139d1306711dbdb
|
7
|
+
data.tar.gz: b73503e5f7b70dcea1fd958d9d19ddbcb597b4d35ae32d39c769c9c2da3370770513c9293635d2054f007eebb1e17906df2105518029d756b555c3c030c11c1e
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<% if can_by_path?(main_app.tasks_scheduler_daemon_path) &&
|
2
|
+
can_by_path?(main_app.status_tasks_scheduler_daemon_path) %>
|
3
|
+
<script>
|
4
|
+
TasksScheduler.Alert.init();
|
5
|
+
</script>
|
6
|
+
<span id="tasks_scheduler_alert" >
|
7
|
+
<%= link_to '', main_app.tasks_scheduler_daemon_path, class: 'daemon_alert' %>
|
8
|
+
<%= link_to '', main_app.status_scheduled_tasks_path, class: 'task_alert' %>
|
9
|
+
</span>
|
10
|
+
<% end %>
|
@@ -9,10 +9,11 @@
|
|
9
9
|
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
10
10
|
<%= csrf_meta_tags %>
|
11
11
|
</head>
|
12
|
-
<body>
|
12
|
+
<body class="<%= controller.controller_name %>">
|
13
13
|
<nav class="navbar navbar-inverse">
|
14
14
|
<div class="container">
|
15
15
|
<div class="navbar-header">
|
16
|
+
<%= render partial: '/layouts/eac_rails_base0/tasks_scheduler_alert' %>
|
16
17
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
17
18
|
<span class="sr-only">Toggle navigation</span>
|
18
19
|
<span class="icon-bar"></span>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
Rails.application.configure do
|
3
|
+
config.action_mailer.smtp_settings = {
|
4
|
+
address: ENV['action_mailer_smtp_address'],
|
5
|
+
port: ENV['action_mailer_smtp_port'],
|
6
|
+
domain: ENV['action_mailer_smtp_domain'],
|
7
|
+
user_name: ENV['action_mailer_smtp_username'],
|
8
|
+
password: ENV['action_mailer_smtp_password'],
|
9
|
+
authentication: ENV['action_mailer_smtp_authentication'],
|
10
|
+
enable_starttls_auto: BooleanValue.to_b(ENV['action_mailer_smtp_enable_starttls_auto'])
|
11
|
+
}
|
12
|
+
config.action_mailer.default_url_options = {
|
13
|
+
host: ENV['action_mailer_default_url_host'],
|
14
|
+
port: ENV['action_mailer_default_url_port']
|
15
|
+
}
|
16
|
+
config.action_mailer.default_options ||= {}
|
17
|
+
config.action_mailer.default_options[:from] = ENV['action_mailer_default_options_from']
|
18
|
+
config.action_mailer.default_options[:reply_to] = ENV['action_mailer_default_options_reply_to']
|
19
|
+
end
|
@@ -6,6 +6,15 @@ require 'rails/all'
|
|
6
6
|
# you've limited to :test, :development, or :production.
|
7
7
|
Bundler.require(*Rails.groups)
|
8
8
|
|
9
|
+
def rails_root(dir)
|
10
|
+
return dir if ::File.exist?(::File.join(dir, 'config.ru'))
|
11
|
+
raise 'config.ru not found in ascendent path' if dir == '/'
|
12
|
+
rails_root(::File.dirname(dir))
|
13
|
+
end
|
14
|
+
|
15
|
+
local_configuration = ::File.join(rails_root(APP_PATH), 'config', 'local_configuration.rb')
|
16
|
+
require local_configuration if File.exist?(local_configuration)
|
17
|
+
|
9
18
|
module EacRailsBase0App
|
10
19
|
class Application < Rails::Application
|
11
20
|
# Settings in config/environments/* take precedence over those specified here.
|
@@ -32,6 +41,3 @@ module EacRailsBase0App
|
|
32
41
|
end
|
33
42
|
end
|
34
43
|
end
|
35
|
-
|
36
|
-
local_configuration = ::File.join(APP_PATH, 'config', 'local_configuration.rb')
|
37
|
-
require local_configuration if File.exist?(local_configuration)
|
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.14.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-04-
|
11
|
+
date: 2019-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha
|
@@ -307,6 +307,9 @@ dependencies:
|
|
307
307
|
- - "~>"
|
308
308
|
- !ruby/object:Gem::Version
|
309
309
|
version: '0.2'
|
310
|
+
- - ">="
|
311
|
+
- !ruby/object:Gem::Version
|
312
|
+
version: 0.2.1
|
310
313
|
type: :runtime
|
311
314
|
prerelease: false
|
312
315
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -314,6 +317,9 @@ dependencies:
|
|
314
317
|
- - "~>"
|
315
318
|
- !ruby/object:Gem::Version
|
316
319
|
version: '0.2'
|
320
|
+
- - ">="
|
321
|
+
- !ruby/object:Gem::Version
|
322
|
+
version: 0.2.1
|
317
323
|
- !ruby/object:Gem::Dependency
|
318
324
|
name: therubyracer
|
319
325
|
requirement: !ruby/object:Gem::Requirement
|
@@ -415,7 +421,10 @@ files:
|
|
415
421
|
- app/views/layouts/eac_rails_base0/_flash.html.erb
|
416
422
|
- app/views/layouts/eac_rails_base0/_main_menu.html.erb
|
417
423
|
- app/views/layouts/eac_rails_base0/_navbar_user.html.erb
|
424
|
+
- app/views/layouts/eac_rails_base0/_tasks_scheduler_alert.html.erb
|
418
425
|
- app/views/layouts/eac_rails_base0/application.html.erb
|
426
|
+
- config/initializers/action_mailer.rb
|
427
|
+
- config/initializers/active_scaffold.rb
|
419
428
|
- config/initializers/backport_pg_10_support_to_rails_4.rb
|
420
429
|
- config/initializers/backtrace_silencers.rb
|
421
430
|
- config/initializers/cookies_serializer.rb
|