localtower 0.4.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -46
  3. data/app/controllers/localtower/pages_controller.rb +28 -42
  4. data/app/helpers/localtower/application_helper.rb +0 -18
  5. data/app/views/layouts/localtower/application.html.erb +20 -79
  6. data/app/views/localtower/pages/_alert_no_models.html.erb +3 -0
  7. data/app/views/localtower/pages/migrations.html.erb +50 -120
  8. data/app/views/localtower/pages/models.html.erb +53 -68
  9. data/app/views/localtower/pages/new_migration.html.erb +103 -0
  10. data/app/views/localtower/pages/new_model.html.erb +87 -0
  11. data/config/routes.rb +8 -17
  12. data/lib/localtower/generators/migration.rb +53 -181
  13. data/lib/localtower/generators/model.rb +53 -32
  14. data/lib/localtower/generators/service_objects/insert_array.rb +23 -0
  15. data/lib/localtower/generators/service_objects/insert_defaults.rb +15 -43
  16. data/lib/localtower/generators/service_objects/insert_indexes.rb +80 -0
  17. data/lib/localtower/generators/service_objects/insert_nullable.rb +23 -0
  18. data/lib/localtower/status.rb +12 -7
  19. data/lib/localtower/tools.rb +29 -24
  20. data/lib/localtower/version.rb +1 -1
  21. data/lib/localtower.rb +0 -1
  22. data/public/css/app.css +0 -49
  23. data/public/js/app.js +216 -86
  24. data/public/light-bootstrap-dashboard-master/assets/css/light-bootstrap-dashboard.css +9 -35
  25. data/public/screenshots/v1.0.0/migrations.png +0 -0
  26. data/public/screenshots/v1.0.0/models.png +0 -0
  27. data/public/screenshots/v1.0.0/new_migration.png +0 -0
  28. data/public/screenshots/v1.0.0/new_model.png +0 -0
  29. data/public/vendor/font-awesome.min.css +4 -0
  30. data/public/vendor/highlight-js-default.min.css +9 -0
  31. data/public/vendor/highlight.min.js +1198 -0
  32. data/public/{js → vendor}/masonry.pkgd.min.js +0 -0
  33. data/spec/dummy/Gemfile +0 -3
  34. data/spec/dummy/Gemfile.lock +78 -95
  35. data/spec/dummy/app/controllers/pages_controller.rb +0 -2
  36. data/spec/dummy/app/models/post.rb +3 -0
  37. data/spec/dummy/app/models/user.rb +3 -0
  38. data/spec/dummy/app/views/pages/home.html.erb +0 -1
  39. data/spec/dummy/config/database.yml +1 -1
  40. data/spec/dummy/config/environments/development.rb +3 -1
  41. data/spec/dummy/config/puma.rb +1 -1
  42. data/spec/dummy/db/migrate/20230119221452_create_users.rb +14 -0
  43. data/spec/dummy/db/migrate/20230119221751_change_users_at1674166670.rb +7 -0
  44. data/spec/dummy/db/migrate/20230119222054_create_posts.rb +11 -0
  45. data/spec/dummy/db/migrate/20230119222106_change_posts_at1674166865.rb +5 -0
  46. data/spec/dummy/db/schema.rb +41 -0
  47. data/spec/dummy/log/development.log +16030 -10038
  48. data/spec/dummy/log/localtower.log +1878 -439
  49. data/spec/dummy/log/test.log +0 -281
  50. data/spec/dummy/test/index.html +38 -0
  51. data/spec/dummy/tmp/pids/server.pid +1 -1
  52. data/spec/factories/migration.rb +25 -41
  53. data/spec/factories/model.rb +39 -25
  54. data/spec/lib/localtower/generators/migration_spec.rb +36 -63
  55. data/spec/lib/localtower/generators/model_spec.rb +43 -34
  56. data/spec/lib/localtower/generators/service_objects/insert_array_spec.rb +47 -0
  57. data/spec/lib/localtower/generators/service_objects/insert_defaults_spec.rb +30 -35
  58. data/spec/lib/localtower/generators/service_objects/insert_indexes_spec.rb +90 -0
  59. data/spec/lib/localtower/generators/service_objects/insert_nullable_spec.rb +61 -0
  60. data/spec/lib/localtower/tools_spec.rb +1 -11
  61. data/spec/spec_helper.rb +25 -5
  62. metadata +38 -30
  63. data/app/views/localtower/pages/dashboard.html.erb +0 -67
  64. data/app/views/localtower/pages/logs.html.erb +0 -84
  65. data/app/views/localtower/pages/relations.html.erb +0 -66
  66. data/app/views/localtower/pages/tasks.html.erb +0 -48
  67. data/lib/localtower/generators/relation.rb +0 -59
  68. data/lib/localtower/plugins/capture.rb +0 -197
  69. data/lib/tasks/localtower_tasks.rake +0 -4
  70. data/spec/dummy/lib/playground.rb +0 -0
  71. data/spec/dummy/log/localtower_capture_d8979d360722798f7b6eb1a2694a3791.json +0 -1
  72. data/spec/lib/localtower/generators/relation_spec.rb +0 -65
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :localtower do
3
- # # Task goes here
4
- # end
File without changes
@@ -1 +0,0 @@
1
- {"class":"PagesController","file_name":"/app/controllers/pages_controller.rb","file":"/app/controllers/pages_controller.rb#home:6","line_number":"6","method":"home","md5":"d8979d360722798f7b6eb1a2694a3791","type":"CAPTURE_METHOD","time":"2022-07-19 13:53:23.512","variables":[{"type":"CAPTURE","time":"2022-07-19 13:53:23.512","event_name":"a","identifier":null,"returned":2,"meta":{"from_klass":"PagesController","from_method":"home","klass":"Integer","method":"home","callers":["/Users/damln/Work/localtower/lib/localtower/plugins/capture.rb:181:in `save'","/Users/damln/Work/localtower/spec/dummy/app/controllers/pages_controller.rb:6:in `home'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/base.rb:214:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/rendering.rb:53:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/callbacks.rb:234:in `block in process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/callbacks.rb:107:in `run_callbacks'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/callbacks.rb:233:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/rescue.rb:22:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/instrumentation.rb:67:in `block in process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/notifications.rb:206:in `block in instrument'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/notifications/instrumenter.rb:24:in `instrument'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/notifications.rb:206:in `instrument'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/instrumentation.rb:66:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/params_wrapper.rb:259:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activerecord-7.0.2.3/lib/active_record/railties/controller_runtime.rb:27:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/base.rb:151:in `process'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionview-7.0.2.3/lib/action_view/rendering.rb:39:in `process'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal.rb:188:in `dispatch'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal.rb:251:in `dispatch'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/routing/route_set.rb:49:in `dispatch'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/routing/route_set.rb:32:in `serve'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/journey/router.rb:50:in `block in serve'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/journey/router.rb:32:in `each'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/journey/router.rb:32:in `serve'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/routing/route_set.rb:850:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/static.rb:23:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/etag.rb:27:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/http/permissions_policy.rb:22:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/http/content_security_policy.rb:18:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in `context'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/cookies.rb:693:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activerecord-7.0.2.3/lib/active_record/migration.rb:603:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/callbacks.rb:99:in `run_callbacks'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/callbacks.rb:26:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/show_exceptions.rb:26:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/rack/logger.rb:36:in `call_app'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/rack/logger.rb:25:in `block in call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/tagged_logging.rb:99:in `block in tagged'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/tagged_logging.rb:37:in `tagged'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/tagged_logging.rb:99:in `tagged'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/rack/logger.rb:25:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/remote_ip.rb:93:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/request_id.rb:26:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/method_override.rb:24:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/runtime.rb:22:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/static.rb:23:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/host_authorization.rb:137:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/engine.rb:530:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/configuration.rb:252:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/request.rb:77:in `block in handle_request'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/thread_pool.rb:340:in `with_force_shutdown'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/request.rb:76:in `handle_request'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/server.rb:441:in `process_client'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/thread_pool.rb:147:in `block in spawn_thread'"],"sublime_path":"/Users/damln/Work/localtower/spec/dummy/app/controllers/pages_controller.rb:6","file":"/app/controllers/pages_controller.rb#home:6","line":"6"}},{"type":"CAPTURE","time":"2022-07-19 13:53:23.512","event_name":"b","identifier":null,"returned":{"hello":"World"},"meta":{"from_klass":"PagesController","from_method":"home","klass":"Hash","method":"home","callers":["/Users/damln/Work/localtower/lib/localtower/plugins/capture.rb:181:in `save'","/Users/damln/Work/localtower/spec/dummy/app/controllers/pages_controller.rb:6:in `home'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/base.rb:214:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/rendering.rb:53:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/callbacks.rb:234:in `block in process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/callbacks.rb:107:in `run_callbacks'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/callbacks.rb:233:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/rescue.rb:22:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/instrumentation.rb:67:in `block in process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/notifications.rb:206:in `block in instrument'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/notifications/instrumenter.rb:24:in `instrument'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/notifications.rb:206:in `instrument'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/instrumentation.rb:66:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/params_wrapper.rb:259:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activerecord-7.0.2.3/lib/active_record/railties/controller_runtime.rb:27:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/base.rb:151:in `process'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionview-7.0.2.3/lib/action_view/rendering.rb:39:in `process'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal.rb:188:in `dispatch'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal.rb:251:in `dispatch'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/routing/route_set.rb:49:in `dispatch'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/routing/route_set.rb:32:in `serve'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/journey/router.rb:50:in `block in serve'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/journey/router.rb:32:in `each'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/journey/router.rb:32:in `serve'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/routing/route_set.rb:850:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/static.rb:23:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/etag.rb:27:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/http/permissions_policy.rb:22:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/http/content_security_policy.rb:18:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in `context'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/cookies.rb:693:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activerecord-7.0.2.3/lib/active_record/migration.rb:603:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/callbacks.rb:99:in `run_callbacks'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/callbacks.rb:26:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/show_exceptions.rb:26:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/rack/logger.rb:36:in `call_app'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/rack/logger.rb:25:in `block in call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/tagged_logging.rb:99:in `block in tagged'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/tagged_logging.rb:37:in `tagged'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/tagged_logging.rb:99:in `tagged'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/rack/logger.rb:25:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/remote_ip.rb:93:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/request_id.rb:26:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/method_override.rb:24:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/runtime.rb:22:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/static.rb:23:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/host_authorization.rb:137:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/engine.rb:530:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/configuration.rb:252:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/request.rb:77:in `block in handle_request'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/thread_pool.rb:340:in `with_force_shutdown'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/request.rb:76:in `handle_request'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/server.rb:441:in `process_client'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/thread_pool.rb:147:in `block in spawn_thread'"],"sublime_path":"/Users/damln/Work/localtower/spec/dummy/app/controllers/pages_controller.rb:6","file":"/app/controllers/pages_controller.rb#home:6","line":"6"}},{"type":"CAPTURE","time":"2022-07-19 13:53:23.514","event_name":"@rendered_format","identifier":null,"returned":null,"meta":{"from_klass":"PagesController","from_method":"home","klass":"NilClass","method":"home","callers":["/Users/damln/Work/localtower/lib/localtower/plugins/capture.rb:181:in `save'","/Users/damln/Work/localtower/spec/dummy/app/controllers/pages_controller.rb:6:in `home'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/base.rb:214:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/rendering.rb:53:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/callbacks.rb:234:in `block in process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/callbacks.rb:107:in `run_callbacks'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/callbacks.rb:233:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/rescue.rb:22:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/instrumentation.rb:67:in `block in process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/notifications.rb:206:in `block in instrument'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/notifications/instrumenter.rb:24:in `instrument'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/notifications.rb:206:in `instrument'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/instrumentation.rb:66:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/params_wrapper.rb:259:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activerecord-7.0.2.3/lib/active_record/railties/controller_runtime.rb:27:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/base.rb:151:in `process'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionview-7.0.2.3/lib/action_view/rendering.rb:39:in `process'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal.rb:188:in `dispatch'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal.rb:251:in `dispatch'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/routing/route_set.rb:49:in `dispatch'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/routing/route_set.rb:32:in `serve'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/journey/router.rb:50:in `block in serve'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/journey/router.rb:32:in `each'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/journey/router.rb:32:in `serve'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/routing/route_set.rb:850:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/static.rb:23:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/etag.rb:27:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/http/permissions_policy.rb:22:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/http/content_security_policy.rb:18:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in `context'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/cookies.rb:693:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activerecord-7.0.2.3/lib/active_record/migration.rb:603:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/callbacks.rb:99:in `run_callbacks'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/callbacks.rb:26:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/show_exceptions.rb:26:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/rack/logger.rb:36:in `call_app'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/rack/logger.rb:25:in `block in call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/tagged_logging.rb:99:in `block in tagged'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/tagged_logging.rb:37:in `tagged'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/tagged_logging.rb:99:in `tagged'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/rack/logger.rb:25:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/remote_ip.rb:93:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/request_id.rb:26:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/method_override.rb:24:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/runtime.rb:22:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/static.rb:23:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/host_authorization.rb:137:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/engine.rb:530:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/configuration.rb:252:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/request.rb:77:in `block in handle_request'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/thread_pool.rb:340:in `with_force_shutdown'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/request.rb:76:in `handle_request'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/server.rb:441:in `process_client'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/thread_pool.rb:147:in `block in spawn_thread'"],"sublime_path":"/Users/damln/Work/localtower/spec/dummy/app/controllers/pages_controller.rb:6","file":"/app/controllers/pages_controller.rb#home:6","line":"6"}},{"type":"CAPTURE","time":"2022-07-19 13:53:23.514","event_name":"@marked_for_same_origin_verification","identifier":null,"returned":true,"meta":{"from_klass":"PagesController","from_method":"home","klass":"","method":"home","callers":["/Users/damln/Work/localtower/lib/localtower/plugins/capture.rb:181:in `save'","/Users/damln/Work/localtower/spec/dummy/app/controllers/pages_controller.rb:6:in `home'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/base.rb:214:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/rendering.rb:53:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/callbacks.rb:234:in `block in process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/callbacks.rb:107:in `run_callbacks'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/callbacks.rb:233:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/rescue.rb:22:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/instrumentation.rb:67:in `block in process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/notifications.rb:206:in `block in instrument'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/notifications/instrumenter.rb:24:in `instrument'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/notifications.rb:206:in `instrument'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/instrumentation.rb:66:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/params_wrapper.rb:259:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activerecord-7.0.2.3/lib/active_record/railties/controller_runtime.rb:27:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/base.rb:151:in `process'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionview-7.0.2.3/lib/action_view/rendering.rb:39:in `process'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal.rb:188:in `dispatch'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal.rb:251:in `dispatch'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/routing/route_set.rb:49:in `dispatch'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/routing/route_set.rb:32:in `serve'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/journey/router.rb:50:in `block in serve'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/journey/router.rb:32:in `each'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/journey/router.rb:32:in `serve'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/routing/route_set.rb:850:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/static.rb:23:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/etag.rb:27:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/http/permissions_policy.rb:22:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/http/content_security_policy.rb:18:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in `context'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/cookies.rb:693:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activerecord-7.0.2.3/lib/active_record/migration.rb:603:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/callbacks.rb:99:in `run_callbacks'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/callbacks.rb:26:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/show_exceptions.rb:26:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/rack/logger.rb:36:in `call_app'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/rack/logger.rb:25:in `block in call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/tagged_logging.rb:99:in `block in tagged'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/tagged_logging.rb:37:in `tagged'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/tagged_logging.rb:99:in `tagged'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/rack/logger.rb:25:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/remote_ip.rb:93:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/request_id.rb:26:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/method_override.rb:24:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/runtime.rb:22:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/static.rb:23:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/host_authorization.rb:137:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/engine.rb:530:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/configuration.rb:252:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/request.rb:77:in `block in handle_request'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/thread_pool.rb:340:in `with_force_shutdown'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/request.rb:76:in `handle_request'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/server.rb:441:in `process_client'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/thread_pool.rb:147:in `block in spawn_thread'"],"sublime_path":"/Users/damln/Work/localtower/spec/dummy/app/controllers/pages_controller.rb:6","file":"/app/controllers/pages_controller.rb#home:6","line":"6"}},{"type":"CAPTURE","time":"2022-07-19 13:53:23.514","event_name":"@_config","identifier":null,"returned":{},"meta":{"from_klass":"PagesController","from_method":"home","klass":"","method":"home","callers":["/Users/damln/Work/localtower/lib/localtower/plugins/capture.rb:181:in `save'","/Users/damln/Work/localtower/spec/dummy/app/controllers/pages_controller.rb:6:in `home'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/base.rb:214:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/rendering.rb:53:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/callbacks.rb:234:in `block in process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/callbacks.rb:107:in `run_callbacks'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/callbacks.rb:233:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/rescue.rb:22:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/instrumentation.rb:67:in `block in process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/notifications.rb:206:in `block in instrument'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/notifications/instrumenter.rb:24:in `instrument'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/notifications.rb:206:in `instrument'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/instrumentation.rb:66:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/params_wrapper.rb:259:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activerecord-7.0.2.3/lib/active_record/railties/controller_runtime.rb:27:in `process_action'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/abstract_controller/base.rb:151:in `process'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionview-7.0.2.3/lib/action_view/rendering.rb:39:in `process'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal.rb:188:in `dispatch'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal.rb:251:in `dispatch'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/routing/route_set.rb:49:in `dispatch'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/routing/route_set.rb:32:in `serve'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/journey/router.rb:50:in `block in serve'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/journey/router.rb:32:in `each'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/journey/router.rb:32:in `serve'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/routing/route_set.rb:850:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/static.rb:23:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/etag.rb:27:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/http/permissions_policy.rb:22:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/http/content_security_policy.rb:18:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in `context'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/cookies.rb:693:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activerecord-7.0.2.3/lib/active_record/migration.rb:603:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/callbacks.rb:99:in `run_callbacks'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/callbacks.rb:26:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/show_exceptions.rb:26:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/rack/logger.rb:36:in `call_app'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/rack/logger.rb:25:in `block in call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/tagged_logging.rb:99:in `block in tagged'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/tagged_logging.rb:37:in `tagged'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/tagged_logging.rb:99:in `tagged'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/rack/logger.rb:25:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/remote_ip.rb:93:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/request_id.rb:26:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/method_override.rb:24:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/runtime.rb:22:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/static.rb:23:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/host_authorization.rb:137:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-7.0.2.3/lib/rails/engine.rb:530:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/configuration.rb:252:in `call'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/request.rb:77:in `block in handle_request'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/thread_pool.rb:340:in `with_force_shutdown'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/request.rb:76:in `handle_request'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/server.rb:441:in `process_client'","/Users/damln/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.6.1/lib/puma/thread_pool.rb:147:in `block in spawn_thread'"],"sublime_path":"/Users/damln/Work/localtower/spec/dummy/app/controllers/pages_controller.rb:6","file":"/app/controllers/pages_controller.rb#home:6","line":"6"}}]}
@@ -1,65 +0,0 @@
1
- require 'spec_helper'
2
-
3
- module Localtower
4
- module Generators
5
- describe Relation do
6
- before(:all) do
7
- clean_files
8
- end
9
-
10
- after(:all) do
11
- end
12
-
13
- it 'belongs_to' do
14
- data1 = attributes_for(:post_one)
15
- data1["run_migrate"] = true
16
- ::Localtower::Generators::Model.new(data1).run
17
-
18
- data2 = attributes_for(:user_one)
19
- data2["run_migrate"] = true
20
- ::Localtower::Generators::Model.new(data2).run
21
-
22
- data = attributes_for(:belongs_to)
23
- data["run_migrate"] = true
24
-
25
- generator = ::Localtower::Generators::Migration.new(data).run
26
-
27
- expect(::Localtower::Tools.word_in_file?(last_migration, /add_reference :posts, :user, foreign_key: true, index: true/)).to eq(true)
28
- expect(File.exist?("#{Rails.root}/app/models/post.rb")).to eq(true)
29
- expect(File.exist?("#{Rails.root}/app/models/user.rb")).to eq(true)
30
- expect(::Localtower::Tools.word_in_file?("#{Rails.root}/app/models/post.rb", /class Post/)).to eq(true)
31
- expect(::Localtower::Tools.word_in_file?("#{Rails.root}/app/models/post.rb", /belongs_to/)).to eq(true)
32
- expect(::Localtower::Tools.word_in_file?("#{Rails.root}/app/models/user.rb", /class User/)).to eq(true)
33
- expect(::Localtower::Tools.word_in_file?("#{Rails.root}/app/models/user.rb", /has_many/)).to eq(true)
34
-
35
- Dir["#{Rails.root}/app/models/**/*.*"].each { |model_file| File.delete(model_file) }
36
- end
37
-
38
- it 'create a relation' do
39
- clean_files
40
-
41
- ::Localtower::Generators::Model.new(attributes_for(:post_one)).run
42
- ::Localtower::Generators::Model.new(attributes_for(:user_one)).run
43
-
44
- ::Localtower::Generators::Relation.new(attributes_for(:relation_one)).run
45
-
46
- expect(File.exist?("#{Rails.root}/app/models/user_post.rb")).to eq(true)
47
-
48
- expect(::Localtower::Tools.word_in_file?("#{Rails.root}/app/models/user_post.rb", /class UserPost/)).to eq(true)
49
- expect(::Localtower::Tools.word_in_file?("#{Rails.root}/db/schema.rb", /create_table "user_posts"/)).to eq(true)
50
-
51
- user_id = ::Localtower::Tools.word_in_file?("#{Rails.root}/db/schema.rb", /t.integer(.*)"user_id"/) || ::Localtower::Tools.word_in_file?("#{Rails.root}/db/schema.rb", /t.bigint(.*)"user_id"/)
52
- post_id = ::Localtower::Tools.word_in_file?("#{Rails.root}/db/schema.rb", /t.integer(.*)"post_id"/) || ::Localtower::Tools.word_in_file?("#{Rails.root}/db/schema.rb", /t.bigint(.*)"post_id"/)
53
-
54
- expect(user_id).to eq(true)
55
- expect(post_id).to eq(true)
56
-
57
- expect(::Localtower::Tools.word_in_file?("#{Rails.root}/app/models/user.rb", /has_many :posts, through: :user_posts/)).to eq(true)
58
- expect(::Localtower::Tools.word_in_file?("#{Rails.root}/app/models/user.rb", /has_many :posts/)).to eq(true)
59
-
60
- expect(::Localtower::Tools.word_in_file?("#{Rails.root}/app/models/post.rb", /has_many :users/)).to eq(true)
61
- expect(::Localtower::Tools.word_in_file?("#{Rails.root}/app/models/post.rb", /has_many :users, through: :user_posts/)).to eq(true)
62
- end
63
- end
64
- end
65
- end