From aba59a473c3cb949483a6b7c2f054c8ce9b56e99 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 25 Feb 2020 21:23:39 -0300 Subject: [PATCH] deshabilitar cosas que no usamos --- Gemfile | 2 ++ Gemfile.lock | 18 ++++++++++++++++++ config/application.rb | 5 ----- config/environments/development.rb | 6 +++--- config/environments/production.rb | 4 ++-- config/environments/test.rb | 6 +++--- 6 files changed, 28 insertions(+), 13 deletions(-) diff --git a/Gemfile b/Gemfile index 084978c..5122869 100644 --- a/Gemfile +++ b/Gemfile @@ -45,10 +45,12 @@ group :development do gem 'capistrano-bundler', require: false gem 'capistrano-rails', require: false gem 'capistrano-rbenv', require: false + gem 'derailed_benchmarks' gem 'ed25519' gem 'rubocop-rails' gem 'spring' gem 'spring-watcher-listen', '~> 2.0.0' + gem 'stackprof' gem 'yard' end diff --git a/Gemfile.lock b/Gemfile.lock index c7ff27b..b91e0ef 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -48,6 +48,7 @@ GEM ast (2.4.0) bcrypt (3.1.13) bcrypt_pbkdf (1.0.1) + benchmark-ips (2.7.2) bootsnap (1.4.5) msgpack (~> 1.0) builder (3.2.4) @@ -68,6 +69,15 @@ GEM concurrent-ruby (1.1.6) crass (1.0.6) database_cleaner (1.8.3) + derailed_benchmarks (1.6.0) + benchmark-ips (~> 2) + get_process_mem (~> 0) + heapy (~> 0) + memory_profiler (~> 0) + rack (>= 1) + rake (> 10, < 14) + ruby-statistics (>= 2.1) + thor (>= 0.19, < 2) ed25519 (1.2.4) erubi (1.9.0) factory_bot (5.1.1) @@ -76,8 +86,11 @@ GEM factory_bot (~> 5.1.0) railties (>= 4.2.0) ffi (1.12.2) + get_process_mem (0.2.5) + ffi (~> 1.0) globalid (0.4.2) activesupport (>= 4.2.0) + heapy (0.1.4) hkdf (0.3.0) i18n (1.8.2) concurrent-ruby (~> 1.0) @@ -96,6 +109,7 @@ GEM mini_mime (>= 0.1.1) marcel (0.3.3) mimemagic (~> 0.3.2) + memory_profiler (0.9.14) method_source (0.9.2) mimemagic (0.3.4) mini_mime (1.0.2) @@ -163,6 +177,7 @@ GEM rack (>= 1.1) rubocop (>= 0.72.0) ruby-progressbar (1.10.1) + ruby-statistics (2.1.1) ruby_dep (1.5.0) spring (2.1.0) spring-watcher-listen (2.0.1) @@ -179,6 +194,7 @@ GEM sshkit (1.20.0) net-scp (>= 1.1.2) net-ssh (>= 2.8.0) + stackprof (0.2.15) thor (1.0.1) thread_safe (0.3.6) tzinfo (1.2.6) @@ -207,6 +223,7 @@ DEPENDENCIES capistrano-rails capistrano-rbenv database_cleaner + derailed_benchmarks ed25519 factory_bot_rails jbuilder (~> 2.5) @@ -219,6 +236,7 @@ DEPENDENCIES spring spring-watcher-listen (~> 2.0.0) sqlite3 + stackprof validate_url webpush yard diff --git a/config/application.rb b/config/application.rb index b6e6718..6e33679 100644 --- a/config/application.rb +++ b/config/application.rb @@ -7,12 +7,7 @@ require 'rails' require 'active_model/railtie' require 'active_job/railtie' require 'active_record/railtie' -require 'active_storage/engine' require 'action_controller/railtie' -require 'action_mailer/railtie' -require 'action_view/railtie' -require 'action_cable/engine' -# require "sprockets/railtie" require 'rails/test_unit/railtie' # Require the gems listed in Gemfile, including any gems diff --git a/config/environments/development.rb b/config/environments/development.rb index 57350f2..8d43164 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -33,12 +33,12 @@ Rails.application.configure do # Store uploaded files on the local file system (see # config/storage.yml for options) - config.active_storage.service = :local + # config.active_storage.service = :local # Don't care if the mailer can't send. - config.action_mailer.raise_delivery_errors = false + # config.action_mailer.raise_delivery_errors = false - config.action_mailer.perform_caching = false + # config.action_mailer.perform_caching = false # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log diff --git a/config/environments/production.rb b/config/environments/production.rb index bd428d2..970f384 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -37,7 +37,7 @@ Rails.application.configure do # Store uploaded files on the local file system (see # config/storage.yml for options) - config.active_storage.service = :local + # config.active_storage.service = :local # Mount Action Cable outside main process or domain # config.action_cable.mount_path = nil @@ -64,7 +64,7 @@ Rails.application.configure do # config.active_job.queue_adapter = :resque # config.active_job.queue_name_prefix = "miniloom-api_#{Rails.env}" - config.action_mailer.perform_caching = false + # config.action_mailer.perform_caching = false # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate diff --git a/config/environments/test.rb b/config/environments/test.rb index 5f9329d..157d21d 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -34,14 +34,14 @@ Rails.application.configure do # Store uploaded files on the local file system in a temporary # directory - config.active_storage.service = :test + # config.active_storage.service = :test - config.action_mailer.perform_caching = false + # config.action_mailer.perform_caching = false # Tell Action Mailer not to deliver emails to the real world. # The :test delivery method accumulates sent emails in the # ActionMailer::Base.deliveries array. - config.action_mailer.delivery_method = :test + # config.action_mailer.delivery_method = :test # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr