web-console 1.0.4 → 2.0.0.beta1
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.
- checksums.yaml +4 -4
- data/README.markdown +26 -247
- data/lib/action_dispatch/debug_exceptions.rb +115 -0
- data/lib/action_dispatch/exception_wrapper.rb +15 -0
- data/lib/action_dispatch/templates/rescues/_request_and_response.html.erb +34 -0
- data/lib/action_dispatch/templates/rescues/_request_and_response.text.erb +23 -0
- data/lib/action_dispatch/templates/rescues/_source.erb +27 -0
- data/lib/action_dispatch/templates/rescues/_trace.html.erb +76 -0
- data/lib/action_dispatch/templates/rescues/_trace.text.erb +15 -0
- data/lib/action_dispatch/templates/rescues/_web_console.html.erb +382 -0
- data/lib/action_dispatch/templates/rescues/diagnostics.html.erb +18 -0
- data/lib/action_dispatch/templates/rescues/diagnostics.text.erb +9 -0
- data/lib/action_dispatch/templates/rescues/layout.erb +162 -0
- data/lib/action_dispatch/templates/rescues/missing_template.html.erb +7 -0
- data/lib/action_dispatch/templates/rescues/missing_template.text.erb +3 -0
- data/lib/action_dispatch/templates/rescues/routing_error.html.erb +30 -0
- data/lib/action_dispatch/templates/rescues/routing_error.text.erb +11 -0
- data/lib/action_dispatch/templates/rescues/template_error.html.erb +22 -0
- data/lib/action_dispatch/templates/rescues/template_error.text.erb +8 -0
- data/lib/action_dispatch/templates/rescues/unknown_action.html.erb +6 -0
- data/lib/action_dispatch/templates/rescues/unknown_action.text.erb +3 -0
- data/lib/web_console.rb +17 -7
- data/lib/web_console/exception_extension.rb +22 -0
- data/lib/web_console/railtie.rb +15 -0
- data/lib/web_console/repl.rb +24 -0
- data/lib/web_console/repl_session.rb +90 -0
- data/lib/web_console/version.rb +1 -1
- data/lib/web_console/view_helpers.rb +21 -0
- data/test/action_pack/exception_wrapper_test.rb +26 -0
- data/test/dummy/app/controllers/exception_test_controller.rb +11 -0
- data/test/dummy/app/controllers/helper_test_controller.rb +5 -0
- data/test/dummy/app/views/helper_test/index.html.erb +220 -0
- data/test/dummy/app/views/layouts/application.html.erb +2 -0
- data/test/dummy/config/application.rb +0 -34
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/log/development.log +61270 -0
- data/test/dummy/log/test.log +3917 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/038461854af2e8bccdb29768efd4768f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0ec396634a5f6808b026257fd107c355 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/127a54171eea8d294e4673599861787d +0 -0
- data/{app/assets/stylesheets/web_console/application.css → test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/17c571144b4e44da39bddb2d2c412414 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1cb77d8cf661ccbc9de08f347c89b9f1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/204edd12a29660722d4e0d8de9bd6652 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2b96b037f3dfeccfe27113eb95b06ea1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2c853768baf811357d81d41bdfd05dcf +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/314d48e543146f617c4d3439a4d8d40d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/34f21019a876722b8c24a6da4f0ef50b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/{vendor/assets/javascripts/term.js → test/dummy/tmp/cache/assets/development/sprockets/36341e42f23669574fa1027d0958ff3e} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/44117154e909436e7eeaf10cdb18d2b4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/496864a905d53afd8e176f29500f96a8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/55b7b76605fdffe31d737d4ac1f1ef7b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5ac98782fe3dfd0a766f75ce1801f0a0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6088d6f344b38303cc8028057d69e0f9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/676dcf9b2d01b9dc7bd3183d8da88463 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/680381170dc160e358fc28076ea6886c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6ad7acc9a22fe2a67ec24a1fc866c20e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6bdb0d0c602e0e1bc304dc697e2cc6de +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6dc8d7aa69668fce85683aaad6615432 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6e4d5b32cc444226f6597198994ccd5e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/74db0ca5cb8c8c347c9131a3ff516748 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7999e525c88173c1beb785f002effc1d +0 -0
- data/{lib/assets/javascripts/web_console.js → test/dummy/tmp/cache/assets/development/sprockets/7a50a9e605754e99783de95715b976b0} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/806b0e33a2fe8e1245534345fa27c30a +0 -0
- data/{app/assets/javascripts/web_console/console_sessions.js → test/dummy/tmp/cache/assets/development/sprockets/8aa4c7aabff23c8089d41e9e54193483} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/90396626cba6cbec37e32038e6c54e76 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/976b28910aa72c90a3b30c6e940f51df +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/99e1bd7cbc437505bc8f07bc528c721c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aaccf2c9ae2add0863c9a49e0042a097 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ae4677d24a79d9411f2fced5011d5807 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b2401118729720034b6f3eda0b4c5025 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c649837df826fc310cb80f1adafd6b8d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cac185d59612fae451a12df3fc21bb51 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cb0065359d3b5b296f71d673f4b276e9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cee8c6b09c33d2b276753e959712724e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d1f6e06bc2f112c4ec3a4c3f68351878 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d20d83fd7ffa378b1b2b901786d640f3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d38c7c3aa1e72b55769ccb3607641ef4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d6b85d8b0b5c569388b89e56e9f6fed7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d982412def520c434e2240eae6d29cf2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/df048a8b0897b9c04acdf59c8f95b18f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/df600f50f002512c95d93bcfbab891ed +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e6d6b8bde546349764be7b44ffcf5807 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/eb25265794d2f7afd1684779d84efdac +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ee8826b12b7d9bfd717df950b58f82ab +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ef9824789c6ed3483590e0564a12e1d1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fc7201c6cbef32453aa4175c520c8eae +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/17c571144b4e44da39bddb2d2c412414 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/36341e42f23669574fa1027d0958ff3e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/55b7b76605fdffe31d737d4ac1f1ef7b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/5ac98782fe3dfd0a766f75ce1801f0a0 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/680381170dc160e358fc28076ea6886c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6ad7acc9a22fe2a67ec24a1fc866c20e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6e4d5b32cc444226f6597198994ccd5e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/7a50a9e605754e99783de95715b976b0 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8aa4c7aabff23c8089d41e9e54193483 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b2401118729720034b6f3eda0b4c5025 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cb0065359d3b5b296f71d673f4b276e9 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d1f6e06bc2f112c4ec3a4c3f68351878 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d6b85d8b0b5c569388b89e56e9f6fed7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d982412def520c434e2240eae6d29cf2 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/df048a8b0897b9c04acdf59c8f95b18f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e6d6b8bde546349764be7b44ffcf5807 +0 -0
- data/test/web_console/exception_extention_test.rb +16 -0
- data/test/web_console/repl_session_test.rb +32 -0
- data/test/web_console/repl_test.rb +26 -0
- metadata +191 -58
- data/app/assets/javascripts/web_console/application.js +0 -1
- data/app/assets/stylesheets/web_console/console_sessions.css.erb +0 -6
- data/app/controllers/web_console/application_controller.rb +0 -13
- data/app/controllers/web_console/console_sessions_controller.rb +0 -43
- data/app/helpers/web_console/application_helper.rb +0 -4
- data/app/helpers/web_console/console_session_helper.rb +0 -4
- data/app/models/web_console/console_session.rb +0 -96
- data/app/views/layouts/web_console/application.html.erb +0 -14
- data/app/views/web_console/console_sessions/index.html.erb +0 -15
- data/config/routes.rb +0 -11
- data/lib/assets/javascripts/web-console.js +0 -1
- data/lib/web_console/colors.rb +0 -87
- data/lib/web_console/colors/light.rb +0 -24
- data/lib/web_console/colors/monokai.rb +0 -24
- data/lib/web_console/colors/solarized.rb +0 -47
- data/lib/web_console/colors/tango.rb +0 -24
- data/lib/web_console/colors/xterm.rb +0 -24
- data/lib/web_console/engine.rb +0 -77
- data/lib/web_console/slave.rb +0 -139
- data/test/controllers/web_console/console_sessions_controller_test.rb +0 -95
- data/test/helpers/web_console/console_session_helper_test.rb +0 -6
- data/test/models/console_session_test.rb +0 -58
- data/test/web_console/colors_test.rb +0 -58
- data/test/web_console/engine_test.rb +0 -136
- data/test/web_console/slave_test.rb +0 -71
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,16 @@
|
|
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
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module WebConsole
|
4
|
+
class REPLSessionTest < ActionView::TestCase
|
5
|
+
setup do
|
6
|
+
WebConsole::REPLSession::INMEMORY_STORAGE.clear
|
7
|
+
@model1 = @model = WebConsole::REPLSession.new binding: TOPLEVEL_BINDING
|
8
|
+
@model2 = WebConsole::REPLSession.new binding: TOPLEVEL_BINDING
|
9
|
+
end
|
10
|
+
|
11
|
+
test 'raises WebConsole::REPLSession::NotFound on not found sessions' do
|
12
|
+
assert_raises(WebConsole::REPLSession::NotFound) { WebConsole::REPLSession.find(-1) }
|
13
|
+
end
|
14
|
+
|
15
|
+
test 'find coerces ids' do
|
16
|
+
assert_equal @model.save, WebConsole::REPLSession.find("#{@model.id}")
|
17
|
+
end
|
18
|
+
|
19
|
+
test 'not found exceptions are JSON serializable' do
|
20
|
+
exception = assert_raises(WebConsole::REPLSession::NotFound) { WebConsole::REPLSession.find(-1) }
|
21
|
+
assert_equal '{"error":"Session unavailable"}', exception.to_json
|
22
|
+
end
|
23
|
+
|
24
|
+
test 'create gives already persisted models' do
|
25
|
+
assert WebConsole::REPLSession.create(binding: TOPLEVEL_BINDING).persisted?
|
26
|
+
end
|
27
|
+
|
28
|
+
test 'no gives not persisted models' do
|
29
|
+
assert_not WebConsole::REPLSession.new(binding: TOPLEVEL_BINDING).persisted?
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class REPLTest < ActiveSupport::TestCase
|
4
|
+
setup do
|
5
|
+
@repl1 = @repl = WebConsole::REPL.new
|
6
|
+
@repl2 = WebConsole::REPL.new
|
7
|
+
end
|
8
|
+
|
9
|
+
test 'sending input returns the result as output' do
|
10
|
+
assert_equal "=> 42\n", @repl.send_input('foo = 42')
|
11
|
+
end
|
12
|
+
|
13
|
+
test 'preserves the session in the binding' do
|
14
|
+
assert_equal "=> 42\n", @repl.send_input('foo = 42')
|
15
|
+
assert_equal "=> 50\n", @repl.send_input('foo + 8')
|
16
|
+
end
|
17
|
+
|
18
|
+
test 'session preservation requires same bindings' do
|
19
|
+
assert_equal "=> 42\n", @repl1.send_input('foo = 42')
|
20
|
+
assert_equal "=> 42\n", @repl2.send_input('foo')
|
21
|
+
end
|
22
|
+
|
23
|
+
test 'prompt is present' do
|
24
|
+
assert_not_nil @repl.prompt
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,132 +1,155 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web-console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genadi Samokovarov
|
8
8
|
- Guillermo Iguaran
|
9
|
+
- Ryan Dao
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2014-08-17 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: railties
|
16
17
|
requirement: !ruby/object:Gem::Requirement
|
17
18
|
requirements:
|
18
|
-
- - ~>
|
19
|
+
- - "~>"
|
19
20
|
- !ruby/object:Gem::Version
|
20
21
|
version: '4.0'
|
21
22
|
type: :runtime
|
22
23
|
prerelease: false
|
23
24
|
version_requirements: !ruby/object:Gem::Requirement
|
24
25
|
requirements:
|
25
|
-
- - ~>
|
26
|
+
- - "~>"
|
26
27
|
- !ruby/object:Gem::Version
|
27
28
|
version: '4.0'
|
28
29
|
- !ruby/object:Gem::Dependency
|
29
30
|
name: activemodel
|
30
31
|
requirement: !ruby/object:Gem::Requirement
|
31
32
|
requirements:
|
32
|
-
- - ~>
|
33
|
+
- - "~>"
|
33
34
|
- !ruby/object:Gem::Version
|
34
35
|
version: '4.0'
|
35
36
|
type: :runtime
|
36
37
|
prerelease: false
|
37
38
|
version_requirements: !ruby/object:Gem::Requirement
|
38
39
|
requirements:
|
39
|
-
- - ~>
|
40
|
+
- - "~>"
|
40
41
|
- !ruby/object:Gem::Version
|
41
42
|
version: '4.0'
|
42
43
|
- !ruby/object:Gem::Dependency
|
43
44
|
name: sprockets-rails
|
44
45
|
requirement: !ruby/object:Gem::Requirement
|
45
46
|
requirements:
|
46
|
-
- - ~>
|
47
|
+
- - "~>"
|
47
48
|
- !ruby/object:Gem::Version
|
48
49
|
version: '2.0'
|
49
50
|
type: :runtime
|
50
51
|
prerelease: false
|
51
52
|
version_requirements: !ruby/object:Gem::Requirement
|
52
53
|
requirements:
|
53
|
-
- - ~>
|
54
|
+
- - "~>"
|
54
55
|
- !ruby/object:Gem::Version
|
55
56
|
version: '2.0'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: binding_of_caller
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
type: :runtime
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
56
71
|
- !ruby/object:Gem::Dependency
|
57
72
|
name: actionmailer
|
58
73
|
requirement: !ruby/object:Gem::Requirement
|
59
74
|
requirements:
|
60
|
-
- - ~>
|
75
|
+
- - "~>"
|
61
76
|
- !ruby/object:Gem::Version
|
62
77
|
version: '4.0'
|
63
78
|
type: :development
|
64
79
|
prerelease: false
|
65
80
|
version_requirements: !ruby/object:Gem::Requirement
|
66
81
|
requirements:
|
67
|
-
- - ~>
|
82
|
+
- - "~>"
|
68
83
|
- !ruby/object:Gem::Version
|
69
84
|
version: '4.0'
|
70
85
|
- !ruby/object:Gem::Dependency
|
71
86
|
name: activerecord
|
72
87
|
requirement: !ruby/object:Gem::Requirement
|
73
88
|
requirements:
|
74
|
-
- - ~>
|
89
|
+
- - "~>"
|
75
90
|
- !ruby/object:Gem::Version
|
76
91
|
version: '4.0'
|
77
92
|
type: :development
|
78
93
|
prerelease: false
|
79
94
|
version_requirements: !ruby/object:Gem::Requirement
|
80
95
|
requirements:
|
81
|
-
- - ~>
|
96
|
+
- - "~>"
|
82
97
|
- !ruby/object:Gem::Version
|
83
98
|
version: '4.0'
|
84
99
|
description:
|
85
100
|
email:
|
86
101
|
- gsamokovarov@gmail.com
|
87
102
|
- guilleiguaran@gmail.com
|
103
|
+
- daoduyducduong@gmail.com
|
88
104
|
executables: []
|
89
105
|
extensions: []
|
90
106
|
extra_rdoc_files: []
|
91
107
|
files:
|
92
|
-
- app/assets/javascripts/web_console/application.js
|
93
|
-
- app/assets/javascripts/web_console/console_sessions.js
|
94
|
-
- app/assets/stylesheets/web_console/application.css
|
95
|
-
- app/assets/stylesheets/web_console/console_sessions.css.erb
|
96
|
-
- app/controllers/web_console/application_controller.rb
|
97
|
-
- app/controllers/web_console/console_sessions_controller.rb
|
98
|
-
- app/helpers/web_console/application_helper.rb
|
99
|
-
- app/helpers/web_console/console_session_helper.rb
|
100
|
-
- app/models/web_console/console_session.rb
|
101
|
-
- app/views/layouts/web_console/application.html.erb
|
102
|
-
- app/views/web_console/console_sessions/index.html.erb
|
103
|
-
- config/routes.rb
|
104
|
-
- lib/assets/javascripts/web-console.js
|
105
|
-
- lib/assets/javascripts/web_console.js
|
106
|
-
- lib/web-console.rb
|
107
|
-
- lib/web_console/colors/light.rb
|
108
|
-
- lib/web_console/colors/monokai.rb
|
109
|
-
- lib/web_console/colors/solarized.rb
|
110
|
-
- lib/web_console/colors/tango.rb
|
111
|
-
- lib/web_console/colors/xterm.rb
|
112
|
-
- lib/web_console/colors.rb
|
113
|
-
- lib/web_console/engine.rb
|
114
|
-
- lib/web_console/slave.rb
|
115
|
-
- lib/web_console/version.rb
|
116
|
-
- lib/web_console.rb
|
117
|
-
- vendor/assets/javascripts/term.js
|
118
108
|
- MIT-LICENSE
|
119
|
-
- Rakefile
|
120
109
|
- README.markdown
|
121
|
-
-
|
110
|
+
- Rakefile
|
111
|
+
- lib/action_dispatch/debug_exceptions.rb
|
112
|
+
- lib/action_dispatch/exception_wrapper.rb
|
113
|
+
- lib/action_dispatch/templates/rescues/_request_and_response.html.erb
|
114
|
+
- lib/action_dispatch/templates/rescues/_request_and_response.text.erb
|
115
|
+
- lib/action_dispatch/templates/rescues/_source.erb
|
116
|
+
- lib/action_dispatch/templates/rescues/_trace.html.erb
|
117
|
+
- lib/action_dispatch/templates/rescues/_trace.text.erb
|
118
|
+
- lib/action_dispatch/templates/rescues/_web_console.html.erb
|
119
|
+
- lib/action_dispatch/templates/rescues/diagnostics.html.erb
|
120
|
+
- lib/action_dispatch/templates/rescues/diagnostics.text.erb
|
121
|
+
- lib/action_dispatch/templates/rescues/layout.erb
|
122
|
+
- lib/action_dispatch/templates/rescues/missing_template.html.erb
|
123
|
+
- lib/action_dispatch/templates/rescues/missing_template.text.erb
|
124
|
+
- lib/action_dispatch/templates/rescues/routing_error.html.erb
|
125
|
+
- lib/action_dispatch/templates/rescues/routing_error.text.erb
|
126
|
+
- lib/action_dispatch/templates/rescues/template_error.html.erb
|
127
|
+
- lib/action_dispatch/templates/rescues/template_error.text.erb
|
128
|
+
- lib/action_dispatch/templates/rescues/unknown_action.html.erb
|
129
|
+
- lib/action_dispatch/templates/rescues/unknown_action.text.erb
|
130
|
+
- lib/web-console.rb
|
131
|
+
- lib/web_console.rb
|
132
|
+
- lib/web_console/exception_extension.rb
|
133
|
+
- lib/web_console/railtie.rb
|
134
|
+
- lib/web_console/repl.rb
|
135
|
+
- lib/web_console/repl_session.rb
|
136
|
+
- lib/web_console/version.rb
|
137
|
+
- lib/web_console/view_helpers.rb
|
138
|
+
- test/action_pack/exception_wrapper_test.rb
|
139
|
+
- test/dummy/README.rdoc
|
140
|
+
- test/dummy/Rakefile
|
122
141
|
- test/dummy/app/assets/javascripts/application.js
|
123
142
|
- test/dummy/app/assets/stylesheets/application.css
|
124
143
|
- test/dummy/app/controllers/application_controller.rb
|
144
|
+
- test/dummy/app/controllers/exception_test_controller.rb
|
145
|
+
- test/dummy/app/controllers/helper_test_controller.rb
|
125
146
|
- test/dummy/app/helpers/application_helper.rb
|
147
|
+
- test/dummy/app/views/helper_test/index.html.erb
|
126
148
|
- test/dummy/app/views/layouts/application.html.erb
|
127
149
|
- test/dummy/bin/bundle
|
128
150
|
- test/dummy/bin/rails
|
129
151
|
- test/dummy/bin/rake
|
152
|
+
- test/dummy/config.ru
|
130
153
|
- test/dummy/config/application.rb
|
131
154
|
- test/dummy/config/boot.rb
|
132
155
|
- test/dummy/config/database.yml
|
@@ -143,16 +166,70 @@ files:
|
|
143
166
|
- test/dummy/config/initializers/wrap_parameters.rb
|
144
167
|
- test/dummy/config/locales/en.yml
|
145
168
|
- test/dummy/config/routes.rb
|
146
|
-
- test/dummy/
|
169
|
+
- test/dummy/db/development.sqlite3
|
147
170
|
- test/dummy/db/schema.rb
|
148
171
|
- test/dummy/db/test.sqlite3
|
172
|
+
- test/dummy/log/development.log
|
149
173
|
- test/dummy/log/test.log
|
150
174
|
- test/dummy/public/404.html
|
151
175
|
- test/dummy/public/422.html
|
152
176
|
- test/dummy/public/500.html
|
153
177
|
- test/dummy/public/favicon.ico
|
154
|
-
- test/dummy/
|
155
|
-
- test/dummy/
|
178
|
+
- test/dummy/tmp/cache/assets/development/sprockets/038461854af2e8bccdb29768efd4768f
|
179
|
+
- test/dummy/tmp/cache/assets/development/sprockets/0ec396634a5f6808b026257fd107c355
|
180
|
+
- test/dummy/tmp/cache/assets/development/sprockets/127a54171eea8d294e4673599861787d
|
181
|
+
- test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
182
|
+
- test/dummy/tmp/cache/assets/development/sprockets/17c571144b4e44da39bddb2d2c412414
|
183
|
+
- test/dummy/tmp/cache/assets/development/sprockets/1cb77d8cf661ccbc9de08f347c89b9f1
|
184
|
+
- test/dummy/tmp/cache/assets/development/sprockets/204edd12a29660722d4e0d8de9bd6652
|
185
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2b96b037f3dfeccfe27113eb95b06ea1
|
186
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2c853768baf811357d81d41bdfd05dcf
|
187
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
188
|
+
- test/dummy/tmp/cache/assets/development/sprockets/314d48e543146f617c4d3439a4d8d40d
|
189
|
+
- test/dummy/tmp/cache/assets/development/sprockets/34f21019a876722b8c24a6da4f0ef50b
|
190
|
+
- test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
191
|
+
- test/dummy/tmp/cache/assets/development/sprockets/36341e42f23669574fa1027d0958ff3e
|
192
|
+
- test/dummy/tmp/cache/assets/development/sprockets/44117154e909436e7eeaf10cdb18d2b4
|
193
|
+
- test/dummy/tmp/cache/assets/development/sprockets/496864a905d53afd8e176f29500f96a8
|
194
|
+
- test/dummy/tmp/cache/assets/development/sprockets/55b7b76605fdffe31d737d4ac1f1ef7b
|
195
|
+
- test/dummy/tmp/cache/assets/development/sprockets/5ac98782fe3dfd0a766f75ce1801f0a0
|
196
|
+
- test/dummy/tmp/cache/assets/development/sprockets/6088d6f344b38303cc8028057d69e0f9
|
197
|
+
- test/dummy/tmp/cache/assets/development/sprockets/676dcf9b2d01b9dc7bd3183d8da88463
|
198
|
+
- test/dummy/tmp/cache/assets/development/sprockets/680381170dc160e358fc28076ea6886c
|
199
|
+
- test/dummy/tmp/cache/assets/development/sprockets/6ad7acc9a22fe2a67ec24a1fc866c20e
|
200
|
+
- test/dummy/tmp/cache/assets/development/sprockets/6bdb0d0c602e0e1bc304dc697e2cc6de
|
201
|
+
- test/dummy/tmp/cache/assets/development/sprockets/6dc8d7aa69668fce85683aaad6615432
|
202
|
+
- test/dummy/tmp/cache/assets/development/sprockets/6e4d5b32cc444226f6597198994ccd5e
|
203
|
+
- test/dummy/tmp/cache/assets/development/sprockets/74db0ca5cb8c8c347c9131a3ff516748
|
204
|
+
- test/dummy/tmp/cache/assets/development/sprockets/7999e525c88173c1beb785f002effc1d
|
205
|
+
- test/dummy/tmp/cache/assets/development/sprockets/7a50a9e605754e99783de95715b976b0
|
206
|
+
- test/dummy/tmp/cache/assets/development/sprockets/806b0e33a2fe8e1245534345fa27c30a
|
207
|
+
- test/dummy/tmp/cache/assets/development/sprockets/8aa4c7aabff23c8089d41e9e54193483
|
208
|
+
- test/dummy/tmp/cache/assets/development/sprockets/90396626cba6cbec37e32038e6c54e76
|
209
|
+
- test/dummy/tmp/cache/assets/development/sprockets/976b28910aa72c90a3b30c6e940f51df
|
210
|
+
- test/dummy/tmp/cache/assets/development/sprockets/99e1bd7cbc437505bc8f07bc528c721c
|
211
|
+
- test/dummy/tmp/cache/assets/development/sprockets/aaccf2c9ae2add0863c9a49e0042a097
|
212
|
+
- test/dummy/tmp/cache/assets/development/sprockets/ae4677d24a79d9411f2fced5011d5807
|
213
|
+
- test/dummy/tmp/cache/assets/development/sprockets/b2401118729720034b6f3eda0b4c5025
|
214
|
+
- test/dummy/tmp/cache/assets/development/sprockets/c649837df826fc310cb80f1adafd6b8d
|
215
|
+
- test/dummy/tmp/cache/assets/development/sprockets/cac185d59612fae451a12df3fc21bb51
|
216
|
+
- test/dummy/tmp/cache/assets/development/sprockets/cb0065359d3b5b296f71d673f4b276e9
|
217
|
+
- test/dummy/tmp/cache/assets/development/sprockets/cee8c6b09c33d2b276753e959712724e
|
218
|
+
- test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
219
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d1f6e06bc2f112c4ec3a4c3f68351878
|
220
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d20d83fd7ffa378b1b2b901786d640f3
|
221
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d38c7c3aa1e72b55769ccb3607641ef4
|
222
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d6b85d8b0b5c569388b89e56e9f6fed7
|
223
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
224
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d982412def520c434e2240eae6d29cf2
|
225
|
+
- test/dummy/tmp/cache/assets/development/sprockets/df048a8b0897b9c04acdf59c8f95b18f
|
226
|
+
- test/dummy/tmp/cache/assets/development/sprockets/df600f50f002512c95d93bcfbab891ed
|
227
|
+
- test/dummy/tmp/cache/assets/development/sprockets/e6d6b8bde546349764be7b44ffcf5807
|
228
|
+
- test/dummy/tmp/cache/assets/development/sprockets/eb25265794d2f7afd1684779d84efdac
|
229
|
+
- test/dummy/tmp/cache/assets/development/sprockets/ee8826b12b7d9bfd717df950b58f82ab
|
230
|
+
- test/dummy/tmp/cache/assets/development/sprockets/ef9824789c6ed3483590e0564a12e1d1
|
231
|
+
- test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
232
|
+
- test/dummy/tmp/cache/assets/development/sprockets/fc7201c6cbef32453aa4175c520c8eae
|
156
233
|
- test/dummy/tmp/cache/assets/test/sprockets/17c571144b4e44da39bddb2d2c412414
|
157
234
|
- test/dummy/tmp/cache/assets/test/sprockets/36341e42f23669574fa1027d0958ff3e
|
158
235
|
- test/dummy/tmp/cache/assets/test/sprockets/55b7b76605fdffe31d737d4ac1f1ef7b
|
@@ -169,12 +246,10 @@ files:
|
|
169
246
|
- test/dummy/tmp/cache/assets/test/sprockets/d982412def520c434e2240eae6d29cf2
|
170
247
|
- test/dummy/tmp/cache/assets/test/sprockets/df048a8b0897b9c04acdf59c8f95b18f
|
171
248
|
- test/dummy/tmp/cache/assets/test/sprockets/e6d6b8bde546349764be7b44ffcf5807
|
172
|
-
- test/helpers/web_console/console_session_helper_test.rb
|
173
|
-
- test/models/console_session_test.rb
|
174
249
|
- test/test_helper.rb
|
175
|
-
- test/web_console/
|
176
|
-
- test/web_console/
|
177
|
-
- test/web_console/
|
250
|
+
- test/web_console/exception_extention_test.rb
|
251
|
+
- test/web_console/repl_session_test.rb
|
252
|
+
- test/web_console/repl_test.rb
|
178
253
|
homepage: https://github.com/rails/web-console
|
179
254
|
licenses:
|
180
255
|
- MIT
|
@@ -185,26 +260,29 @@ require_paths:
|
|
185
260
|
- lib
|
186
261
|
required_ruby_version: !ruby/object:Gem::Requirement
|
187
262
|
requirements:
|
188
|
-
- -
|
263
|
+
- - ">="
|
189
264
|
- !ruby/object:Gem::Version
|
190
265
|
version: '0'
|
191
266
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
267
|
requirements:
|
193
|
-
- -
|
268
|
+
- - ">"
|
194
269
|
- !ruby/object:Gem::Version
|
195
|
-
version:
|
270
|
+
version: 1.3.1
|
196
271
|
requirements: []
|
197
272
|
rubyforge_project:
|
198
|
-
rubygems_version: 2.
|
273
|
+
rubygems_version: 2.2.2
|
199
274
|
signing_key:
|
200
275
|
specification_version: 4
|
201
276
|
summary: Rails Console on the Browser.
|
202
277
|
test_files:
|
203
|
-
- test/
|
278
|
+
- test/action_pack/exception_wrapper_test.rb
|
204
279
|
- test/dummy/app/assets/javascripts/application.js
|
205
280
|
- test/dummy/app/assets/stylesheets/application.css
|
206
281
|
- test/dummy/app/controllers/application_controller.rb
|
282
|
+
- test/dummy/app/controllers/exception_test_controller.rb
|
283
|
+
- test/dummy/app/controllers/helper_test_controller.rb
|
207
284
|
- test/dummy/app/helpers/application_helper.rb
|
285
|
+
- test/dummy/app/views/helper_test/index.html.erb
|
208
286
|
- test/dummy/app/views/layouts/application.html.erb
|
209
287
|
- test/dummy/bin/bundle
|
210
288
|
- test/dummy/bin/rails
|
@@ -226,8 +304,10 @@ test_files:
|
|
226
304
|
- test/dummy/config/locales/en.yml
|
227
305
|
- test/dummy/config/routes.rb
|
228
306
|
- test/dummy/config.ru
|
307
|
+
- test/dummy/db/development.sqlite3
|
229
308
|
- test/dummy/db/schema.rb
|
230
309
|
- test/dummy/db/test.sqlite3
|
310
|
+
- test/dummy/log/development.log
|
231
311
|
- test/dummy/log/test.log
|
232
312
|
- test/dummy/public/404.html
|
233
313
|
- test/dummy/public/422.html
|
@@ -235,6 +315,61 @@ test_files:
|
|
235
315
|
- test/dummy/public/favicon.ico
|
236
316
|
- test/dummy/Rakefile
|
237
317
|
- test/dummy/README.rdoc
|
318
|
+
- test/dummy/tmp/cache/assets/development/sprockets/038461854af2e8bccdb29768efd4768f
|
319
|
+
- test/dummy/tmp/cache/assets/development/sprockets/0ec396634a5f6808b026257fd107c355
|
320
|
+
- test/dummy/tmp/cache/assets/development/sprockets/127a54171eea8d294e4673599861787d
|
321
|
+
- test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
322
|
+
- test/dummy/tmp/cache/assets/development/sprockets/17c571144b4e44da39bddb2d2c412414
|
323
|
+
- test/dummy/tmp/cache/assets/development/sprockets/1cb77d8cf661ccbc9de08f347c89b9f1
|
324
|
+
- test/dummy/tmp/cache/assets/development/sprockets/204edd12a29660722d4e0d8de9bd6652
|
325
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2b96b037f3dfeccfe27113eb95b06ea1
|
326
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2c853768baf811357d81d41bdfd05dcf
|
327
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
328
|
+
- test/dummy/tmp/cache/assets/development/sprockets/314d48e543146f617c4d3439a4d8d40d
|
329
|
+
- test/dummy/tmp/cache/assets/development/sprockets/34f21019a876722b8c24a6da4f0ef50b
|
330
|
+
- test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
331
|
+
- test/dummy/tmp/cache/assets/development/sprockets/36341e42f23669574fa1027d0958ff3e
|
332
|
+
- test/dummy/tmp/cache/assets/development/sprockets/44117154e909436e7eeaf10cdb18d2b4
|
333
|
+
- test/dummy/tmp/cache/assets/development/sprockets/496864a905d53afd8e176f29500f96a8
|
334
|
+
- test/dummy/tmp/cache/assets/development/sprockets/55b7b76605fdffe31d737d4ac1f1ef7b
|
335
|
+
- test/dummy/tmp/cache/assets/development/sprockets/5ac98782fe3dfd0a766f75ce1801f0a0
|
336
|
+
- test/dummy/tmp/cache/assets/development/sprockets/6088d6f344b38303cc8028057d69e0f9
|
337
|
+
- test/dummy/tmp/cache/assets/development/sprockets/676dcf9b2d01b9dc7bd3183d8da88463
|
338
|
+
- test/dummy/tmp/cache/assets/development/sprockets/680381170dc160e358fc28076ea6886c
|
339
|
+
- test/dummy/tmp/cache/assets/development/sprockets/6ad7acc9a22fe2a67ec24a1fc866c20e
|
340
|
+
- test/dummy/tmp/cache/assets/development/sprockets/6bdb0d0c602e0e1bc304dc697e2cc6de
|
341
|
+
- test/dummy/tmp/cache/assets/development/sprockets/6dc8d7aa69668fce85683aaad6615432
|
342
|
+
- test/dummy/tmp/cache/assets/development/sprockets/6e4d5b32cc444226f6597198994ccd5e
|
343
|
+
- test/dummy/tmp/cache/assets/development/sprockets/74db0ca5cb8c8c347c9131a3ff516748
|
344
|
+
- test/dummy/tmp/cache/assets/development/sprockets/7999e525c88173c1beb785f002effc1d
|
345
|
+
- test/dummy/tmp/cache/assets/development/sprockets/7a50a9e605754e99783de95715b976b0
|
346
|
+
- test/dummy/tmp/cache/assets/development/sprockets/806b0e33a2fe8e1245534345fa27c30a
|
347
|
+
- test/dummy/tmp/cache/assets/development/sprockets/8aa4c7aabff23c8089d41e9e54193483
|
348
|
+
- test/dummy/tmp/cache/assets/development/sprockets/90396626cba6cbec37e32038e6c54e76
|
349
|
+
- test/dummy/tmp/cache/assets/development/sprockets/976b28910aa72c90a3b30c6e940f51df
|
350
|
+
- test/dummy/tmp/cache/assets/development/sprockets/99e1bd7cbc437505bc8f07bc528c721c
|
351
|
+
- test/dummy/tmp/cache/assets/development/sprockets/aaccf2c9ae2add0863c9a49e0042a097
|
352
|
+
- test/dummy/tmp/cache/assets/development/sprockets/ae4677d24a79d9411f2fced5011d5807
|
353
|
+
- test/dummy/tmp/cache/assets/development/sprockets/b2401118729720034b6f3eda0b4c5025
|
354
|
+
- test/dummy/tmp/cache/assets/development/sprockets/c649837df826fc310cb80f1adafd6b8d
|
355
|
+
- test/dummy/tmp/cache/assets/development/sprockets/cac185d59612fae451a12df3fc21bb51
|
356
|
+
- test/dummy/tmp/cache/assets/development/sprockets/cb0065359d3b5b296f71d673f4b276e9
|
357
|
+
- test/dummy/tmp/cache/assets/development/sprockets/cee8c6b09c33d2b276753e959712724e
|
358
|
+
- test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
359
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d1f6e06bc2f112c4ec3a4c3f68351878
|
360
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d20d83fd7ffa378b1b2b901786d640f3
|
361
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d38c7c3aa1e72b55769ccb3607641ef4
|
362
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d6b85d8b0b5c569388b89e56e9f6fed7
|
363
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
364
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d982412def520c434e2240eae6d29cf2
|
365
|
+
- test/dummy/tmp/cache/assets/development/sprockets/df048a8b0897b9c04acdf59c8f95b18f
|
366
|
+
- test/dummy/tmp/cache/assets/development/sprockets/df600f50f002512c95d93bcfbab891ed
|
367
|
+
- test/dummy/tmp/cache/assets/development/sprockets/e6d6b8bde546349764be7b44ffcf5807
|
368
|
+
- test/dummy/tmp/cache/assets/development/sprockets/eb25265794d2f7afd1684779d84efdac
|
369
|
+
- test/dummy/tmp/cache/assets/development/sprockets/ee8826b12b7d9bfd717df950b58f82ab
|
370
|
+
- test/dummy/tmp/cache/assets/development/sprockets/ef9824789c6ed3483590e0564a12e1d1
|
371
|
+
- test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
372
|
+
- test/dummy/tmp/cache/assets/development/sprockets/fc7201c6cbef32453aa4175c520c8eae
|
238
373
|
- test/dummy/tmp/cache/assets/test/sprockets/17c571144b4e44da39bddb2d2c412414
|
239
374
|
- test/dummy/tmp/cache/assets/test/sprockets/36341e42f23669574fa1027d0958ff3e
|
240
375
|
- test/dummy/tmp/cache/assets/test/sprockets/55b7b76605fdffe31d737d4ac1f1ef7b
|
@@ -251,9 +386,7 @@ test_files:
|
|
251
386
|
- test/dummy/tmp/cache/assets/test/sprockets/d982412def520c434e2240eae6d29cf2
|
252
387
|
- test/dummy/tmp/cache/assets/test/sprockets/df048a8b0897b9c04acdf59c8f95b18f
|
253
388
|
- test/dummy/tmp/cache/assets/test/sprockets/e6d6b8bde546349764be7b44ffcf5807
|
254
|
-
- test/helpers/web_console/console_session_helper_test.rb
|
255
|
-
- test/models/console_session_test.rb
|
256
389
|
- test/test_helper.rb
|
257
|
-
- test/web_console/
|
258
|
-
- test/web_console/
|
259
|
-
- test/web_console/
|
390
|
+
- test/web_console/exception_extention_test.rb
|
391
|
+
- test/web_console/repl_session_test.rb
|
392
|
+
- test/web_console/repl_test.rb
|