From cac93cf640969a3746ed995a496b4d8a6a604104 Mon Sep 17 00:00:00 2001 From: Yann Hourdel Date: Wed, 11 Jul 2018 18:55:47 +0200 Subject: [PATCH 1/2] Delete useless files --- spec/dummy/app/controllers/concerns/.keep | 0 spec/dummy/app/helpers/application_helper.rb | 2 - spec/dummy/config/locales/en.yml | 33 ----- spec/dummy/log/.keep | 0 spec/dummy/log/test.log | 141 ------------------- spec/dummy/tmp/.keep | 0 spec/dummy/tmp/storage/.keep | 0 7 files changed, 176 deletions(-) delete mode 100644 spec/dummy/app/controllers/concerns/.keep delete mode 100644 spec/dummy/app/helpers/application_helper.rb delete mode 100644 spec/dummy/config/locales/en.yml delete mode 100644 spec/dummy/log/.keep delete mode 100644 spec/dummy/log/test.log delete mode 100644 spec/dummy/tmp/.keep delete mode 100644 spec/dummy/tmp/storage/.keep diff --git a/spec/dummy/app/controllers/concerns/.keep b/spec/dummy/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy/app/helpers/application_helper.rb b/spec/dummy/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/spec/dummy/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/spec/dummy/config/locales/en.yml b/spec/dummy/config/locales/en.yml deleted file mode 100644 index decc5a8..0000000 --- a/spec/dummy/config/locales/en.yml +++ /dev/null @@ -1,33 +0,0 @@ -# Files in the config/locales directory are used for internationalization -# and are automatically loaded by Rails. If you want to use locales other -# than English, add the necessary files in this directory. -# -# To use the locales, use `I18n.t`: -# -# I18n.t 'hello' -# -# In views, this is aliased to just `t`: -# -# <%= t('hello') %> -# -# To use a different locale, set it with `I18n.locale`: -# -# I18n.locale = :es -# -# This would use the information in config/locales/es.yml. -# -# The following keys must be escaped otherwise they will not be retrieved by -# the default I18n backend: -# -# true, false, on, off, yes, no -# -# Instead, surround them with single quotes. -# -# en: -# 'true': 'foo' -# -# To learn more, please read the Rails Internationalization guide -# available at http://guides.rubyonrails.org/i18n.html. - -en: - hello: "Hello world" diff --git a/spec/dummy/log/.keep b/spec/dummy/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy/log/test.log b/spec/dummy/log/test.log deleted file mode 100644 index f378def..0000000 --- a/spec/dummy/log/test.log +++ /dev/null @@ -1,141 +0,0 @@ -Started GET "/dummy" for 127.0.0.1 at 2018-07-11 16:49:12 +0200 -Processing by DummyController#index as HTML -Completed 500 Internal Server Error in 1ms -Started GET "/dummy" for 127.0.0.1 at 2018-07-11 16:50:59 +0200 -Processing by DummyController#index as HTML -Completed 500 Internal Server Error in 1ms -Started GET "/dummy" for 127.0.0.1 at 2018-07-11 17:16:30 +0200 -Processing by DummyController#index as HTML -Completed 500 Internal Server Error in 3ms -Started GET "/dummy" for 127.0.0.1 at 2018-07-11 17:50:00 +0200 -Processing by DummyController#index as HTML -Completed 500 Internal Server Error in 5ms -Started GET "/dummy" for 127.0.0.1 at 2018-07-11 17:50:59 +0200 -Processing by DummyController#index as HTML -Completed 500 Internal Server Error in 1ms -Started GET "/dummy?%7B%22data%22%3A%7B%22id%22%3A4%7D%7D" for 127.0.0.1 at 2018-07-11 17:52:16 +0200 -Processing by DummyController#index as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 1ms -Started GET "/dummy?%7B%22data%22%3A%7B%22id%22%3A4%7D%7D" for 127.0.0.1 at 2018-07-11 17:52:52 +0200 -Processing by DummyController#index as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 0ms -Started GET "/dummy?%7B%22data%22%3A%7B%22id%22%3A4%7D%7D" for 127.0.0.1 at 2018-07-11 17:53:24 +0200 -Processing by DummyController#index as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 6ms -Started GET "/dummy?%7B%22data%22%3A%7B%22id%22%3A4%7D%7D" for 127.0.0.1 at 2018-07-11 17:53:36 +0200 -Processing by DummyController#index as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 6ms -Started GET "/dummy?%7B%22data%22%3A%7B%22id%22%3A4%7D%7D" for 127.0.0.1 at 2018-07-11 17:54:30 +0200 -Processing by DummyController#index as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 6ms -Started GET "/dummy?%7B%22data%22%3A%7B%22id%22%3A4%7D%7D" for 127.0.0.1 at 2018-07-11 17:55:14 +0200 -Processing by DummyController#index as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 0ms -Started GET "/dummy?%7B%22data%22%3A%7B%22id%22%3A4%7D%7D" for 127.0.0.1 at 2018-07-11 17:55:28 +0200 -Processing by DummyController#index as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 0ms -Started GET "/dummy?%7B%22data%22%3A%7B%22id%22%3A4%7D%7D" for 127.0.0.1 at 2018-07-11 17:55:36 +0200 -Processing by DummyController#index as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 0ms -Started GET "/dummy?%7B%22data%22%3A%7B%22id%22%3A4%7D%7D" for 127.0.0.1 at 2018-07-11 17:55:44 +0200 -Processing by DummyController#index as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 0ms -Started POST "/dummy" for 127.0.0.1 at 2018-07-11 17:56:28 +0200 -Processing by DummyController#create as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 0ms -Started POST "/dummy" for 127.0.0.1 at 2018-07-11 17:59:24 +0200 -Processing by DummyController#create as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 0ms -Started POST "/dummy" for 127.0.0.1 at 2018-07-11 18:00:03 +0200 -Processing by DummyController#create as HTML - Parameters: {"{ \"widget\": { \"name\":\"My Widget\" } }"=>nil} -Completed 500 Internal Server Error in 0ms -Started POST "/dummys" for 127.0.0.1 at 2018-07-11 18:00:10 +0200 -Started POST "/dummy" for 127.0.0.1 at 2018-07-11 18:00:18 +0200 -Processing by DummyController#create as HTML - Parameters: {"{ \"widget\": { \"name\":\"My Widget\" } }"=>nil} -Completed 500 Internal Server Error in 0ms -Started POST "/dummy" for 127.0.0.1 at 2018-07-11 18:01:31 +0200 -Processing by DummyController#create as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 0ms -Started POST "/dummy" for 127.0.0.1 at 2018-07-11 18:04:22 +0200 -Processing by DummyController#create as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 2ms -Started POST "/dummy" for 127.0.0.1 at 2018-07-11 18:07:31 +0200 -Processing by DummyController#create as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 2ms -Started POST "/dummy" for 127.0.0.1 at 2018-07-11 18:09:02 +0200 -Processing by DummyController#create as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 200 OK in 2ms -Started POST "/dummy" for 127.0.0.1 at 2018-07-11 18:09:17 +0200 -Processing by DummyController#create as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 200 OK in 2ms -Started POST "/dummy" for 127.0.0.1 at 2018-07-11 18:09:42 +0200 -Processing by DummyController#create as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 200 OK in 1ms -Started GET "/dummy?%7B%22data%22%3A%7B%22id%22%3A4%7D%7D" for 127.0.0.1 at 2018-07-11 18:09:43 +0200 -Started POST "/dummy" for 127.0.0.1 at 2018-07-11 18:10:01 +0200 -Processing by DummyController#create as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 200 OK in 1ms -Started GET "/dummy?%7B%22data%22%3A%7B%22id%22%3A4%7D%7D" for 127.0.0.1 at 2018-07-11 18:10:01 +0200 -Processing by DummyController#index as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 0ms -Started POST "/dummy" for 127.0.0.1 at 2018-07-11 18:11:45 +0200 -Processing by DummyController#create as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 200 OK in 1ms -Started GET "/dummy?%7B%22data%22%3A%7B%22id%22%3A4%7D%7D" for 127.0.0.1 at 2018-07-11 18:11:45 +0200 -Processing by DummyController#index as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 2ms -Started POST "/dummy" for 127.0.0.1 at 2018-07-11 18:12:24 +0200 -Processing by DummyController#create as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 200 OK in 1ms -Started GET "/dummy?%7B%22data%22%3A%7B%22id%22%3A4%7D%7D" for 127.0.0.1 at 2018-07-11 18:12:24 +0200 -Processing by DummyController#index as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 3ms -Started POST "/dummy" for 127.0.0.1 at 2018-07-11 18:12:48 +0200 -Processing by DummyController#create as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 200 OK in 1ms -Started GET "/dummy?%7B%22data%22%3A%7B%22id%22%3A4%7D%7D" for 127.0.0.1 at 2018-07-11 18:12:48 +0200 -Processing by DummyController#index as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 3ms -Started POST "/dummy" for 127.0.0.1 at 2018-07-11 18:13:32 +0200 -Processing by DummyController#create as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 200 OK in 1ms -Started GET "/dummy?%7B%22data%22%3A%7B%22id%22%3A4%7D%7D" for 127.0.0.1 at 2018-07-11 18:13:32 +0200 -Processing by DummyController#index as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 500 Internal Server Error in 3ms -Started POST "/dummy" for 127.0.0.1 at 2018-07-11 18:14:03 +0200 -Processing by DummyController#create as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 200 OK in 1ms -Started GET "/dummy?%7B%22data%22%3A%7B%22id%22%3A4%7D%7D" for 127.0.0.1 at 2018-07-11 18:14:03 +0200 -Processing by DummyController#index as HTML - Parameters: {"{\"data\":{\"id\":4}}"=>nil} -Completed 201 Created in 2ms diff --git a/spec/dummy/tmp/.keep b/spec/dummy/tmp/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy/tmp/storage/.keep b/spec/dummy/tmp/storage/.keep deleted file mode 100644 index e69de29..0000000 From 7e30fa1eb4b1f6b603f3e1d71f083aa8acec03cf Mon Sep 17 00:00:00 2001 From: Yann Hourdel Date: Wed, 11 Jul 2018 19:00:42 +0200 Subject: [PATCH 2/2] Delete more useless files and ignore some for the future --- .gitignore | 2 ++ Gemfile.lock | 2 -- .../app/channels/application_cable/channel.rb | 4 ---- .../app/channels/application_cable/connection.rb | 4 ---- spec/dummy/app/jobs/application_job.rb | 2 -- .../config/initializers/cookies_serializer.rb | 5 ----- .../initializers/filter_parameter_logging.rb | 4 ---- spec/dummy/config/initializers/wrap_parameters.rb | 14 -------------- 8 files changed, 2 insertions(+), 35 deletions(-) delete mode 100644 spec/dummy/app/channels/application_cable/channel.rb delete mode 100644 spec/dummy/app/channels/application_cable/connection.rb delete mode 100644 spec/dummy/app/jobs/application_job.rb delete mode 100644 spec/dummy/config/initializers/cookies_serializer.rb delete mode 100644 spec/dummy/config/initializers/filter_parameter_logging.rb delete mode 100644 spec/dummy/config/initializers/wrap_parameters.rb diff --git a/.gitignore b/.gitignore index 9106b2a..a18c4b2 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,7 @@ /coverage/ /doc/ /pkg/ +/spec/dummy/tmp/ +/spec/dummy/log/ /spec/reports/ /tmp/ diff --git a/Gemfile.lock b/Gemfile.lock index b40a852..06b13b5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -52,7 +52,6 @@ GEM public_suffix (>= 2.0.2, < 4.0) arel (9.0.0) builder (3.2.3) - byebug (10.0.2) concurrent-ruby (1.0.5) crack (0.4.3) safe_yaml (~> 1.0.0) @@ -164,7 +163,6 @@ PLATFORMS DEPENDENCIES bundler (~> 1.16) - byebug http_forwarder! rails rake (~> 10.0) diff --git a/spec/dummy/app/channels/application_cable/channel.rb b/spec/dummy/app/channels/application_cable/channel.rb deleted file mode 100644 index d672697..0000000 --- a/spec/dummy/app/channels/application_cable/channel.rb +++ /dev/null @@ -1,4 +0,0 @@ -module ApplicationCable - class Channel < ActionCable::Channel::Base - end -end diff --git a/spec/dummy/app/channels/application_cable/connection.rb b/spec/dummy/app/channels/application_cable/connection.rb deleted file mode 100644 index 0ff5442..0000000 --- a/spec/dummy/app/channels/application_cable/connection.rb +++ /dev/null @@ -1,4 +0,0 @@ -module ApplicationCable - class Connection < ActionCable::Connection::Base - end -end diff --git a/spec/dummy/app/jobs/application_job.rb b/spec/dummy/app/jobs/application_job.rb deleted file mode 100644 index a009ace..0000000 --- a/spec/dummy/app/jobs/application_job.rb +++ /dev/null @@ -1,2 +0,0 @@ -class ApplicationJob < ActiveJob::Base -end diff --git a/spec/dummy/config/initializers/cookies_serializer.rb b/spec/dummy/config/initializers/cookies_serializer.rb deleted file mode 100644 index 5a6a32d..0000000 --- a/spec/dummy/config/initializers/cookies_serializer.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Specify a serializer for the signed and encrypted cookie jars. -# Valid options are :json, :marshal, and :hybrid. -Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/spec/dummy/config/initializers/filter_parameter_logging.rb b/spec/dummy/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/spec/dummy/config/initializers/filter_parameter_logging.rb +++ /dev/null @@ -1,4 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Configure sensitive parameters which will be filtered from the log file. -Rails.application.config.filter_parameters += [:password] diff --git a/spec/dummy/config/initializers/wrap_parameters.rb b/spec/dummy/config/initializers/wrap_parameters.rb deleted file mode 100644 index bbfc396..0000000 --- a/spec/dummy/config/initializers/wrap_parameters.rb +++ /dev/null @@ -1,14 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# This file contains settings for ActionController::ParamsWrapper which -# is enabled by default. - -# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. -ActiveSupport.on_load(:action_controller) do - wrap_parameters format: [:json] -end - -# To enable root element in JSON for ActiveRecord objects. -# ActiveSupport.on_load(:active_record) do -# self.include_root_in_json = true -# end