web-console-rails3 0.4.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +1 -1
- data/app/assets/javascripts/web_console/console_sessions.js +12 -17
- data/app/controllers/web_console/console_sessions_controller.rb +1 -1
- data/app/models/web_console/console_session.rb +22 -6
- data/lib/web_console/colors.rb +3 -2
- data/lib/web_console/colors/monokai.rb +24 -0
- data/lib/web_console/engine.rb.orig +3 -3
- data/lib/web_console/slave.rb +11 -2
- data/lib/web_console/version.rb +1 -1
- data/lib/web_console/version.rb.orig +7 -0
- data/test/controllers/web_console/console_sessions_controller_test.rb +20 -0
- data/test/dummy/config/application.rb +2 -0
- data/test/dummy/config/application.rb.orig +58 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +55293 -297
- data/test/dummy/log/test.log +3708 -16
- data/test/dummy/tmp/cache/assets/C9E/AD0/sprockets%2F4a42d8916f3fa47867445f696497a92c +0 -0
- data/test/dummy/tmp/cache/assets/{C5D/870/sprockets%2F9695d21699b362bcc13260e71b679474 → CA7/D50/sprockets%2Fd095151316fd43a3062157b72d7de7f2} +0 -0
- data/test/dummy/tmp/cache/assets/CA7/D70/sprockets%2F3e9e32bbc8c81a93002555265a36a852 +0 -0
- data/test/dummy/tmp/cache/assets/CAA/460/sprockets%2Ff71bd1e874400261bf4041d1955649ce +0 -0
- data/test/dummy/tmp/cache/assets/CBD/6E0/sprockets%2F3293dfc0984076f0e8371a9e7640f4a8 +0 -0
- data/test/dummy/tmp/cache/assets/CD0/FC0/sprockets%2Fbb2777627d42a216f3d9ced4322040b3 +0 -0
- data/test/dummy/tmp/cache/assets/CD5/450/sprockets%2Fe91b806f141515129b1ac8a8d0e58e31 +0 -0
- data/test/dummy/tmp/cache/assets/{CD0/9A0/sprockets%2F61b95b7833a131f56a2096a3d2ba0c94 → CFA/E30/sprockets%2F35be1d26565dc0310c29f1a5e2f62f10} +0 -0
- data/test/dummy/tmp/cache/assets/{C79/7C0/sprockets%2F831cb415f919c0a15d95e148020953f2 → D1D/FD0/sprockets%2Fa4a5ffe670666ce3d8d59179905201ef} +0 -0
- data/test/dummy/tmp/cache/assets/{CB7/870/sprockets%2F5358761e3329e2a4655ee7c0fd2609b5 → D21/6B0/sprockets%2F9e242803fe56d6305274ff7e6487deda} +0 -0
- data/test/dummy/tmp/cache/assets/D22/980/sprockets%2Fce6aa94ad2bc107104c0540f62c5128c +0 -0
- data/test/dummy/tmp/cache/assets/D29/380/sprockets%2F92f1a0450bc4bea3364a07be42b4f645 +0 -0
- data/test/dummy/tmp/cache/assets/D38/A00/sprockets%2F700155d5f77047ca613ee9c4d5c4cca3 +0 -0
- data/test/dummy/tmp/cache/assets/D3E/380/sprockets%2F434d98c8380bb9daf43810155aaf68ba +0 -0
- data/test/dummy/tmp/cache/assets/{D42/180/sprockets%2F4af57a79abba3d4790ba1e7157f41939 → D66/940/sprockets%2F6151175b6ad4f9bab0c7e2b508e7b70f} +0 -0
- data/test/dummy/tmp/cache/assets/D69/670/sprockets%2Fc6b4a05846fd1b98fe9252ecdd1601c0 +0 -0
- data/test/dummy/tmp/cache/assets/{D66/AE0/sprockets%2F25c91de251a8ab43652dc2ef55e2a29d → D69/710/sprockets%2Ff67078d4b979a58c97feede196f6b385} +0 -0
- data/test/dummy/tmp/cache/assets/D90/B30/sprockets%2Fe03fe93eb7fe888c9d21ee62816596ff +0 -0
- data/test/dummy/tmp/cache/assets/{C3D/0C0/sprockets%2Fb01666017530b122ba58894b59b1551b → D95/C40/sprockets%2F09cb0a274209abf0391cbfce6ee67b82} +0 -0
- data/test/dummy/tmp/cache/assets/D9B/A30/sprockets%2Fc3436b3fe5da7c2456f26e2ae36da6c5 +0 -0
- data/test/dummy/tmp/cache/assets/D9F/400/sprockets%2F7f60332f86073dc8ed80b4c2a9dfcbe1 +0 -0
- data/test/dummy/tmp/cache/assets/DAE/8C0/sprockets%2Fa9b8f7bc5ca2efe658a13d7f4609c729 +0 -0
- data/test/dummy/tmp/cache/assets/{DAC/A90/sprockets%2F2015f79881b518e9cdcdaf8dfb3e46c5 → DB3/0C0/sprockets%2F689fb998e2a7add3e00db88df254c87a} +0 -0
- data/test/dummy/tmp/cache/assets/{CDA/480/sprockets%2F26eb073018913d788d2ee3f5151eea04 → DD4/440/sprockets%2Fa33d646ac00d8bc87a4a496af6eed96f} +0 -0
- data/test/dummy/tmp/cache/assets/DDB/890/sprockets%2F5ed566ca9fafd1b82373ffea2a8d8681 +0 -0
- data/test/dummy/tmp/cache/assets/{DA9/F60/sprockets%2Fa95e444e8dca0e1a586dcef972b623f7 → DFC/780/sprockets%2F5cb5da4f4da73824ec22a7f9716cfabd} +0 -0
- data/test/dummy/tmp/cache/assets/E20/1B0/sprockets%2F93fcfe8f084edee9a55499a26def5d9c +0 -0
- data/test/dummy/tmp/cache/assets/E5A/C40/sprockets%2F164cfa0fd9eb1ec1acdfaa278c83e9c5 +0 -0
- data/test/models/console_session_test.rb +12 -6
- data/test/test_helper.rb +8 -0
- data/test/web_console/engine_test.rb +136 -0
- data/test/web_console/slave_test.rb +57 -39
- metadata +136 -108
- data/test/dummy/tmp/cache/assets/CE1/850/sprockets%2Fb962434bbb22f17db956b8091c975f30 +0 -0
- data/test/dummy/tmp/cache/assets/D0C/EE0/sprockets%2F3fdf5762c392175ad2cba21454e5b972 +0 -0
- data/test/dummy/tmp/cache/assets/D54/E60/sprockets%2F8abf0788cb7dc878ea82239456149bed +0 -0
- data/test/dummy/tmp/cache/assets/D5F/7E0/sprockets%2F26c1c2c6ba96ba84abf150e402d677c3 +0 -0
- data/test/dummy/tmp/cache/assets/D66/680/sprockets%2Fe0ba18d897f0c45f5e66b003c5ebd061 +0 -0
- data/test/dummy/tmp/cache/assets/DA7/470/sprockets%2F65bb61bf1edac19c0666e89b667d23ff +0 -0
- data/test/web_console_test.rb +0 -133
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
|
@@ -5,14 +5,14 @@ module WebConsole
|
|
5
5
|
include ActiveModel::Lint::Tests
|
6
6
|
|
7
7
|
setup do
|
8
|
-
PTY.stubs(:spawn).returns([
|
8
|
+
PTY.stubs(:spawn).returns([StringIO.new, StringIO.new, Random.rand(20000)])
|
9
9
|
ConsoleSession::INMEMORY_STORAGE.clear
|
10
10
|
@model1 = @model = ConsoleSession.new
|
11
11
|
@model2 = ConsoleSession.new
|
12
12
|
end
|
13
13
|
|
14
|
-
test 'raises ConsoleSession::
|
15
|
-
assert_raises(ConsoleSession::
|
14
|
+
test 'raises ConsoleSession::Unavailable on not found sessions' do
|
15
|
+
assert_raises(ConsoleSession::Unavailable) { ConsoleSession.find(-1) }
|
16
16
|
end
|
17
17
|
|
18
18
|
test 'find coerces ids' do
|
@@ -20,7 +20,7 @@ module WebConsole
|
|
20
20
|
end
|
21
21
|
|
22
22
|
test 'not found exceptions are json serializable' do
|
23
|
-
exception = assert_raises(ConsoleSession::
|
23
|
+
exception = assert_raises(ConsoleSession::Unavailable) { ConsoleSession.find(-1) }
|
24
24
|
assert_equal '{"error":"Session unavailable"}', exception.to_json
|
25
25
|
end
|
26
26
|
|
@@ -29,8 +29,14 @@ module WebConsole
|
|
29
29
|
slave_methods.each { |method| assert @model.respond_to?(method) }
|
30
30
|
end
|
31
31
|
|
32
|
+
test 'slave methods are cached on the singleton' do
|
33
|
+
assert_not @model.singleton_methods.include?(:pending_output?)
|
34
|
+
@model.pending_output? rescue nil
|
35
|
+
assert @model.singleton_methods.include?(:pending_output?)
|
36
|
+
end
|
37
|
+
|
32
38
|
test 'persisted models knows that they are in memory' do
|
33
|
-
|
39
|
+
assert_not @model.persisted?
|
34
40
|
@model.persist
|
35
41
|
assert @model.persisted?
|
36
42
|
end
|
@@ -46,7 +52,7 @@ module WebConsole
|
|
46
52
|
end
|
47
53
|
|
48
54
|
test 'no gives not persisted models' do
|
49
|
-
|
55
|
+
assert_not ConsoleSession.new.persisted?
|
50
56
|
end
|
51
57
|
end
|
52
58
|
end
|
data/test/test_helper.rb
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
SimpleCov.start 'rails'
|
3
|
+
|
1
4
|
# Configure Rails Environment
|
2
5
|
ENV["RAILS_ENV"] = "test"
|
3
6
|
|
@@ -13,3 +16,8 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
13
16
|
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
17
|
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
18
|
end
|
19
|
+
|
20
|
+
# The tests use `assert_not`, alias it to refute for Rails 3 compatibility.
|
21
|
+
ActiveSupport::TestCase.class_eval do
|
22
|
+
alias :assert_not :refute
|
23
|
+
end
|
@@ -0,0 +1,136 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module WebConsole
|
4
|
+
class EngineTest < ActiveSupport::TestCase
|
5
|
+
test 'custom default_mount_path' do
|
6
|
+
new_uninitialized_app do |app|
|
7
|
+
app.config.web_console.default_mount_path = '/shell'
|
8
|
+
app.initialize!
|
9
|
+
|
10
|
+
assert app.routes.named_routes['web_console'].path.match('/shell')
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
test 'disabling automounting' do
|
15
|
+
new_uninitialized_app do |app|
|
16
|
+
app.config.web_console.automount = false
|
17
|
+
app.initialize!
|
18
|
+
|
19
|
+
assert_not app.routes.named_routes['web_console']
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
test 'blank commands are expanded to the rails console' do
|
24
|
+
new_uninitialized_app do |app|
|
25
|
+
app.config.web_console.command = ' '
|
26
|
+
app.initialize!
|
27
|
+
|
28
|
+
expected_path = Rails.root.join('bin/rails console').to_s
|
29
|
+
assert_equal expected_path, app.config.web_console.command
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
test 'present commands are not processed' do
|
34
|
+
new_uninitialized_app do |app|
|
35
|
+
app.config.web_console.command = '/bin/login'
|
36
|
+
app.initialize!
|
37
|
+
|
38
|
+
assert_equal '/bin/login', app.config.web_console.command
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
test 'whitelisted ips are courced to IPAddr' do
|
43
|
+
new_uninitialized_app do |app|
|
44
|
+
app.config.web_console.whitelisted_ips = '127.0.0.1'
|
45
|
+
app.initialize!
|
46
|
+
|
47
|
+
assert_equal [ IPAddr.new('127.0.0.1') ], app.config.web_console.whitelisted_ips
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
test 'whitelisted ips are normalized and unique IPAddr' do
|
52
|
+
new_uninitialized_app do |app|
|
53
|
+
app.config.web_console.whitelisted_ips = [ '127.0.0.1', '127.0.0.1', nil, '', ' ' ]
|
54
|
+
app.initialize!
|
55
|
+
|
56
|
+
assert_equal [ IPAddr.new('127.0.0.1') ], app.config.web_console.whitelisted_ips
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
test 'whitelisted_ips.include? coerces to IPAddr' do
|
61
|
+
new_uninitialized_app do |app|
|
62
|
+
app.config.web_console.whitelisted_ips = '127.0.0.1'
|
63
|
+
app.initialize!
|
64
|
+
|
65
|
+
assert app.config.web_console.whitelisted_ips.include?('127.0.0.1')
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
test 'whitelisted_ips.include? works with IPAddr' do
|
70
|
+
new_uninitialized_app do |app|
|
71
|
+
app.config.web_console.whitelisted_ips = '127.0.0.1'
|
72
|
+
app.initialize!
|
73
|
+
|
74
|
+
assert app.config.web_console.whitelisted_ips.include?(IPAddr.new('127.0.0.1'))
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
test 'whitelist whole networks' do
|
79
|
+
new_uninitialized_app do |app|
|
80
|
+
app.config.web_console.whitelisted_ips = '172.16.0.0/12'
|
81
|
+
app.initialize!
|
82
|
+
|
83
|
+
1.upto(255).each do |n|
|
84
|
+
assert_includes app.config.web_console.whitelisted_ips, "172.16.0.#{n}"
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
test 'whitelist multiple networks' do
|
90
|
+
new_uninitialized_app do |app|
|
91
|
+
app.config.web_console.whitelisted_ips = %w( 172.16.0.0/12 192.168.0.0/16 )
|
92
|
+
app.initialize!
|
93
|
+
|
94
|
+
1.upto(255).each do |n|
|
95
|
+
assert_includes app.config.web_console.whitelisted_ips, "172.16.0.#{n}"
|
96
|
+
assert_includes app.config.web_console.whitelisted_ips, "192.168.0.#{n}"
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
private
|
102
|
+
|
103
|
+
def new_uninitialized_app(root = File.expand_path('../../dummy', __FILE__))
|
104
|
+
skip if Rails::VERSION::MAJOR == 3
|
105
|
+
|
106
|
+
old_app = Rails.application
|
107
|
+
|
108
|
+
FileUtils.mkdir_p(root)
|
109
|
+
Dir.chdir(root) do
|
110
|
+
Rails.application = nil
|
111
|
+
|
112
|
+
app = Class.new(Rails::Application)
|
113
|
+
app.config.eager_load = false
|
114
|
+
app.config.time_zone = 'UTC'
|
115
|
+
app.config.middleware ||= Rails::Configuration::MiddlewareStackProxy.new
|
116
|
+
app.config.active_support.deprecation = :notify
|
117
|
+
|
118
|
+
yield app
|
119
|
+
end
|
120
|
+
ensure
|
121
|
+
Rails.application = old_app
|
122
|
+
end
|
123
|
+
|
124
|
+
def teardown_fixtures(*)
|
125
|
+
super
|
126
|
+
rescue
|
127
|
+
# This is nasty hack to prevent a connection to the database in JRuby's
|
128
|
+
# activerecord-jdbcsqlite3-adapter. We don't really require a database
|
129
|
+
# connection, for the tests to run.
|
130
|
+
#
|
131
|
+
# The sad thing is that I couldn't figure out why does it only happens
|
132
|
+
# on activerecord-jdbcsqlite3-adapter and how to actually prevent it,
|
133
|
+
# rather than work-around it.
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
@@ -1,53 +1,71 @@
|
|
1
1
|
require 'stringio'
|
2
2
|
require 'test_helper'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
module WebConsole
|
5
|
+
class SlaveTest < ActiveSupport::TestCase
|
6
|
+
setup do
|
7
|
+
PTY.stubs(:spawn).returns([StringIO.new, StringIO.new, Random.rand(20000)])
|
8
|
+
@slave = Slave.new
|
9
|
+
end
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
test '#send_input raises ArgumentError on bad input' do
|
12
|
+
assert_raises(ArgumentError) { @slave.send_input(nil) }
|
13
|
+
assert_raises(ArgumentError) { @slave.send_input('') }
|
14
|
+
end
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
test '#pending_output returns nil on no pending output' do
|
17
|
+
@slave.stubs(:pending_output?).returns(false)
|
18
|
+
assert_nil @slave.pending_output
|
19
|
+
end
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
test '#pending_output returns a string with the current output' do
|
22
|
+
@slave.stubs(:pending_output?).returns(true)
|
23
|
+
@slave.instance_variable_get(:@output).stubs(:read_nonblock).returns('foo', nil)
|
24
|
+
assert_equal 'foo', @slave.pending_output
|
25
|
+
end
|
25
26
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
test '#pending_output always encodes output in UTF-8' do
|
28
|
+
@slave.stubs(:pending_output?).returns(true)
|
29
|
+
@slave.instance_variable_get(:@output).stubs(:read_nonblock).returns('foo', nil)
|
30
|
+
assert_equal Encoding::UTF_8, @slave.pending_output.encoding
|
31
|
+
end
|
31
32
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
33
|
+
Slave::READING_ON_CLOSED_END_ERRORS.each do |exception|
|
34
|
+
test "#pending_output raises Slave::Closed when the end raises #{exception}" do
|
35
|
+
@slave.stubs(:pending_output?).returns(true)
|
36
|
+
@slave.instance_variable_get(:@output).stubs(:read_nonblock).raises(exception)
|
36
37
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
end
|
38
|
+
assert_raises(Slave::Closed) { @slave.pending_output }
|
39
|
+
end
|
40
|
+
end
|
41
41
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
42
|
+
test '#configure changes @input dimentions' do
|
43
|
+
@slave.instance_variable_get(:@input).expects(:winsize=).with([32, 64])
|
44
|
+
@slave.configure(height: 32, width: 64)
|
45
|
+
end
|
46
|
+
|
47
|
+
test '#configure only changes the @input dimentions if width is zero' do
|
48
|
+
@slave.instance_variable_get(:@input).expects(:winsize=).never
|
49
|
+
@slave.configure(height: 32, width: 0)
|
50
|
+
end
|
51
|
+
|
52
|
+
test '#configure only changes the @input dimentions if height is zero' do
|
53
|
+
@slave.instance_variable_get(:@input).expects(:winsize=).never
|
54
|
+
@slave.configure(height: 0, width: 64)
|
55
|
+
end
|
56
|
+
|
57
|
+
{ dispose: :SIGTERM, dispose!: :SIGKILL }.each do |method, signal|
|
58
|
+
test "##{method} sends #{signal} to the process and detaches it" do
|
59
|
+
Process.expects(:kill).with(signal, @slave.pid)
|
60
|
+
@slave.send(method)
|
61
|
+
end
|
62
|
+
|
63
|
+
test "##{method} can reraise Errno::ESRCH if requested" do
|
64
|
+
Process.expects(:kill).with(signal, @slave.pid)
|
65
|
+
Process.stubs(:detach).raises(Errno::ESRCH)
|
46
66
|
|
47
|
-
|
48
|
-
|
49
|
-
Process.expects(:kill).with(signal, @slave.pid)
|
50
|
-
@slave.send(method)
|
67
|
+
assert_raises(Errno::ESRCH) { @slave.send(method, raise: true) }
|
68
|
+
end
|
51
69
|
end
|
52
70
|
end
|
53
71
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web-console-rails3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genadi Samokovarov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -53,93 +53,108 @@ executables: []
|
|
53
53
|
extensions: []
|
54
54
|
extra_rdoc_files: []
|
55
55
|
files:
|
56
|
-
- app/assets/javascripts/web_console/application.js
|
57
|
-
- app/assets/javascripts/web_console/console_sessions.js
|
58
|
-
- app/assets/stylesheets/web_console/application.css
|
59
|
-
- app/assets/stylesheets/web_console/console_sessions.css.erb
|
60
|
-
- app/controllers/web_console/application_controller.rb
|
61
|
-
- app/controllers/web_console/console_sessions_controller.rb
|
62
56
|
- app/helpers/web_console/application_helper.rb
|
63
57
|
- app/helpers/web_console/console_session_helper.rb
|
64
|
-
- app/
|
58
|
+
- app/controllers/web_console/application_controller.rb
|
59
|
+
- app/controllers/web_console/console_sessions_controller.rb
|
60
|
+
- app/assets/stylesheets/web_console/console_sessions.css.erb
|
61
|
+
- app/assets/stylesheets/web_console/application.css
|
62
|
+
- app/assets/javascripts/web_console/console_sessions.js
|
63
|
+
- app/assets/javascripts/web_console/application.js
|
65
64
|
- app/views/layouts/web_console/application.html.erb
|
66
65
|
- app/views/web_console/console_sessions/index.html.erb
|
66
|
+
- app/models/web_console/console_session.rb
|
67
67
|
- config/routes.rb
|
68
|
-
- lib/
|
69
|
-
- lib/
|
70
|
-
- lib/
|
71
|
-
- lib/
|
72
|
-
- lib/
|
68
|
+
- lib/web_console.rb
|
69
|
+
- lib/web_console/slave.rb
|
70
|
+
- lib/web_console/colors.rb
|
71
|
+
- lib/web_console/engine.rb
|
72
|
+
- lib/web_console/version.rb.orig
|
73
|
+
- lib/web_console/version.rb
|
74
|
+
- lib/web_console/colors/tango.rb
|
75
|
+
- lib/web_console/colors/monokai.rb
|
73
76
|
- lib/web_console/colors/light.rb
|
74
77
|
- lib/web_console/colors/solarized.rb
|
75
|
-
- lib/web_console/colors/tango.rb
|
76
78
|
- lib/web_console/colors/xterm.rb
|
77
|
-
- lib/web_console/colors.rb
|
78
|
-
- lib/web_console/engine.rb
|
79
79
|
- lib/web_console/engine.rb.orig
|
80
|
-
- lib/
|
81
|
-
- lib/
|
82
|
-
- lib/web_console.
|
80
|
+
- lib/active_model/model.rb
|
81
|
+
- lib/assets/javascripts/web-console.js
|
82
|
+
- lib/assets/javascripts/web_console.js
|
83
|
+
- lib/web-console.rb
|
84
|
+
- lib/web-console-rails3.rb
|
83
85
|
- vendor/assets/javascripts/term.js
|
84
86
|
- MIT-LICENSE
|
85
87
|
- Rakefile
|
86
88
|
- README.markdown
|
89
|
+
- test/helpers/web_console/console_session_helper_test.rb
|
87
90
|
- test/controllers/web_console/console_sessions_controller_test.rb
|
88
|
-
- test/
|
89
|
-
- test/
|
90
|
-
- test/
|
91
|
+
- test/web_console/engine_test.rb
|
92
|
+
- test/web_console/slave_test.rb
|
93
|
+
- test/web_console/colors_test.rb
|
94
|
+
- test/test_helper.rb
|
95
|
+
- test/dummy/db/development.sqlite3
|
96
|
+
- test/dummy/db/schema.rb
|
97
|
+
- test/dummy/db/test.sqlite3
|
98
|
+
- test/dummy/public/404.html
|
99
|
+
- test/dummy/public/422.html
|
100
|
+
- test/dummy/public/favicon.ico
|
101
|
+
- test/dummy/public/500.html
|
102
|
+
- test/dummy/log/test.log
|
103
|
+
- test/dummy/log/development.log
|
104
|
+
- test/dummy/script/rails
|
105
|
+
- test/dummy/tmp/cache/assets/D22/980/sprockets%2Fce6aa94ad2bc107104c0540f62c5128c
|
106
|
+
- test/dummy/tmp/cache/assets/D9F/400/sprockets%2F7f60332f86073dc8ed80b4c2a9dfcbe1
|
107
|
+
- test/dummy/tmp/cache/assets/D29/380/sprockets%2F92f1a0450bc4bea3364a07be42b4f645
|
108
|
+
- test/dummy/tmp/cache/assets/E20/1B0/sprockets%2F93fcfe8f084edee9a55499a26def5d9c
|
109
|
+
- test/dummy/tmp/cache/assets/D9B/A30/sprockets%2Fc3436b3fe5da7c2456f26e2ae36da6c5
|
110
|
+
- test/dummy/tmp/cache/assets/D66/940/sprockets%2F6151175b6ad4f9bab0c7e2b508e7b70f
|
111
|
+
- test/dummy/tmp/cache/assets/DFC/780/sprockets%2F5cb5da4f4da73824ec22a7f9716cfabd
|
112
|
+
- test/dummy/tmp/cache/assets/CD0/FC0/sprockets%2Fbb2777627d42a216f3d9ced4322040b3
|
113
|
+
- test/dummy/tmp/cache/assets/CFA/E30/sprockets%2F35be1d26565dc0310c29f1a5e2f62f10
|
114
|
+
- test/dummy/tmp/cache/assets/D95/C40/sprockets%2F09cb0a274209abf0391cbfce6ee67b82
|
115
|
+
- test/dummy/tmp/cache/assets/D90/B30/sprockets%2Fe03fe93eb7fe888c9d21ee62816596ff
|
116
|
+
- test/dummy/tmp/cache/assets/DDB/890/sprockets%2F5ed566ca9fafd1b82373ffea2a8d8681
|
117
|
+
- test/dummy/tmp/cache/assets/CBD/6E0/sprockets%2F3293dfc0984076f0e8371a9e7640f4a8
|
118
|
+
- test/dummy/tmp/cache/assets/CAA/460/sprockets%2Ff71bd1e874400261bf4041d1955649ce
|
119
|
+
- test/dummy/tmp/cache/assets/C9E/AD0/sprockets%2F4a42d8916f3fa47867445f696497a92c
|
120
|
+
- test/dummy/tmp/cache/assets/E5A/C40/sprockets%2F164cfa0fd9eb1ec1acdfaa278c83e9c5
|
121
|
+
- test/dummy/tmp/cache/assets/DD4/440/sprockets%2Fa33d646ac00d8bc87a4a496af6eed96f
|
122
|
+
- test/dummy/tmp/cache/assets/CD5/450/sprockets%2Fe91b806f141515129b1ac8a8d0e58e31
|
123
|
+
- test/dummy/tmp/cache/assets/D38/A00/sprockets%2F700155d5f77047ca613ee9c4d5c4cca3
|
124
|
+
- test/dummy/tmp/cache/assets/DAE/8C0/sprockets%2Fa9b8f7bc5ca2efe658a13d7f4609c729
|
125
|
+
- test/dummy/tmp/cache/assets/DB3/0C0/sprockets%2F689fb998e2a7add3e00db88df254c87a
|
126
|
+
- test/dummy/tmp/cache/assets/D21/6B0/sprockets%2F9e242803fe56d6305274ff7e6487deda
|
127
|
+
- test/dummy/tmp/cache/assets/D3E/380/sprockets%2F434d98c8380bb9daf43810155aaf68ba
|
128
|
+
- test/dummy/tmp/cache/assets/D1D/FD0/sprockets%2Fa4a5ffe670666ce3d8d59179905201ef
|
129
|
+
- test/dummy/tmp/cache/assets/D69/670/sprockets%2Fc6b4a05846fd1b98fe9252ecdd1601c0
|
130
|
+
- test/dummy/tmp/cache/assets/D69/710/sprockets%2Ff67078d4b979a58c97feede196f6b385
|
131
|
+
- test/dummy/tmp/cache/assets/CA7/D50/sprockets%2Fd095151316fd43a3062157b72d7de7f2
|
132
|
+
- test/dummy/tmp/cache/assets/CA7/D70/sprockets%2F3e9e32bbc8c81a93002555265a36a852
|
91
133
|
- test/dummy/app/helpers/application_helper.rb
|
134
|
+
- test/dummy/app/controllers/application_controller.rb
|
135
|
+
- test/dummy/app/assets/stylesheets/application.css
|
136
|
+
- test/dummy/app/assets/javascripts/application.js
|
92
137
|
- test/dummy/app/views/layouts/application.html.erb
|
138
|
+
- test/dummy/config.ru
|
139
|
+
- test/dummy/config/locales/en.yml
|
93
140
|
- test/dummy/config/application.rb
|
94
|
-
- test/dummy/config/
|
95
|
-
- test/dummy/config/database.yml
|
96
|
-
- test/dummy/config/environment.rb
|
97
|
-
- test/dummy/config/environments/development.rb
|
98
|
-
- test/dummy/config/environments/production.rb
|
99
|
-
- test/dummy/config/environments/test.rb
|
141
|
+
- test/dummy/config/application.rb.orig
|
100
142
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
101
|
-
- test/dummy/config/initializers/
|
143
|
+
- test/dummy/config/initializers/session_store.rb
|
102
144
|
- test/dummy/config/initializers/mime_types.rb
|
103
145
|
- test/dummy/config/initializers/secret_token.rb
|
104
|
-
- test/dummy/config/initializers/session_store.rb
|
105
146
|
- test/dummy/config/initializers/wrap_parameters.rb
|
106
|
-
- test/dummy/config/
|
147
|
+
- test/dummy/config/initializers/inflections.rb
|
148
|
+
- test/dummy/config/database.yml
|
107
149
|
- test/dummy/config/routes.rb
|
108
|
-
- test/dummy/config.
|
109
|
-
- test/dummy/
|
110
|
-
- test/dummy/
|
111
|
-
- test/dummy/
|
112
|
-
- test/dummy/
|
113
|
-
- test/dummy/log/test.log
|
114
|
-
- test/dummy/public/404.html
|
115
|
-
- test/dummy/public/422.html
|
116
|
-
- test/dummy/public/500.html
|
117
|
-
- test/dummy/public/favicon.ico
|
150
|
+
- test/dummy/config/boot.rb
|
151
|
+
- test/dummy/config/environment.rb
|
152
|
+
- test/dummy/config/environments/development.rb
|
153
|
+
- test/dummy/config/environments/production.rb
|
154
|
+
- test/dummy/config/environments/test.rb
|
118
155
|
- test/dummy/Rakefile
|
119
156
|
- test/dummy/README.rdoc
|
120
|
-
- test/dummy/script/rails
|
121
|
-
- test/dummy/tmp/cache/assets/C3D/0C0/sprockets%2Fb01666017530b122ba58894b59b1551b
|
122
|
-
- test/dummy/tmp/cache/assets/C5D/870/sprockets%2F9695d21699b362bcc13260e71b679474
|
123
|
-
- test/dummy/tmp/cache/assets/C79/7C0/sprockets%2F831cb415f919c0a15d95e148020953f2
|
124
|
-
- test/dummy/tmp/cache/assets/CB7/870/sprockets%2F5358761e3329e2a4655ee7c0fd2609b5
|
125
|
-
- test/dummy/tmp/cache/assets/CD0/9A0/sprockets%2F61b95b7833a131f56a2096a3d2ba0c94
|
126
|
-
- test/dummy/tmp/cache/assets/CDA/480/sprockets%2F26eb073018913d788d2ee3f5151eea04
|
127
|
-
- test/dummy/tmp/cache/assets/CE1/850/sprockets%2Fb962434bbb22f17db956b8091c975f30
|
128
|
-
- test/dummy/tmp/cache/assets/D0C/EE0/sprockets%2F3fdf5762c392175ad2cba21454e5b972
|
129
|
-
- test/dummy/tmp/cache/assets/D42/180/sprockets%2F4af57a79abba3d4790ba1e7157f41939
|
130
|
-
- test/dummy/tmp/cache/assets/D54/E60/sprockets%2F8abf0788cb7dc878ea82239456149bed
|
131
|
-
- test/dummy/tmp/cache/assets/D5F/7E0/sprockets%2F26c1c2c6ba96ba84abf150e402d677c3
|
132
|
-
- test/dummy/tmp/cache/assets/D66/680/sprockets%2Fe0ba18d897f0c45f5e66b003c5ebd061
|
133
|
-
- test/dummy/tmp/cache/assets/D66/AE0/sprockets%2F25c91de251a8ab43652dc2ef55e2a29d
|
134
|
-
- test/dummy/tmp/cache/assets/DA7/470/sprockets%2F65bb61bf1edac19c0666e89b667d23ff
|
135
|
-
- test/dummy/tmp/cache/assets/DA9/F60/sprockets%2Fa95e444e8dca0e1a586dcef972b623f7
|
136
|
-
- test/dummy/tmp/cache/assets/DAC/A90/sprockets%2F2015f79881b518e9cdcdaf8dfb3e46c5
|
137
|
-
- test/helpers/web_console/console_session_helper_test.rb
|
138
157
|
- test/models/console_session_test.rb
|
139
|
-
- test/test_helper.rb
|
140
|
-
- test/web_console/colors_test.rb
|
141
|
-
- test/web_console/slave_test.rb
|
142
|
-
- test/web_console_test.rb
|
143
158
|
homepage: https://github.com/gsamokovarov/web-console-rails3
|
144
159
|
licenses:
|
145
160
|
- MIT
|
@@ -165,59 +180,72 @@ signing_key:
|
|
165
180
|
specification_version: 4
|
166
181
|
summary: Rails Console on the Browser, Rails 3 edition.
|
167
182
|
test_files:
|
183
|
+
- test/helpers/web_console/console_session_helper_test.rb
|
168
184
|
- test/controllers/web_console/console_sessions_controller_test.rb
|
169
|
-
- test/
|
170
|
-
- test/
|
171
|
-
- test/
|
185
|
+
- test/web_console/engine_test.rb
|
186
|
+
- test/web_console/slave_test.rb
|
187
|
+
- test/web_console/colors_test.rb
|
188
|
+
- test/test_helper.rb
|
189
|
+
- test/dummy/db/development.sqlite3
|
190
|
+
- test/dummy/db/schema.rb
|
191
|
+
- test/dummy/db/test.sqlite3
|
192
|
+
- test/dummy/public/404.html
|
193
|
+
- test/dummy/public/422.html
|
194
|
+
- test/dummy/public/favicon.ico
|
195
|
+
- test/dummy/public/500.html
|
196
|
+
- test/dummy/log/test.log
|
197
|
+
- test/dummy/log/development.log
|
198
|
+
- test/dummy/script/rails
|
199
|
+
- test/dummy/tmp/cache/assets/D22/980/sprockets%2Fce6aa94ad2bc107104c0540f62c5128c
|
200
|
+
- test/dummy/tmp/cache/assets/D9F/400/sprockets%2F7f60332f86073dc8ed80b4c2a9dfcbe1
|
201
|
+
- test/dummy/tmp/cache/assets/D29/380/sprockets%2F92f1a0450bc4bea3364a07be42b4f645
|
202
|
+
- test/dummy/tmp/cache/assets/E20/1B0/sprockets%2F93fcfe8f084edee9a55499a26def5d9c
|
203
|
+
- test/dummy/tmp/cache/assets/D9B/A30/sprockets%2Fc3436b3fe5da7c2456f26e2ae36da6c5
|
204
|
+
- test/dummy/tmp/cache/assets/D66/940/sprockets%2F6151175b6ad4f9bab0c7e2b508e7b70f
|
205
|
+
- test/dummy/tmp/cache/assets/DFC/780/sprockets%2F5cb5da4f4da73824ec22a7f9716cfabd
|
206
|
+
- test/dummy/tmp/cache/assets/CD0/FC0/sprockets%2Fbb2777627d42a216f3d9ced4322040b3
|
207
|
+
- test/dummy/tmp/cache/assets/CFA/E30/sprockets%2F35be1d26565dc0310c29f1a5e2f62f10
|
208
|
+
- test/dummy/tmp/cache/assets/D95/C40/sprockets%2F09cb0a274209abf0391cbfce6ee67b82
|
209
|
+
- test/dummy/tmp/cache/assets/D90/B30/sprockets%2Fe03fe93eb7fe888c9d21ee62816596ff
|
210
|
+
- test/dummy/tmp/cache/assets/DDB/890/sprockets%2F5ed566ca9fafd1b82373ffea2a8d8681
|
211
|
+
- test/dummy/tmp/cache/assets/CBD/6E0/sprockets%2F3293dfc0984076f0e8371a9e7640f4a8
|
212
|
+
- test/dummy/tmp/cache/assets/CAA/460/sprockets%2Ff71bd1e874400261bf4041d1955649ce
|
213
|
+
- test/dummy/tmp/cache/assets/C9E/AD0/sprockets%2F4a42d8916f3fa47867445f696497a92c
|
214
|
+
- test/dummy/tmp/cache/assets/E5A/C40/sprockets%2F164cfa0fd9eb1ec1acdfaa278c83e9c5
|
215
|
+
- test/dummy/tmp/cache/assets/DD4/440/sprockets%2Fa33d646ac00d8bc87a4a496af6eed96f
|
216
|
+
- test/dummy/tmp/cache/assets/CD5/450/sprockets%2Fe91b806f141515129b1ac8a8d0e58e31
|
217
|
+
- test/dummy/tmp/cache/assets/D38/A00/sprockets%2F700155d5f77047ca613ee9c4d5c4cca3
|
218
|
+
- test/dummy/tmp/cache/assets/DAE/8C0/sprockets%2Fa9b8f7bc5ca2efe658a13d7f4609c729
|
219
|
+
- test/dummy/tmp/cache/assets/DB3/0C0/sprockets%2F689fb998e2a7add3e00db88df254c87a
|
220
|
+
- test/dummy/tmp/cache/assets/D21/6B0/sprockets%2F9e242803fe56d6305274ff7e6487deda
|
221
|
+
- test/dummy/tmp/cache/assets/D3E/380/sprockets%2F434d98c8380bb9daf43810155aaf68ba
|
222
|
+
- test/dummy/tmp/cache/assets/D1D/FD0/sprockets%2Fa4a5ffe670666ce3d8d59179905201ef
|
223
|
+
- test/dummy/tmp/cache/assets/D69/670/sprockets%2Fc6b4a05846fd1b98fe9252ecdd1601c0
|
224
|
+
- test/dummy/tmp/cache/assets/D69/710/sprockets%2Ff67078d4b979a58c97feede196f6b385
|
225
|
+
- test/dummy/tmp/cache/assets/CA7/D50/sprockets%2Fd095151316fd43a3062157b72d7de7f2
|
226
|
+
- test/dummy/tmp/cache/assets/CA7/D70/sprockets%2F3e9e32bbc8c81a93002555265a36a852
|
172
227
|
- test/dummy/app/helpers/application_helper.rb
|
228
|
+
- test/dummy/app/controllers/application_controller.rb
|
229
|
+
- test/dummy/app/assets/stylesheets/application.css
|
230
|
+
- test/dummy/app/assets/javascripts/application.js
|
173
231
|
- test/dummy/app/views/layouts/application.html.erb
|
232
|
+
- test/dummy/config.ru
|
233
|
+
- test/dummy/config/locales/en.yml
|
174
234
|
- test/dummy/config/application.rb
|
175
|
-
- test/dummy/config/
|
176
|
-
- test/dummy/config/database.yml
|
177
|
-
- test/dummy/config/environment.rb
|
178
|
-
- test/dummy/config/environments/development.rb
|
179
|
-
- test/dummy/config/environments/production.rb
|
180
|
-
- test/dummy/config/environments/test.rb
|
235
|
+
- test/dummy/config/application.rb.orig
|
181
236
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
182
|
-
- test/dummy/config/initializers/
|
237
|
+
- test/dummy/config/initializers/session_store.rb
|
183
238
|
- test/dummy/config/initializers/mime_types.rb
|
184
239
|
- test/dummy/config/initializers/secret_token.rb
|
185
|
-
- test/dummy/config/initializers/session_store.rb
|
186
240
|
- test/dummy/config/initializers/wrap_parameters.rb
|
187
|
-
- test/dummy/config/
|
241
|
+
- test/dummy/config/initializers/inflections.rb
|
242
|
+
- test/dummy/config/database.yml
|
188
243
|
- test/dummy/config/routes.rb
|
189
|
-
- test/dummy/config.
|
190
|
-
- test/dummy/
|
191
|
-
- test/dummy/
|
192
|
-
- test/dummy/
|
193
|
-
- test/dummy/
|
194
|
-
- test/dummy/log/test.log
|
195
|
-
- test/dummy/public/404.html
|
196
|
-
- test/dummy/public/422.html
|
197
|
-
- test/dummy/public/500.html
|
198
|
-
- test/dummy/public/favicon.ico
|
244
|
+
- test/dummy/config/boot.rb
|
245
|
+
- test/dummy/config/environment.rb
|
246
|
+
- test/dummy/config/environments/development.rb
|
247
|
+
- test/dummy/config/environments/production.rb
|
248
|
+
- test/dummy/config/environments/test.rb
|
199
249
|
- test/dummy/Rakefile
|
200
250
|
- test/dummy/README.rdoc
|
201
|
-
- test/dummy/script/rails
|
202
|
-
- test/dummy/tmp/cache/assets/C3D/0C0/sprockets%2Fb01666017530b122ba58894b59b1551b
|
203
|
-
- test/dummy/tmp/cache/assets/C5D/870/sprockets%2F9695d21699b362bcc13260e71b679474
|
204
|
-
- test/dummy/tmp/cache/assets/C79/7C0/sprockets%2F831cb415f919c0a15d95e148020953f2
|
205
|
-
- test/dummy/tmp/cache/assets/CB7/870/sprockets%2F5358761e3329e2a4655ee7c0fd2609b5
|
206
|
-
- test/dummy/tmp/cache/assets/CD0/9A0/sprockets%2F61b95b7833a131f56a2096a3d2ba0c94
|
207
|
-
- test/dummy/tmp/cache/assets/CDA/480/sprockets%2F26eb073018913d788d2ee3f5151eea04
|
208
|
-
- test/dummy/tmp/cache/assets/CE1/850/sprockets%2Fb962434bbb22f17db956b8091c975f30
|
209
|
-
- test/dummy/tmp/cache/assets/D0C/EE0/sprockets%2F3fdf5762c392175ad2cba21454e5b972
|
210
|
-
- test/dummy/tmp/cache/assets/D42/180/sprockets%2F4af57a79abba3d4790ba1e7157f41939
|
211
|
-
- test/dummy/tmp/cache/assets/D54/E60/sprockets%2F8abf0788cb7dc878ea82239456149bed
|
212
|
-
- test/dummy/tmp/cache/assets/D5F/7E0/sprockets%2F26c1c2c6ba96ba84abf150e402d677c3
|
213
|
-
- test/dummy/tmp/cache/assets/D66/680/sprockets%2Fe0ba18d897f0c45f5e66b003c5ebd061
|
214
|
-
- test/dummy/tmp/cache/assets/D66/AE0/sprockets%2F25c91de251a8ab43652dc2ef55e2a29d
|
215
|
-
- test/dummy/tmp/cache/assets/DA7/470/sprockets%2F65bb61bf1edac19c0666e89b667d23ff
|
216
|
-
- test/dummy/tmp/cache/assets/DA9/F60/sprockets%2Fa95e444e8dca0e1a586dcef972b623f7
|
217
|
-
- test/dummy/tmp/cache/assets/DAC/A90/sprockets%2F2015f79881b518e9cdcdaf8dfb3e46c5
|
218
|
-
- test/helpers/web_console/console_session_helper_test.rb
|
219
251
|
- test/models/console_session_test.rb
|
220
|
-
- test/test_helper.rb
|
221
|
-
- test/web_console/colors_test.rb
|
222
|
-
- test/web_console/slave_test.rb
|
223
|
-
- test/web_console_test.rb
|