eac_rails_base0 0.59.0 → 0.60.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ceb43f7e0891d5a8f8cbd8399f5e998a101ef1d9a46049e9eda09fab6ca5fe81
4
- data.tar.gz: d1548a3a8c4776d41c384f976f92137672cb8635f5f096b72a53337a31c974bc
3
+ metadata.gz: 3b45bfd2f696f75e79a6deffa79c3be49cb5733e3031487ec240cd2070642b48
4
+ data.tar.gz: 27a584288c1544c44d982bcaccac9db62687bf9b2bfd14656a6e765533509094
5
5
  SHA512:
6
- metadata.gz: 7506e3be9ff611dda787c7b20951ac74f7fd44e5f464d4ed396a2eb4da81eb37ae204ab4e744a0fd36839ac0e580b897b5160f5be5e286f6c6c6d6d988b33087
7
- data.tar.gz: c63bfadae3a4a61c8861853c1e44c71502c989c80f6c38f63454ff2487bd3c93f93d329a4c5ebab3bef14cf37863e28664cab2045d889ea521473e02a500f533
6
+ metadata.gz: bb6d867d84f5648cf8cae253478a5574b7bd733ab59a5f68be1fa17bbdb0b4b0a5edbbd36fccc63291ef26c1e865c3e900460d4edf4d88bbcd0451f6a4767933
7
+ data.tar.gz: 681f13fdaff3ef65838ece74a4e4203dbac6ed9203d3be37c8381b177606a7f143a60057b15780b1c74e1acc1be24250de842ffd5dc261e970e459e30ed14761
@@ -1,3 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'eac_rails_utils/patches'
3
4
  require 'eac_rails_base0/patches/eac_rails_utils_links_helper_patch'
@@ -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
- template 'test/test_helper.rb'
41
+ # Do nothing
43
42
  end
44
43
 
45
44
  def tmp
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRailsBase0
4
- VERSION = '0.59.0'
4
+ VERSION = '0.60.2'
5
5
  end
@@ -1,18 +1,26 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'rake/testtask'
4
- require 'rspec/core/rake_task'
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
- ::RSpec::Core::RakeTask.new(:rspec) do |t|
12
- t.rspec_opts =
13
- "--pattern '{spec,#{::EacRailsBase0::Paths.engines_subpath}/*/spec}/**/*_spec.rb'"
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', 'eac_rails_base0:rspec']
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.59.0
4
+ version: 0.60.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: 2022-01-02 00:00:00.000000000 Z
11
+ date: 2022-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -166,14 +166,14 @@ dependencies:
166
166
  requirements:
167
167
  - - "~>"
168
168
  - !ruby/object:Gem::Version
169
- version: '0.10'
169
+ version: '0.15'
170
170
  type: :runtime
171
171
  prerelease: false
172
172
  version_requirements: !ruby/object:Gem::Requirement
173
173
  requirements:
174
174
  - - "~>"
175
175
  - !ruby/object:Gem::Version
176
- version: '0.10'
176
+ version: '0.15'
177
177
  - !ruby/object:Gem::Dependency
178
178
  name: eac_ruby_utils
179
179
  requirement: !ruby/object:Gem::Requirement
@@ -410,28 +410,20 @@ dependencies:
410
410
  requirements:
411
411
  - - "~>"
412
412
  - !ruby/object:Gem::Version
413
- version: '0.4'
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: '0'
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: '0'
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
@@ -592,9 +570,6 @@ files:
592
570
  - lib/eac_rails_base0/app_generator/templates/config/boot.rb
593
571
  - lib/eac_rails_base0/app_generator/templates/config/database.yml
594
572
  - 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
573
  - lib/eac_rails_base0/app_generator/templates/config/routes.rb
599
574
  - lib/eac_rails_base0/app_generator/templates/gitignore
600
575
  - lib/eac_rails_base0/engine.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