web-console 2.0.0.beta3 → 2.0.0.beta4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of web-console might be problematic. Click here for more details.

Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/README.markdown +16 -31
  3. data/app/assets/javascripts/web_console/console_sessions.js +16 -6
  4. data/app/controllers/web_console/console_sessions_controller.rb +8 -4
  5. data/app/models/web_console/console_session.rb +13 -0
  6. data/app/views/web_console/console_sessions/index.html.erb +3 -1
  7. data/lib/action_dispatch/debug_exceptions.rb +4 -8
  8. data/lib/action_dispatch/exception_wrapper.rb +1 -1
  9. data/lib/action_dispatch/templates/rescues/_web_console.html.erb +9 -8
  10. data/lib/action_dispatch/templates/routes/_route.html.erb +16 -0
  11. data/lib/action_dispatch/templates/routes/_table.html.erb +200 -0
  12. data/lib/web_console.rb +2 -1
  13. data/lib/web_console/controller_helpers.rb +44 -0
  14. data/lib/web_console/core_ext/exception.rb +59 -0
  15. data/lib/web_console/engine.rb +2 -1
  16. data/lib/web_console/repl_session.rb +4 -7
  17. data/lib/web_console/slave.rb +11 -3
  18. data/lib/web_console/version.rb +1 -1
  19. data/lib/web_console/view_helpers.rb +2 -5
  20. data/test/controllers/web_console/console_sessions_controller_test.rb +12 -7
  21. data/test/dummy/app/controllers/controller_helper_test_controller.rb +7 -0
  22. data/test/dummy/app/views/controller_helper_test/index.html.erb +1 -0
  23. data/test/dummy/config/routes.rb +1 -0
  24. data/test/dummy/log/test.log +257 -8122
  25. data/test/dummy/tmp/cache/assets/test/sprockets/{cb0065359d3b5b296f71d673f4b276e9 → 0c9b99b1b975b36a5b686845ae729db3} +0 -0
  26. data/test/dummy/tmp/cache/assets/{development/sprockets/8aa4c7aabff23c8089d41e9e54193483 → test/sprockets/12e9f58adcf819cf65fd68b6859a438f} +0 -0
  27. data/test/dummy/tmp/cache/assets/test/sprockets/1fd6abead3df36a4e4a2cb042a551b39 +0 -0
  28. data/test/dummy/tmp/cache/assets/test/sprockets/33b5eb81b5aaaa1e6dd5dcb6517792b4 +0 -0
  29. data/test/dummy/tmp/cache/assets/test/sprockets/{d1f6e06bc2f112c4ec3a4c3f68351878 → 3e460b2e021085f88b5597b38d194932} +0 -0
  30. data/test/dummy/tmp/cache/assets/test/sprockets/{55b7b76605fdffe31d737d4ac1f1ef7b → 52f04b2ea6e461f4661b6d0be393fa94} +0 -0
  31. data/test/dummy/tmp/cache/assets/test/sprockets/{e6d6b8bde546349764be7b44ffcf5807 → 688c344c2919f882338f06c5daaea209} +0 -0
  32. data/test/dummy/tmp/cache/assets/{development/sprockets/d982412def520c434e2240eae6d29cf2 → test/sprockets/7f079298e19bbef40a5d6a37dc03033a} +0 -0
  33. data/test/dummy/tmp/cache/assets/test/sprockets/{7a50a9e605754e99783de95715b976b0 → 91aa709f89e465f58056fabe5f75eef4} +0 -0
  34. data/test/dummy/tmp/cache/assets/test/sprockets/{6ad7acc9a22fe2a67ec24a1fc866c20e → 95f4e4e5217aec9f71b2c1a65a9a9231} +0 -0
  35. data/test/dummy/tmp/cache/assets/{development/sprockets/5ac98782fe3dfd0a766f75ce1801f0a0 → test/sprockets/9c41be9b6625756fbb6d05b7665dd911} +0 -0
  36. data/test/dummy/tmp/cache/assets/test/sprockets/a95f64d41fcf8244b8f5b84a55f07822 +0 -0
  37. data/test/dummy/tmp/cache/assets/{development/sprockets/6ad7acc9a22fe2a67ec24a1fc866c20e → test/sprockets/c5e6bf1efd5929bee63e28ad7c9f6f83} +0 -0
  38. data/test/dummy/tmp/cache/assets/test/sprockets/d863259e9eeca657a1624135cfe24446 +0 -0
  39. data/test/dummy/tmp/cache/assets/test/sprockets/e1d2fc4601b6423ec8a42415ee05dd14 +0 -0
  40. data/test/dummy/tmp/cache/assets/test/sprockets/e82616536a759c2e87d703adc77d65da +0 -0
  41. data/test/test_helper.rb +52 -0
  42. data/test/web_console/controller_helpers_test.rb +48 -0
  43. data/test/web_console/core_ext/exception_test.rb +34 -0
  44. data/test/web_console/engine_test.rb +9 -0
  45. data/test/web_console/repl_session_test.rb +4 -4
  46. data/test/web_console/slave_test.rb +1 -0
  47. metadata +46 -151
  48. data/lib/web_console/exception_extension.rb +0 -21
  49. data/test/dummy/db/development.sqlite3 +0 -0
  50. data/test/dummy/log/development.log +0 -61814
  51. data/test/dummy/tmp/cache/assets/development/sprockets/038461854af2e8bccdb29768efd4768f +0 -0
  52. data/test/dummy/tmp/cache/assets/development/sprockets/0ec396634a5f6808b026257fd107c355 +0 -0
  53. data/test/dummy/tmp/cache/assets/development/sprockets/127a54171eea8d294e4673599861787d +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/17c571144b4e44da39bddb2d2c412414 +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/1cb77d8cf661ccbc9de08f347c89b9f1 +0 -0
  57. data/test/dummy/tmp/cache/assets/development/sprockets/204edd12a29660722d4e0d8de9bd6652 +0 -0
  58. data/test/dummy/tmp/cache/assets/development/sprockets/2b96b037f3dfeccfe27113eb95b06ea1 +0 -0
  59. data/test/dummy/tmp/cache/assets/development/sprockets/2c853768baf811357d81d41bdfd05dcf +0 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/314d48e543146f617c4d3439a4d8d40d +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/34f21019a876722b8c24a6da4f0ef50b +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/36341e42f23669574fa1027d0958ff3e +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/44117154e909436e7eeaf10cdb18d2b4 +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/496864a905d53afd8e176f29500f96a8 +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/55b7b76605fdffe31d737d4ac1f1ef7b +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/6088d6f344b38303cc8028057d69e0f9 +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/676dcf9b2d01b9dc7bd3183d8da88463 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/680381170dc160e358fc28076ea6886c +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/6bdb0d0c602e0e1bc304dc697e2cc6de +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/6dc8d7aa69668fce85683aaad6615432 +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/6e4d5b32cc444226f6597198994ccd5e +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/74db0ca5cb8c8c347c9131a3ff516748 +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/7999e525c88173c1beb785f002effc1d +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/7a50a9e605754e99783de95715b976b0 +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/806b0e33a2fe8e1245534345fa27c30a +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/90396626cba6cbec37e32038e6c54e76 +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sprockets/976b28910aa72c90a3b30c6e940f51df +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/99e1bd7cbc437505bc8f07bc528c721c +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/aaccf2c9ae2add0863c9a49e0042a097 +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sprockets/ae4677d24a79d9411f2fced5011d5807 +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sprockets/b2401118729720034b6f3eda0b4c5025 +0 -0
  84. data/test/dummy/tmp/cache/assets/development/sprockets/c649837df826fc310cb80f1adafd6b8d +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sprockets/cac185d59612fae451a12df3fc21bb51 +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sprockets/cb0065359d3b5b296f71d673f4b276e9 +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sprockets/cee8c6b09c33d2b276753e959712724e +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sprockets/d1f6e06bc2f112c4ec3a4c3f68351878 +0 -0
  90. data/test/dummy/tmp/cache/assets/development/sprockets/d20d83fd7ffa378b1b2b901786d640f3 +0 -0
  91. data/test/dummy/tmp/cache/assets/development/sprockets/d38c7c3aa1e72b55769ccb3607641ef4 +0 -0
  92. data/test/dummy/tmp/cache/assets/development/sprockets/d6b85d8b0b5c569388b89e56e9f6fed7 +0 -0
  93. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  94. data/test/dummy/tmp/cache/assets/development/sprockets/df048a8b0897b9c04acdf59c8f95b18f +0 -0
  95. data/test/dummy/tmp/cache/assets/development/sprockets/df600f50f002512c95d93bcfbab891ed +0 -0
  96. data/test/dummy/tmp/cache/assets/development/sprockets/e6d6b8bde546349764be7b44ffcf5807 +0 -0
  97. data/test/dummy/tmp/cache/assets/development/sprockets/eb25265794d2f7afd1684779d84efdac +0 -0
  98. data/test/dummy/tmp/cache/assets/development/sprockets/ee8826b12b7d9bfd717df950b58f82ab +0 -0
  99. data/test/dummy/tmp/cache/assets/development/sprockets/ef9824789c6ed3483590e0564a12e1d1 +0 -0
  100. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  101. data/test/dummy/tmp/cache/assets/development/sprockets/fc7201c6cbef32453aa4175c520c8eae +0 -0
  102. data/test/dummy/tmp/cache/assets/test/sprockets/17c571144b4e44da39bddb2d2c412414 +0 -0
  103. data/test/dummy/tmp/cache/assets/test/sprockets/36341e42f23669574fa1027d0958ff3e +0 -0
  104. data/test/dummy/tmp/cache/assets/test/sprockets/5ac98782fe3dfd0a766f75ce1801f0a0 +0 -0
  105. data/test/dummy/tmp/cache/assets/test/sprockets/680381170dc160e358fc28076ea6886c +0 -0
  106. data/test/dummy/tmp/cache/assets/test/sprockets/6e4d5b32cc444226f6597198994ccd5e +0 -0
  107. data/test/dummy/tmp/cache/assets/test/sprockets/8aa4c7aabff23c8089d41e9e54193483 +0 -0
  108. data/test/dummy/tmp/cache/assets/test/sprockets/b2401118729720034b6f3eda0b4c5025 +0 -0
  109. data/test/dummy/tmp/cache/assets/test/sprockets/d6b85d8b0b5c569388b89e56e9f6fed7 +0 -0
  110. data/test/dummy/tmp/cache/assets/test/sprockets/d982412def520c434e2240eae6d29cf2 +0 -0
  111. data/test/dummy/tmp/cache/assets/test/sprockets/df048a8b0897b9c04acdf59c8f95b18f +0 -0
  112. data/test/web_console/exception_extention_test.rb +0 -16
@@ -1,16 +0,0 @@
1
- require 'test_helper'
2
-
3
- class ExceptionExtensionTest < ActiveSupport::TestCase
4
- class TestError < StandardError
5
- end
6
-
7
- test 'should store binding trace if binding_of_caller is available' do
8
- begin
9
- test = "Test"
10
- raise TestError
11
- rescue TestError => e
12
- assert e.__web_console_bindings_stack.length > 0
13
- assert e.__web_console_bindings_stack[0].eval("test") == "Test"
14
- end
15
- end
16
- end