eac_rails_base0 0.60.0 → 0.60.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -0
- data/lib/eac_rails_base0/app_base/application/all.rb +10 -2
- data/lib/eac_rails_base0/app_generator/builder.rb +1 -2
- data/lib/eac_rails_base0/version.rb +1 -1
- data/lib/enumerator.rb +2 -0
- data/lib/tasks/eac_rails_base0.rake +14 -6
- metadata +17 -35
- data/lib/eac_rails_base0/app_generator/templates/config/environments/development.rb +0 -45
- data/lib/eac_rails_base0/app_generator/templates/config/environments/production.rb +0 -82
- data/lib/eac_rails_base0/app_generator/templates/config/environments/test.rb +0 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d95befce4c72086e6f9c9095afdb6e33db5ae38b09859b6a6735d9f5417b4ffc
|
4
|
+
data.tar.gz: 6da9ae45db9de520c112a674686ad8e0dc9b06f6666e1b11a17a21803c129e09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e244692adf74052f78e39141bc92fa6335c7ef4283328e7afbedd8ddedbb1968f205df45117140f1554fbe83c49546ff8dd6634e948b03d4e8e52fb026189fe
|
7
|
+
data.tar.gz: '09ad205f6b1ae6a935dfffd40c3dd4ebbfdef7b7830af50a53a6dcb8e1e923ee877e76dd1633d32111e857fa56838ed52cd4f0c3e1a2bba756870e41f2944ed0'
|
data/Gemfile
CHANGED
@@ -6,8 +6,8 @@ module EacRailsBase0App
|
|
6
6
|
class Application < Rails::Application
|
7
7
|
module All
|
8
8
|
common_concern do
|
9
|
-
setup('app_root', 'active_record', 'assets_cache', 'dependencies', 'defaults',
|
10
|
-
'localization', 'load_paths', 'loggers')
|
9
|
+
setup('app_root', 'engines', 'active_record', 'assets_cache', 'dependencies', 'defaults',
|
10
|
+
'localization', 'load_paths', 'loggers', 'unknown_asset_fallback')
|
11
11
|
end
|
12
12
|
|
13
13
|
module ClassMethods
|
@@ -35,6 +35,14 @@ module EacRailsBase0App
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
+
def setup_engines
|
39
|
+
require 'eac_rails_base0/engine'
|
40
|
+
end
|
41
|
+
|
42
|
+
def setup_unknown_asset_fallback
|
43
|
+
config.assets.unknown_asset_fallback = false
|
44
|
+
end
|
45
|
+
|
38
46
|
def setup_defaults
|
39
47
|
config.load_defaults 5.1
|
40
48
|
end
|
@@ -17,7 +17,6 @@ module EacRailsBase0
|
|
17
17
|
template 'application.rb'
|
18
18
|
template 'environment.rb'
|
19
19
|
template 'secrets.yml'
|
20
|
-
directory 'environments'
|
21
20
|
end
|
22
21
|
end
|
23
22
|
|
@@ -39,7 +38,7 @@ module EacRailsBase0
|
|
39
38
|
end
|
40
39
|
|
41
40
|
def test
|
42
|
-
|
41
|
+
# Do nothing
|
43
42
|
end
|
44
43
|
|
45
44
|
def tmp
|
data/lib/enumerator.rb
ADDED
@@ -1,18 +1,26 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'rake/testtask'
|
4
|
-
|
4
|
+
|
5
|
+
rspec_loaded = true
|
6
|
+
begin
|
7
|
+
require 'rspec/core/rake_task'
|
8
|
+
rescue LoadError
|
9
|
+
rspec_loaded = false
|
10
|
+
end
|
5
11
|
|
6
12
|
namespace :eac_rails_base0 do
|
7
13
|
desc 'Remove all temporary files.'
|
8
14
|
task clear: ['db:schema:cache:clear', 'log:clear', 'tmp:clear', 'assets:clobber'] do
|
9
15
|
end
|
10
16
|
|
11
|
-
|
12
|
-
|
13
|
-
|
17
|
+
if rspec_loaded
|
18
|
+
::RSpec::Core::RakeTask.new(:rspec) do |t|
|
19
|
+
t.rspec_opts =
|
20
|
+
"--pattern '{spec,#{::EacRailsBase0::Paths.engines_subpath}/*/spec}/**/*_spec.rb'"
|
21
|
+
end
|
22
|
+
Rake::Task['eac_rails_base0:rspec'].enhance ['db:test:prepare']
|
14
23
|
end
|
15
|
-
Rake::Task['eac_rails_base0:rspec'].enhance ['db:test:prepare']
|
16
24
|
|
17
25
|
namespace :minitest do
|
18
26
|
{ core: '', engines: "#{::EacRailsBase0::Paths.engines_subpath}/*/" }
|
@@ -30,7 +38,7 @@ namespace :eac_rails_base0 do
|
|
30
38
|
task minitest: %w[core engines].map { |task| "eac_rails_base0:minitest:#{task}" }
|
31
39
|
|
32
40
|
desc 'Minitest and RSpec for application'
|
33
|
-
task test: ['eac_rails_base0:minitest'
|
41
|
+
task test: ['eac_rails_base0:minitest'] + (rspec_loaded ? ['eac_rails_base0:rspec'] : [])
|
34
42
|
end
|
35
43
|
|
36
44
|
Rake::Task['default'].clear
|
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.60.
|
4
|
+
version: 0.60.3
|
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: 2022-
|
11
|
+
date: 2022-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|
@@ -340,14 +340,14 @@ dependencies:
|
|
340
340
|
requirements:
|
341
341
|
- - "~>"
|
342
342
|
- !ruby/object:Gem::Version
|
343
|
-
version: 5.2.
|
343
|
+
version: 5.2.8
|
344
344
|
type: :runtime
|
345
345
|
prerelease: false
|
346
346
|
version_requirements: !ruby/object:Gem::Requirement
|
347
347
|
requirements:
|
348
348
|
- - "~>"
|
349
349
|
- !ruby/object:Gem::Version
|
350
|
-
version: 5.2.
|
350
|
+
version: 5.2.8
|
351
351
|
- !ruby/object:Gem::Dependency
|
352
352
|
name: rails-i18n
|
353
353
|
requirement: !ruby/object:Gem::Requirement
|
@@ -410,28 +410,20 @@ dependencies:
|
|
410
410
|
requirements:
|
411
411
|
- - "~>"
|
412
412
|
- !ruby/object:Gem::Version
|
413
|
-
version: '0.
|
414
|
-
type: :runtime
|
415
|
-
prerelease: false
|
416
|
-
version_requirements: !ruby/object:Gem::Requirement
|
417
|
-
requirements:
|
418
|
-
- - "~>"
|
419
|
-
- !ruby/object:Gem::Version
|
420
|
-
version: '0.4'
|
421
|
-
- !ruby/object:Gem::Dependency
|
422
|
-
name: therubyracer
|
423
|
-
requirement: !ruby/object:Gem::Requirement
|
424
|
-
requirements:
|
413
|
+
version: '0.6'
|
425
414
|
- - ">="
|
426
415
|
- !ruby/object:Gem::Version
|
427
|
-
version:
|
416
|
+
version: 0.6.10
|
428
417
|
type: :runtime
|
429
418
|
prerelease: false
|
430
419
|
version_requirements: !ruby/object:Gem::Requirement
|
431
420
|
requirements:
|
421
|
+
- - "~>"
|
422
|
+
- !ruby/object:Gem::Version
|
423
|
+
version: '0.6'
|
432
424
|
- - ">="
|
433
425
|
- !ruby/object:Gem::Version
|
434
|
-
version:
|
426
|
+
version: 0.6.10
|
435
427
|
- !ruby/object:Gem::Dependency
|
436
428
|
name: turbolinks
|
437
429
|
requirement: !ruby/object:Gem::Requirement
|
@@ -474,20 +466,6 @@ dependencies:
|
|
474
466
|
- - "~>"
|
475
467
|
- !ruby/object:Gem::Version
|
476
468
|
version: '0.15'
|
477
|
-
- !ruby/object:Gem::Dependency
|
478
|
-
name: rails_12factor
|
479
|
-
requirement: !ruby/object:Gem::Requirement
|
480
|
-
requirements:
|
481
|
-
- - ">="
|
482
|
-
- !ruby/object:Gem::Version
|
483
|
-
version: '0'
|
484
|
-
type: :runtime
|
485
|
-
prerelease: false
|
486
|
-
version_requirements: !ruby/object:Gem::Requirement
|
487
|
-
requirements:
|
488
|
-
- - ">="
|
489
|
-
- !ruby/object:Gem::Version
|
490
|
-
version: '0'
|
491
469
|
- !ruby/object:Gem::Dependency
|
492
470
|
name: eac_rails_gem_support
|
493
471
|
requirement: !ruby/object:Gem::Requirement
|
@@ -495,6 +473,9 @@ dependencies:
|
|
495
473
|
- - "~>"
|
496
474
|
- !ruby/object:Gem::Version
|
497
475
|
version: '0.4'
|
476
|
+
- - ">="
|
477
|
+
- !ruby/object:Gem::Version
|
478
|
+
version: 0.4.1
|
498
479
|
type: :development
|
499
480
|
prerelease: false
|
500
481
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -502,6 +483,9 @@ dependencies:
|
|
502
483
|
- - "~>"
|
503
484
|
- !ruby/object:Gem::Version
|
504
485
|
version: '0.4'
|
486
|
+
- - ">="
|
487
|
+
- !ruby/object:Gem::Version
|
488
|
+
version: 0.4.1
|
505
489
|
description:
|
506
490
|
email:
|
507
491
|
executables:
|
@@ -592,9 +576,6 @@ files:
|
|
592
576
|
- lib/eac_rails_base0/app_generator/templates/config/boot.rb
|
593
577
|
- lib/eac_rails_base0/app_generator/templates/config/database.yml
|
594
578
|
- lib/eac_rails_base0/app_generator/templates/config/environment.rb
|
595
|
-
- lib/eac_rails_base0/app_generator/templates/config/environments/development.rb
|
596
|
-
- lib/eac_rails_base0/app_generator/templates/config/environments/production.rb
|
597
|
-
- lib/eac_rails_base0/app_generator/templates/config/environments/test.rb
|
598
579
|
- lib/eac_rails_base0/app_generator/templates/config/routes.rb
|
599
580
|
- lib/eac_rails_base0/app_generator/templates/gitignore
|
600
581
|
- lib/eac_rails_base0/engine.rb
|
@@ -608,6 +589,7 @@ files:
|
|
608
589
|
- lib/eac_rails_base0/rspec/shared_contexts/when_user_is_non_admin.rb
|
609
590
|
- lib/eac_rails_base0/version.rb
|
610
591
|
- lib/eac_rails_base0/x_engine.rb
|
592
|
+
- lib/enumerator.rb
|
611
593
|
- lib/fog.rb
|
612
594
|
- lib/generators/eac_rails_base0/abilities/abilities_generator.rb
|
613
595
|
- lib/generators/eac_rails_base0/abilities/templates/ability.rb
|
@@ -1,45 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
Rails.application.configure do
|
4
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
5
|
-
|
6
|
-
# In the development environment your application's code is reloaded on
|
7
|
-
# every request. This slows down response time but is perfect for development
|
8
|
-
# since you don't have to restart the web server when you make code changes.
|
9
|
-
config.cache_classes = false
|
10
|
-
|
11
|
-
# Do not eager load code on boot.
|
12
|
-
config.eager_load = false
|
13
|
-
|
14
|
-
# Show full error reports and disable caching.
|
15
|
-
config.consider_all_requests_local = true
|
16
|
-
config.action_controller.perform_caching = false
|
17
|
-
|
18
|
-
# Don't care if the mailer can't send.
|
19
|
-
config.action_mailer.raise_delivery_errors = false
|
20
|
-
|
21
|
-
# Print deprecation notices to the Rails logger.
|
22
|
-
config.active_support.deprecation = :log
|
23
|
-
|
24
|
-
# Raise an error on page load if there are pending migrations.
|
25
|
-
config.active_record.migration_error = :page_load
|
26
|
-
|
27
|
-
# Debug mode disables concatenation and preprocessing of assets.
|
28
|
-
# This option may cause significant delays in view rendering with a large
|
29
|
-
# number of complex assets.
|
30
|
-
config.assets.debug = true
|
31
|
-
|
32
|
-
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
33
|
-
# yet still be able to expire them through the digest params.
|
34
|
-
config.assets.digest = true
|
35
|
-
|
36
|
-
# Adds additional error checking when serving assets at runtime.
|
37
|
-
# Checks for improperly declared sprockets dependencies.
|
38
|
-
# Raises helpful error messages.
|
39
|
-
config.assets.raise_runtime_errors = true
|
40
|
-
|
41
|
-
# Raises error for missing translations
|
42
|
-
# config.action_view.raise_on_missing_translations = true
|
43
|
-
|
44
|
-
config.logger = Logger.new(STDOUT)
|
45
|
-
end
|
@@ -1,82 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
Rails.application.configure do
|
4
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
5
|
-
|
6
|
-
# Code is not reloaded between requests.
|
7
|
-
config.cache_classes = true
|
8
|
-
|
9
|
-
# Eager load code on boot. This eager loads most of Rails and
|
10
|
-
# your application in memory, allowing both threaded web servers
|
11
|
-
# and those relying on copy on write to perform better.
|
12
|
-
# Rake tasks automatically ignore this option for performance.
|
13
|
-
config.eager_load = true
|
14
|
-
|
15
|
-
# Full error reports are disabled and caching is turned on.
|
16
|
-
config.consider_all_requests_local = false
|
17
|
-
config.action_controller.perform_caching = true
|
18
|
-
|
19
|
-
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
20
|
-
# Add `rack-cache` to your Gemfile before enabling this.
|
21
|
-
# For large-scale production use, consider using a caching reverse proxy like
|
22
|
-
# NGINX, varnish or squid.
|
23
|
-
# config.action_dispatch.rack_cache = true
|
24
|
-
|
25
|
-
# Disable serving static files from the `/public` folder by default since
|
26
|
-
# Apache or NGINX already handles this.
|
27
|
-
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
28
|
-
|
29
|
-
# Compress JavaScripts and CSS.
|
30
|
-
config.assets.js_compressor = :uglifier
|
31
|
-
# config.assets.css_compressor = :sass
|
32
|
-
|
33
|
-
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
34
|
-
config.assets.compile = false
|
35
|
-
|
36
|
-
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
37
|
-
# yet still be able to expire them through the digest params.
|
38
|
-
config.assets.digest = true
|
39
|
-
|
40
|
-
# `config.assets.precompile` and `config.assets.version` have moved to
|
41
|
-
# config/initializers/assets.rb
|
42
|
-
|
43
|
-
# Specifies the header that your server uses for sending files.
|
44
|
-
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
45
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
46
|
-
|
47
|
-
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
48
|
-
# config.force_ssl = true
|
49
|
-
|
50
|
-
# Use the lowest log level to ensure availability of diagnostic information
|
51
|
-
# when problems arise.
|
52
|
-
config.log_level = :debug
|
53
|
-
|
54
|
-
# Prepend all log lines with the following tags.
|
55
|
-
# config.log_tags = [ :subdomain, :uuid ]
|
56
|
-
|
57
|
-
# Use a different logger for distributed setups.
|
58
|
-
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
59
|
-
|
60
|
-
# Use a different cache store in production.
|
61
|
-
# config.cache_store = :mem_cache_store
|
62
|
-
|
63
|
-
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
64
|
-
# config.action_controller.asset_host = 'http://assets.example.com'
|
65
|
-
|
66
|
-
# Ignore bad email addresses and do not raise email delivery errors.
|
67
|
-
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
68
|
-
# config.action_mailer.raise_delivery_errors = false
|
69
|
-
|
70
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
71
|
-
# the I18n.default_locale when a translation cannot be found).
|
72
|
-
config.i18n.fallbacks = true
|
73
|
-
|
74
|
-
# Send deprecation notices to registered listeners.
|
75
|
-
config.active_support.deprecation = :notify
|
76
|
-
|
77
|
-
# Use default logging formatter so that PID and timestamp are not suppressed.
|
78
|
-
config.log_formatter = ::Logger::Formatter.new
|
79
|
-
|
80
|
-
# Do not dump schema after migrations.
|
81
|
-
config.active_record.dump_schema_after_migration = false
|
82
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
Rails.application.configure do
|
4
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
5
|
-
|
6
|
-
# The test environment is used exclusively to run your application's
|
7
|
-
# test suite. You never need to work with it otherwise. Remember that
|
8
|
-
# your test database is "scratch space" for the test suite and is wiped
|
9
|
-
# and recreated between test runs. Don't rely on the data there!
|
10
|
-
config.cache_classes = true
|
11
|
-
|
12
|
-
# Do not eager load code on boot. This avoids loading your whole application
|
13
|
-
# just for the purpose of running a single test. If you are using a tool that
|
14
|
-
# preloads Rails for running tests, you may have to set it to true.
|
15
|
-
config.eager_load = false
|
16
|
-
|
17
|
-
# Configure static file server for tests with Cache-Control for performance.
|
18
|
-
config.serve_static_files = true
|
19
|
-
config.static_cache_control = 'public, max-age=3600'
|
20
|
-
|
21
|
-
# Show full error reports and disable caching.
|
22
|
-
config.consider_all_requests_local = true
|
23
|
-
config.action_controller.perform_caching = false
|
24
|
-
|
25
|
-
# Raise exceptions instead of rendering exception templates.
|
26
|
-
config.action_dispatch.show_exceptions = false
|
27
|
-
|
28
|
-
# Disable request forgery protection in test environment.
|
29
|
-
config.action_controller.allow_forgery_protection = false
|
30
|
-
|
31
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
32
|
-
# The :test delivery method accumulates sent emails in the
|
33
|
-
# ActionMailer::Base.deliveries array.
|
34
|
-
config.action_mailer.delivery_method = :test
|
35
|
-
|
36
|
-
# Randomize the order test cases are executed.
|
37
|
-
config.active_support.test_order = :random
|
38
|
-
|
39
|
-
# Print deprecation notices to the stderr.
|
40
|
-
config.active_support.deprecation = :stderr
|
41
|
-
|
42
|
-
# Raises error for missing translations
|
43
|
-
# config.action_view.raise_on_missing_translations = true
|
44
|
-
end
|