eac_rails_base0 0.58.0 → 0.60.1

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: f9e8af6cce472c953d6996e62b88a11b60e128634574ba80b18f8f3385d85c96
4
- data.tar.gz: 872bc9bcf18bbb4a64a7a8688ed352b2cc2a5ead7781af09d20a171c38d241c9
3
+ metadata.gz: 9d30f2e4076dd281109a121a6e1d7be7bac13b3eb3c8127012541d84f2faac2a
4
+ data.tar.gz: 8562a0c2d44bc93e5d3bf68e0bbf88669ff3d4a0adea0fbcc1ffb6e226d28ff6
5
5
  SHA512:
6
- metadata.gz: 7482260d62ed769c60db4fb4c36a1fa5864c3558136725f995b335341e60a959086c277e18b9fa67f8a964b86268a3fde6e55b5af0d1824e0834961a83d73ebf
7
- data.tar.gz: 92e7b6afaf6a6931c6b07f86cf4d7636608a2fdb559466857bf01a2df946b35ec4224b460145ddce98ccc250b5cdd1effe100afc53521f9d456f1c719f14d20f
6
+ metadata.gz: 5ce723ae13ffe6b6bcf304f525d47f4c005b740def67058b752469c294c7b920ff9fcb0ecab41da60bef35695cad2a2743cf20cb424ce33c336433d9424f426e
7
+ data.tar.gz: 2d8b5ef96febb2bdb32c4454db4b6148c93277b05389250ae9a99f1e141eee39a211901b1b1cf29ea3d48cd270e81072743bf0ab718aee82209073db0c782b99
@@ -0,0 +1,13 @@
1
+ dl.styles_legend {
2
+ dt {
3
+ display: inline-block;
4
+ border: thin solid black;
5
+ width: 1.25em;
6
+ height: 1.25em;
7
+ }
8
+
9
+ dd {
10
+ display: inline-block;
11
+ margin-right: 3em;
12
+ }
13
+ }
@@ -8,6 +8,7 @@
8
8
  @import 'jquery-ui';
9
9
  @import 'eac_rails_base0/default_configuration';
10
10
  @import 'eac_rails_base0/components';
11
+ @import 'eac_rails_base0/styles_legend';
11
12
 
12
13
  .alert-notice {
13
14
  @extend .alert-info;
@@ -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.58.0'
4
+ VERSION = '0.60.1'
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.58.0
4
+ version: 0.60.1
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: 2021-12-06 00:00:00.000000000 Z
11
+ date: 2022-04-03 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
@@ -194,20 +194,14 @@ dependencies:
194
194
  requirements:
195
195
  - - "~>"
196
196
  - !ruby/object:Gem::Version
197
- version: '0.9'
198
- - - ">="
199
- - !ruby/object:Gem::Version
200
- version: 0.9.6
197
+ version: '0.10'
201
198
  type: :runtime
202
199
  prerelease: false
203
200
  version_requirements: !ruby/object:Gem::Requirement
204
201
  requirements:
205
202
  - - "~>"
206
203
  - !ruby/object:Gem::Version
207
- version: '0.9'
208
- - - ">="
209
- - !ruby/object:Gem::Version
210
- version: 0.9.6
204
+ version: '0.10'
211
205
  - !ruby/object:Gem::Dependency
212
206
  name: fog-aws
213
207
  requirement: !ruby/object:Gem::Requirement
@@ -522,6 +516,7 @@ files:
522
516
  - app/assets/stylesheets/eac_rails_base0/bootstrap_import.scss
523
517
  - app/assets/stylesheets/eac_rails_base0/components.scss
524
518
  - app/assets/stylesheets/eac_rails_base0/default_configuration.scss
519
+ - app/assets/stylesheets/eac_rails_base0/styles_legend.scss
525
520
  - app/controllers/eac_rails_base0/application_controller.rb
526
521
  - app/controllers/eac_rails_base0/mailer_controller.rb
527
522
  - app/helpers/eac_rails_base0/app_version_helper.rb
@@ -597,9 +592,6 @@ files:
597
592
  - lib/eac_rails_base0/app_generator/templates/config/boot.rb
598
593
  - lib/eac_rails_base0/app_generator/templates/config/database.yml
599
594
  - lib/eac_rails_base0/app_generator/templates/config/environment.rb
600
- - lib/eac_rails_base0/app_generator/templates/config/environments/development.rb
601
- - lib/eac_rails_base0/app_generator/templates/config/environments/production.rb
602
- - lib/eac_rails_base0/app_generator/templates/config/environments/test.rb
603
595
  - lib/eac_rails_base0/app_generator/templates/config/routes.rb
604
596
  - lib/eac_rails_base0/app_generator/templates/gitignore
605
597
  - 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