eac_rails_base0 0.68.1 → 0.68.2
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/application_controller.rb +1 -1
- data/app/controllers/eac_rails_base0/mailer_controller.rb +2 -2
- data/config/initializers/action_mailer.rb +12 -10
- data/config/initializers/carrier_wave.rb +4 -4
- data/exe/eac_rails_base0_app +1 -1
- data/lib/eac_rails_base0/app_base/application/all.rb +3 -3
- data/lib/eac_rails_base0/app_base/application/development.rb +2 -2
- data/lib/eac_rails_base0/app_base/application/production.rb +1 -1
- data/lib/eac_rails_base0/app_base/application.rb +1 -1
- data/lib/eac_rails_base0/app_generator/templates/config/application.rb +1 -1
- data/lib/eac_rails_base0/app_generator/templates/config.ru +1 -1
- data/lib/eac_rails_base0/version.rb +1 -1
- data/lib/eac_rails_base0/x_engine.rb +0 -4
- data/lib/tasks/eac_rails_base0.rake +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9bdfa7dc225c9e1097d5492d6ea2901227df462a45605e7def1c0dd57b838140
|
|
4
|
+
data.tar.gz: 3771d9f4db9ec9a1465e7656803c7ed5d8d1ed8e25db4ab19bafdbdfd237f664
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 601a5adfaebf97f6069cf0cffffef62b5ea496a17a8511e193955eb40e0a42eb6729d53ad703821bfe50528825f08094e170c9d2c9abead53e1b8453f1ab21e4
|
|
7
|
+
data.tar.gz: c874f54df14d93ec2bac6db0f78d19cc0da710b9c548a79d90fb71678e04917733535870ec7f3375b76138271ee72ba383dacc9ac0302a6fedd68b9573da25e8
|
|
@@ -25,7 +25,7 @@ module EacRailsBase0
|
|
|
25
25
|
flash[:error] = "Conteúdo indisponível: #{exception}"
|
|
26
26
|
redirect_to main_app.root_url
|
|
27
27
|
else
|
|
28
|
-
flash[:danger] = 'Por favor faça o login.'
|
|
28
|
+
flash[:danger] = 'Por favor faça o login.' # rubocop:disable Rails/I18nLocaleTexts
|
|
29
29
|
store_location_for(::EacUsersSupport::User, request.fullpath)
|
|
30
30
|
redirect_to eac_users_support.new_user_session_path
|
|
31
31
|
end
|
|
@@ -4,9 +4,9 @@ module EacRailsBase0
|
|
|
4
4
|
class MailerController < ::EacRailsBase0::ApplicationController
|
|
5
5
|
def info
|
|
6
6
|
klass = ::ActionMailer::Base
|
|
7
|
-
@sections = %w[default_params default_url_options smtp_settings].
|
|
7
|
+
@sections = %w[default_params default_url_options smtp_settings].to_h do |section|
|
|
8
8
|
["#{klass}.#{section}", klass.send(section)]
|
|
9
|
-
end
|
|
9
|
+
end
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def send_test
|
|
@@ -3,24 +3,26 @@
|
|
|
3
3
|
unless Rails.env.test?
|
|
4
4
|
Rails.application.configure do
|
|
5
5
|
config.action_mailer.smtp_settings = {
|
|
6
|
-
address: ENV
|
|
7
|
-
port: ENV
|
|
8
|
-
domain: ENV
|
|
9
|
-
user_name: ENV
|
|
10
|
-
password: ENV
|
|
11
|
-
authentication: ENV
|
|
6
|
+
address: ENV.fetch('action_mailer_smtp_address', nil),
|
|
7
|
+
port: ENV.fetch('action_mailer_smtp_port', nil),
|
|
8
|
+
domain: ENV.fetch('action_mailer_smtp_domain', nil),
|
|
9
|
+
user_name: ENV.fetch('action_mailer_smtp_username', nil),
|
|
10
|
+
password: ENV.fetch('action_mailer_smtp_password', nil),
|
|
11
|
+
authentication: ENV.fetch('action_mailer_smtp_authentication', nil),
|
|
12
12
|
enable_starttls_auto:
|
|
13
|
-
EacRubyUtils::Boolean.parse(ENV
|
|
13
|
+
EacRubyUtils::Boolean.parse(ENV.fetch('action_mailer_smtp_enable_starttls_auto', nil))
|
|
14
14
|
}
|
|
15
15
|
%i[host port].each do |option|
|
|
16
|
-
value = ENV
|
|
16
|
+
value = ENV.fetch("action_mailer_default_url_#{option}", nil)
|
|
17
17
|
if value.present?
|
|
18
18
|
config.action_mailer.default_url_options ||= {}
|
|
19
19
|
config.action_mailer.default_url_options[option] = value
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
config.action_mailer.default_options ||= {}
|
|
23
|
-
config.action_mailer.default_options[:from] =
|
|
24
|
-
|
|
23
|
+
config.action_mailer.default_options[:from] =
|
|
24
|
+
ENV.fetch('action_mailer_default_options_from', nil)
|
|
25
|
+
config.action_mailer.default_options[:reply_to] =
|
|
26
|
+
ENV.fetch('action_mailer_default_options_reply_to', nil)
|
|
25
27
|
end
|
|
26
28
|
end
|
|
@@ -7,12 +7,12 @@ require 'fog/aws'
|
|
|
7
7
|
if ENV['carrierwave_provider'] == 'AWS'
|
|
8
8
|
CarrierWave.configure do |config|
|
|
9
9
|
config.fog_credentials = {
|
|
10
|
-
aws_access_key_id: ENV
|
|
11
|
-
aws_secret_access_key: ENV
|
|
10
|
+
aws_access_key_id: ENV.fetch('carrierwave_aws_access_key_id', nil),
|
|
11
|
+
aws_secret_access_key: ENV.fetch('carrierwave_aws_secret_access_key', nil),
|
|
12
12
|
provider: ENV['carrierwave_provider'],
|
|
13
|
-
region: ENV
|
|
13
|
+
region: ENV.fetch('carrierwave_aws_region', nil)
|
|
14
14
|
}
|
|
15
|
-
config.fog_directory = ENV
|
|
15
|
+
config.fog_directory = ENV.fetch('carrierwave_fog_directory', nil)
|
|
16
16
|
config.fog_public = true
|
|
17
17
|
end
|
|
18
18
|
end
|
data/exe/eac_rails_base0_app
CHANGED
|
@@ -15,7 +15,7 @@ module EacRailsBase0App
|
|
|
15
15
|
|
|
16
16
|
module ClassMethods
|
|
17
17
|
def app_temporary_directory
|
|
18
|
-
|
|
18
|
+
Rails.root.join(::Rails.root.to_path.parameterize, 'tmp').to_s
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
def setup_app_root
|
|
@@ -36,7 +36,7 @@ module EacRailsBase0App
|
|
|
36
36
|
|
|
37
37
|
def setup_fs_cache_context
|
|
38
38
|
::EacFs::Contexts.cache.push(
|
|
39
|
-
::EacFs::StorageTree.new(::Rails.root.join('tmp
|
|
39
|
+
::EacFs::StorageTree.new(::Rails.root.join('tmp/cache/eac_fs'))
|
|
40
40
|
)
|
|
41
41
|
end
|
|
42
42
|
|
|
@@ -61,7 +61,7 @@ module EacRailsBase0App
|
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
def setup_deprecated_migrations
|
|
64
|
-
path = ::Rails.root.join('db
|
|
64
|
+
path = ::Rails.root.join('db/migrate_deprecated')
|
|
65
65
|
config.paths['db/migrate'] << path if path.directory?
|
|
66
66
|
end
|
|
67
67
|
|
|
@@ -17,7 +17,7 @@ module EacRailsBase0App
|
|
|
17
17
|
config.assets.quiet = true
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
def setup_cache
|
|
20
|
+
def setup_cache # rubocop:disable Metrics/AbcSize
|
|
21
21
|
if Rails.root.join('tmp/caching-dev.txt').exist?
|
|
22
22
|
config.action_controller.perform_caching = true
|
|
23
23
|
config.cache_store = :memory_store
|
|
@@ -30,7 +30,7 @@ module EacRailsBase0App
|
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
def setup_general
|
|
33
|
+
def setup_general # rubocop:disable Metrics/AbcSize
|
|
34
34
|
config.cache_classes = false
|
|
35
35
|
config.eager_load = false
|
|
36
36
|
config.consider_all_requests_local = true
|
|
@@ -22,7 +22,7 @@ module EacRailsBase0App
|
|
|
22
22
|
config.assets.compile = false
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
def setup_general
|
|
25
|
+
def setup_general # rubocop:disable Metrics/AbcSize
|
|
26
26
|
config.active_record.dump_schema_after_migration = false
|
|
27
27
|
config.cache_classes = true
|
|
28
28
|
config.eager_load = false
|
|
@@ -11,7 +11,7 @@ module EacRailsBase0App
|
|
|
11
11
|
class Application < Rails::Application
|
|
12
12
|
class << self
|
|
13
13
|
def new_stdout_logger
|
|
14
|
-
logger = ActiveSupport::Logger.new(
|
|
14
|
+
logger = ActiveSupport::Logger.new($stdout)
|
|
15
15
|
logger.formatter = config.log_formatter
|
|
16
16
|
::ActiveSupport::TaggedLogging.new(logger)
|
|
17
17
|
end
|
|
@@ -11,8 +11,7 @@ end
|
|
|
11
11
|
|
|
12
12
|
namespace :eac_rails_base0 do
|
|
13
13
|
desc 'Remove all temporary files.'
|
|
14
|
-
task clear: ['db:schema:cache:clear', 'log:clear', 'tmp:clear', 'assets:clobber']
|
|
15
|
-
end
|
|
14
|
+
task clear: ['db:schema:cache:clear', 'log:clear', 'tmp:clear', 'assets:clobber']
|
|
16
15
|
|
|
17
16
|
if rspec_loaded
|
|
18
17
|
RSpec::Core::RakeTask.new(:rspec) do |t|
|
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.68.
|
|
4
|
+
version: 0.68.2
|
|
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: 2024-01-
|
|
11
|
+
date: 2024-01-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aranha-parsers
|