web-console-rails3 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.markdown +1 -1
  3. data/Rakefile +1 -1
  4. data/lib/web_console/engine.rb +8 -2
  5. data/lib/web_console/engine.rb.orig +11 -5
  6. data/lib/web_console/version.rb +1 -1
  7. data/test/dummy/db/development.sqlite3 +0 -0
  8. data/test/dummy/db/test.sqlite3 +0 -0
  9. data/test/dummy/log/development.log +11799 -55430
  10. data/test/dummy/log/test.log +86 -3628
  11. data/test/dummy/tmp/cache/assets/{D21/6B0/sprockets%2F9e242803fe56d6305274ff7e6487deda → C3D/0C0/sprockets%2Fb01666017530b122ba58894b59b1551b} +0 -0
  12. data/test/dummy/tmp/cache/assets/{DFC/780/sprockets%2F5cb5da4f4da73824ec22a7f9716cfabd → C5D/870/sprockets%2F9695d21699b362bcc13260e71b679474} +0 -0
  13. data/test/dummy/tmp/cache/assets/{D1D/FD0/sprockets%2Fa4a5ffe670666ce3d8d59179905201ef → C79/7C0/sprockets%2F831cb415f919c0a15d95e148020953f2} +0 -0
  14. data/test/dummy/tmp/cache/assets/{D95/C40/sprockets%2F09cb0a274209abf0391cbfce6ee67b82 → CB7/870/sprockets%2F5358761e3329e2a4655ee7c0fd2609b5} +0 -0
  15. data/test/dummy/tmp/cache/assets/{CFA/E30/sprockets%2F35be1d26565dc0310c29f1a5e2f62f10 → CD0/9A0/sprockets%2F61b95b7833a131f56a2096a3d2ba0c94} +0 -0
  16. data/test/dummy/tmp/cache/assets/{DD4/440/sprockets%2Fa33d646ac00d8bc87a4a496af6eed96f → CDA/480/sprockets%2F26eb073018913d788d2ee3f5151eea04} +0 -0
  17. data/test/dummy/tmp/cache/assets/CE1/850/sprockets%2Fb962434bbb22f17db956b8091c975f30 +0 -0
  18. data/test/dummy/tmp/cache/assets/D0C/EE0/sprockets%2F3fdf5762c392175ad2cba21454e5b972 +0 -0
  19. data/test/dummy/tmp/cache/assets/{D69/710/sprockets%2Ff67078d4b979a58c97feede196f6b385 → D42/180/sprockets%2F4af57a79abba3d4790ba1e7157f41939} +0 -0
  20. data/test/dummy/tmp/cache/assets/D54/E60/sprockets%2F8abf0788cb7dc878ea82239456149bed +0 -0
  21. data/test/dummy/tmp/cache/assets/D5F/7E0/sprockets%2F26c1c2c6ba96ba84abf150e402d677c3 +0 -0
  22. data/test/dummy/tmp/cache/assets/D66/680/sprockets%2Fe0ba18d897f0c45f5e66b003c5ebd061 +0 -0
  23. data/test/dummy/tmp/cache/assets/D66/{940/sprockets%2F6151175b6ad4f9bab0c7e2b508e7b70f → AE0/sprockets%2F25c91de251a8ab43652dc2ef55e2a29d} +0 -0
  24. data/test/dummy/tmp/cache/assets/DA7/470/sprockets%2F65bb61bf1edac19c0666e89b667d23ff +0 -0
  25. data/test/dummy/tmp/cache/assets/{CA7/D50/sprockets%2Fd095151316fd43a3062157b72d7de7f2 → DA9/F60/sprockets%2Fa95e444e8dca0e1a586dcef972b623f7} +0 -0
  26. data/test/dummy/tmp/cache/assets/{DB3/0C0/sprockets%2F689fb998e2a7add3e00db88df254c87a → DAC/A90/sprockets%2F2015f79881b518e9cdcdaf8dfb3e46c5} +0 -0
  27. data/test/web_console_test.rb.BACKUP.76930.rb +133 -0
  28. data/test/web_console_test.rb.BASE.76930.rb +134 -0
  29. data/test/web_console_test.rb.LOCAL.76930.rb +133 -0
  30. data/test/web_console_test.rb.REMOTE.76930.rb +0 -0
  31. metadata +118 -176
  32. data/test/dummy/config/application.rb.orig +0 -58
  33. data/test/dummy/tmp/cache/assets/C9E/AD0/sprockets%2F4a42d8916f3fa47867445f696497a92c +0 -0
  34. data/test/dummy/tmp/cache/assets/CA7/D70/sprockets%2F3e9e32bbc8c81a93002555265a36a852 +0 -0
  35. data/test/dummy/tmp/cache/assets/CAA/460/sprockets%2Ff71bd1e874400261bf4041d1955649ce +0 -0
  36. data/test/dummy/tmp/cache/assets/CBD/6E0/sprockets%2F3293dfc0984076f0e8371a9e7640f4a8 +0 -0
  37. data/test/dummy/tmp/cache/assets/CD0/FC0/sprockets%2Fbb2777627d42a216f3d9ced4322040b3 +0 -0
  38. data/test/dummy/tmp/cache/assets/CD5/450/sprockets%2Fe91b806f141515129b1ac8a8d0e58e31 +0 -0
  39. data/test/dummy/tmp/cache/assets/D22/980/sprockets%2Fce6aa94ad2bc107104c0540f62c5128c +0 -0
  40. data/test/dummy/tmp/cache/assets/D29/380/sprockets%2F92f1a0450bc4bea3364a07be42b4f645 +0 -0
  41. data/test/dummy/tmp/cache/assets/D38/A00/sprockets%2F700155d5f77047ca613ee9c4d5c4cca3 +0 -0
  42. data/test/dummy/tmp/cache/assets/D3E/380/sprockets%2F434d98c8380bb9daf43810155aaf68ba +0 -0
  43. data/test/dummy/tmp/cache/assets/D69/670/sprockets%2Fc6b4a05846fd1b98fe9252ecdd1601c0 +0 -0
  44. data/test/dummy/tmp/cache/assets/D90/B30/sprockets%2Fe03fe93eb7fe888c9d21ee62816596ff +0 -0
  45. data/test/dummy/tmp/cache/assets/D9B/A30/sprockets%2Fc3436b3fe5da7c2456f26e2ae36da6c5 +0 -0
  46. data/test/dummy/tmp/cache/assets/D9F/400/sprockets%2F7f60332f86073dc8ed80b4c2a9dfcbe1 +0 -0
  47. data/test/dummy/tmp/cache/assets/DAE/8C0/sprockets%2Fa9b8f7bc5ca2efe658a13d7f4609c729 +0 -0
  48. data/test/dummy/tmp/cache/assets/DDB/890/sprockets%2F5ed566ca9fafd1b82373ffea2a8d8681 +0 -0
  49. data/test/dummy/tmp/cache/assets/E20/1B0/sprockets%2F93fcfe8f084edee9a55499a26def5d9c +0 -0
  50. data/test/dummy/tmp/cache/assets/E5A/C40/sprockets%2F164cfa0fd9eb1ec1acdfaa278c83e9c5 +0 -0
@@ -0,0 +1,133 @@
1
+ require 'test_helper'
2
+
3
+ class WebConsoleTest < ActiveSupport::TestCase
4
+ test 'custom default_mount_path' do
5
+ new_uninitialized_app do |app|
6
+ app.config.web_console.default_mount_path = '/shell'
7
+ app.initialize!
8
+
9
+ assert app.routes.named_routes['web_console'].path.match('/shell')
10
+ end
11
+ end
12
+
13
+ test 'disabling automounting' do
14
+ new_uninitialized_app do |app|
15
+ app.config.web_console.automount = false
16
+ app.initialize!
17
+
18
+ refute app.routes.named_routes['web_console']
19
+ end
20
+ end
21
+
22
+ test 'blank commands are expanded to the rails console' do
23
+ new_uninitialized_app do |app|
24
+ app.config.web_console.command = ' '
25
+ app.initialize!
26
+
27
+ assert_equal 'rails_console', app.config.web_console.command
28
+ end
29
+ end
30
+
31
+ test 'present commands are not processed' do
32
+ new_uninitialized_app do |app|
33
+ app.config.web_console.command = '/bin/login'
34
+ app.initialize!
35
+
36
+ assert_equal '/bin/login', app.config.web_console.command
37
+ end
38
+ end
39
+
40
+ test 'whitelisted ips are courced to IPAddr' do
41
+ new_uninitialized_app do |app|
42
+ app.config.web_console.whitelisted_ips = '127.0.0.1'
43
+ app.initialize!
44
+
45
+ assert_equal [ IPAddr.new('127.0.0.1') ], app.config.web_console.whitelisted_ips
46
+ end
47
+ end
48
+
49
+ test 'whitelisted ips are normalized and unique IPAddr' do
50
+ new_uninitialized_app do |app|
51
+ app.config.web_console.whitelisted_ips = [ '127.0.0.1', '127.0.0.1', nil, '', ' ' ]
52
+ app.initialize!
53
+
54
+ assert_equal [ IPAddr.new('127.0.0.1') ], app.config.web_console.whitelisted_ips
55
+ end
56
+ end
57
+
58
+ test 'whitelisted_ips.include? coerces to IPAddr' do
59
+ new_uninitialized_app do |app|
60
+ app.config.web_console.whitelisted_ips = '127.0.0.1'
61
+ app.initialize!
62
+
63
+ assert app.config.web_console.whitelisted_ips.include?('127.0.0.1')
64
+ end
65
+ end
66
+
67
+ test 'whitelisted_ips.include? works with IPAddr' do
68
+ new_uninitialized_app do |app|
69
+ app.config.web_console.whitelisted_ips = '127.0.0.1'
70
+ app.initialize!
71
+
72
+ assert app.config.web_console.whitelisted_ips.include?(IPAddr.new('127.0.0.1'))
73
+ end
74
+ end
75
+
76
+ test 'whitelist whole networks' do
77
+ new_uninitialized_app do |app|
78
+ app.config.web_console.whitelisted_ips = '172.16.0.0/12'
79
+ app.initialize!
80
+
81
+ 1.upto(255).each do |n|
82
+ assert_includes app.config.web_console.whitelisted_ips, "172.16.0.#{n}"
83
+ end
84
+ end
85
+ end
86
+
87
+ test 'whitelist multiple networks' do
88
+ new_uninitialized_app do |app|
89
+ app.config.web_console.whitelisted_ips = %w( 172.16.0.0/12 192.168.0.0/16 )
90
+ app.initialize!
91
+
92
+ 1.upto(255).each do |n|
93
+ assert_includes app.config.web_console.whitelisted_ips, "172.16.0.#{n}"
94
+ assert_includes app.config.web_console.whitelisted_ips, "192.168.0.#{n}"
95
+ end
96
+ end
97
+ end
98
+
99
+ private
100
+
101
+ def new_uninitialized_app(root = File.expand_path('../dummy', __FILE__))
102
+ skip if Rails::VERSION::MAJOR == 3
103
+
104
+ old_app = Rails.application
105
+
106
+ FileUtils.mkdir_p(root)
107
+ Dir.chdir(root) do
108
+ Rails.application = nil
109
+
110
+ app = Class.new(Rails::Application)
111
+ app.config.eager_load = false
112
+ app.config.time_zone = 'UTC'
113
+ app.config.middleware ||= Rails::Configuration::MiddlewareStackProxy.new
114
+ app.config.active_support.deprecation = :notify
115
+
116
+ yield app
117
+ end
118
+ ensure
119
+ Rails.application = old_app
120
+ end
121
+
122
+ def teardown_fixtures(*)
123
+ super
124
+ rescue
125
+ # This is nasty hack to prevent a connection to the database in JRuby's
126
+ # activerecord-jdbcsqlite3-adapter. We don't really require a database
127
+ # connection, for the tests to run.
128
+ #
129
+ # The sad thing is that I couldn't figure out why does it only happens on
130
+ # activerecord-jdbcsqlite3-adapter and how to actually prevent it, rather
131
+ # than work-around it.
132
+ end
133
+ end
@@ -0,0 +1,134 @@
1
+ require 'test_helper'
2
+
3
+ class WebConsoleTest < ActiveSupport::TestCase
4
+ test 'custom default_mount_path' do
5
+ new_uninitialized_app do |app|
6
+ app.config.web_console.default_mount_path = '/shell'
7
+ app.initialize!
8
+
9
+ assert app.routes.named_routes['web_console'].path.match('/shell')
10
+ end
11
+ end
12
+
13
+ test 'disabling automounting' do
14
+ new_uninitialized_app do |app|
15
+ app.config.web_console.automount = false
16
+ app.initialize!
17
+
18
+ refute app.routes.named_routes['web_console']
19
+ end
20
+ end
21
+
22
+ test 'blank commands are expanded to the rails console' do
23
+ new_uninitialized_app do |app|
24
+ app.config.web_console.command = ' '
25
+ app.initialize!
26
+
27
+ expected_path = Rails.root.join('bin/rails console').to_s
28
+ assert_equal expected_path, app.config.web_console.command
29
+ end
30
+ end
31
+
32
+ test 'present commands are not processed' do
33
+ new_uninitialized_app do |app|
34
+ app.config.web_console.command = '/bin/login'
35
+ app.initialize!
36
+
37
+ assert_equal '/bin/login', app.config.web_console.command
38
+ end
39
+ end
40
+
41
+ test 'whitelisted ips are courced to IPAddr' do
42
+ new_uninitialized_app do |app|
43
+ app.config.web_console.whitelisted_ips = '127.0.0.1'
44
+ app.initialize!
45
+
46
+ assert_equal [ IPAddr.new('127.0.0.1') ], app.config.web_console.whitelisted_ips
47
+ end
48
+ end
49
+
50
+ test 'whitelisted ips are normalized and unique IPAddr' do
51
+ new_uninitialized_app do |app|
52
+ app.config.web_console.whitelisted_ips = [ '127.0.0.1', '127.0.0.1', nil, '', ' ' ]
53
+ app.initialize!
54
+
55
+ assert_equal [ IPAddr.new('127.0.0.1') ], app.config.web_console.whitelisted_ips
56
+ end
57
+ end
58
+
59
+ test 'whitelisted_ips.include? coerces to IPAddr' do
60
+ new_uninitialized_app do |app|
61
+ app.config.web_console.whitelisted_ips = '127.0.0.1'
62
+ app.initialize!
63
+
64
+ assert app.config.web_console.whitelisted_ips.include?('127.0.0.1')
65
+ end
66
+ end
67
+
68
+ test 'whitelisted_ips.include? works with IPAddr' do
69
+ new_uninitialized_app do |app|
70
+ app.config.web_console.whitelisted_ips = '127.0.0.1'
71
+ app.initialize!
72
+
73
+ assert app.config.web_console.whitelisted_ips.include?(IPAddr.new('127.0.0.1'))
74
+ end
75
+ end
76
+
77
+ test 'whitelist whole networks' do
78
+ new_uninitialized_app do |app|
79
+ app.config.web_console.whitelisted_ips = '172.16.0.0/12'
80
+ app.initialize!
81
+
82
+ 1.upto(255).each do |n|
83
+ assert_includes app.config.web_console.whitelisted_ips, "172.16.0.#{n}"
84
+ end
85
+ end
86
+ end
87
+
88
+ test 'whitelist multiple networks' do
89
+ new_uninitialized_app do |app|
90
+ app.config.web_console.whitelisted_ips = %w( 172.16.0.0/12 192.168.0.0/16 )
91
+ app.initialize!
92
+
93
+ 1.upto(255).each do |n|
94
+ assert_includes app.config.web_console.whitelisted_ips, "172.16.0.#{n}"
95
+ assert_includes app.config.web_console.whitelisted_ips, "192.168.0.#{n}"
96
+ end
97
+ end
98
+ end
99
+
100
+ private
101
+
102
+ def new_uninitialized_app(root = File.expand_path('../dummy', __FILE__))
103
+ skip if Rails::VERSION::MAJOR == 3
104
+
105
+ old_app = Rails.application
106
+
107
+ FileUtils.mkdir_p(root)
108
+ Dir.chdir(root) do
109
+ Rails.application = nil
110
+
111
+ app = Class.new(Rails::Application)
112
+ app.config.eager_load = false
113
+ app.config.time_zone = 'UTC'
114
+ app.config.middleware ||= Rails::Configuration::MiddlewareStackProxy.new
115
+ app.config.active_support.deprecation = :notify
116
+
117
+ yield app
118
+ end
119
+ ensure
120
+ Rails.application = old_app
121
+ end
122
+
123
+ def teardown_fixtures(*)
124
+ super
125
+ rescue
126
+ # This is nasty hack to prevent a connection to the database in JRuby's
127
+ # activerecord-jdbcsqlite3-adapter. We don't really require a database
128
+ # connection, for the tests to run.
129
+ #
130
+ # The sad thing is that I couldn't figure out why does it only happens on
131
+ # activerecord-jdbcsqlite3-adapter and how to actually prevent it, rather
132
+ # than work-around it.
133
+ end
134
+ end
@@ -0,0 +1,133 @@
1
+ require 'test_helper'
2
+
3
+ class WebConsoleTest < ActiveSupport::TestCase
4
+ test 'custom default_mount_path' do
5
+ new_uninitialized_app do |app|
6
+ app.config.web_console.default_mount_path = '/shell'
7
+ app.initialize!
8
+
9
+ assert app.routes.named_routes['web_console'].path.match('/shell')
10
+ end
11
+ end
12
+
13
+ test 'disabling automounting' do
14
+ new_uninitialized_app do |app|
15
+ app.config.web_console.automount = false
16
+ app.initialize!
17
+
18
+ refute app.routes.named_routes['web_console']
19
+ end
20
+ end
21
+
22
+ test 'blank commands are expanded to the rails console' do
23
+ new_uninitialized_app do |app|
24
+ app.config.web_console.command = ' '
25
+ app.initialize!
26
+
27
+ assert_equal 'rails_console', app.config.web_console.command
28
+ end
29
+ end
30
+
31
+ test 'present commands are not processed' do
32
+ new_uninitialized_app do |app|
33
+ app.config.web_console.command = '/bin/login'
34
+ app.initialize!
35
+
36
+ assert_equal '/bin/login', app.config.web_console.command
37
+ end
38
+ end
39
+
40
+ test 'whitelisted ips are courced to IPAddr' do
41
+ new_uninitialized_app do |app|
42
+ app.config.web_console.whitelisted_ips = '127.0.0.1'
43
+ app.initialize!
44
+
45
+ assert_equal [ IPAddr.new('127.0.0.1') ], app.config.web_console.whitelisted_ips
46
+ end
47
+ end
48
+
49
+ test 'whitelisted ips are normalized and unique IPAddr' do
50
+ new_uninitialized_app do |app|
51
+ app.config.web_console.whitelisted_ips = [ '127.0.0.1', '127.0.0.1', nil, '', ' ' ]
52
+ app.initialize!
53
+
54
+ assert_equal [ IPAddr.new('127.0.0.1') ], app.config.web_console.whitelisted_ips
55
+ end
56
+ end
57
+
58
+ test 'whitelisted_ips.include? coerces to IPAddr' do
59
+ new_uninitialized_app do |app|
60
+ app.config.web_console.whitelisted_ips = '127.0.0.1'
61
+ app.initialize!
62
+
63
+ assert app.config.web_console.whitelisted_ips.include?('127.0.0.1')
64
+ end
65
+ end
66
+
67
+ test 'whitelisted_ips.include? works with IPAddr' do
68
+ new_uninitialized_app do |app|
69
+ app.config.web_console.whitelisted_ips = '127.0.0.1'
70
+ app.initialize!
71
+
72
+ assert app.config.web_console.whitelisted_ips.include?(IPAddr.new('127.0.0.1'))
73
+ end
74
+ end
75
+
76
+ test 'whitelist whole networks' do
77
+ new_uninitialized_app do |app|
78
+ app.config.web_console.whitelisted_ips = '172.16.0.0/12'
79
+ app.initialize!
80
+
81
+ 1.upto(255).each do |n|
82
+ assert_includes app.config.web_console.whitelisted_ips, "172.16.0.#{n}"
83
+ end
84
+ end
85
+ end
86
+
87
+ test 'whitelist multiple networks' do
88
+ new_uninitialized_app do |app|
89
+ app.config.web_console.whitelisted_ips = %w( 172.16.0.0/12 192.168.0.0/16 )
90
+ app.initialize!
91
+
92
+ 1.upto(255).each do |n|
93
+ assert_includes app.config.web_console.whitelisted_ips, "172.16.0.#{n}"
94
+ assert_includes app.config.web_console.whitelisted_ips, "192.168.0.#{n}"
95
+ end
96
+ end
97
+ end
98
+
99
+ private
100
+
101
+ def new_uninitialized_app(root = File.expand_path('../dummy', __FILE__))
102
+ skip if Rails::VERSION::MAJOR == 3
103
+
104
+ old_app = Rails.application
105
+
106
+ FileUtils.mkdir_p(root)
107
+ Dir.chdir(root) do
108
+ Rails.application = nil
109
+
110
+ app = Class.new(Rails::Application)
111
+ app.config.eager_load = false
112
+ app.config.time_zone = 'UTC'
113
+ app.config.middleware ||= Rails::Configuration::MiddlewareStackProxy.new
114
+ app.config.active_support.deprecation = :notify
115
+
116
+ yield app
117
+ end
118
+ ensure
119
+ Rails.application = old_app
120
+ end
121
+
122
+ def teardown_fixtures(*)
123
+ super
124
+ rescue
125
+ # This is nasty hack to prevent a connection to the database in JRuby's
126
+ # activerecord-jdbcsqlite3-adapter. We don't really require a database
127
+ # connection, for the tests to run.
128
+ #
129
+ # The sad thing is that I couldn't figure out why does it only happens on
130
+ # activerecord-jdbcsqlite3-adapter and how to actually prevent it, rather
131
+ # than work-around it.
132
+ end
133
+ 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: 1.0.1
4
+ version: 1.0.3
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-24 00:00:00.000000000 Z
12
+ date: 2013-10-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -65,46 +65,6 @@ dependencies:
65
65
  - - ~>
66
66
  - !ruby/object:Gem::Version
67
67
  version: 0.2.0
68
- - !ruby/object:Gem::Dependency
69
- name: actionmailer
70
- requirement: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - '>='
73
- - !ruby/object:Gem::Version
74
- version: 3.2.0
75
- - - <
76
- - !ruby/object:Gem::Version
77
- version: '4.0'
78
- type: :development
79
- prerelease: false
80
- version_requirements: !ruby/object:Gem::Requirement
81
- requirements:
82
- - - '>='
83
- - !ruby/object:Gem::Version
84
- version: 3.2.0
85
- - - <
86
- - !ruby/object:Gem::Version
87
- version: '4.0'
88
- - !ruby/object:Gem::Dependency
89
- name: activerecord
90
- requirement: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - '>='
93
- - !ruby/object:Gem::Version
94
- version: 3.2.0
95
- - - <
96
- - !ruby/object:Gem::Version
97
- version: '4.0'
98
- type: :development
99
- prerelease: false
100
- version_requirements: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - '>='
103
- - !ruby/object:Gem::Version
104
- version: 3.2.0
105
- - - <
106
- - !ruby/object:Gem::Version
107
- version: '4.0'
108
68
  description:
109
69
  email:
110
70
  - gsamokovarov@gmail.com
@@ -113,108 +73,99 @@ executables: []
113
73
  extensions: []
114
74
  extra_rdoc_files: []
115
75
  files:
116
- - app/helpers/web_console/application_helper.rb
117
- - app/helpers/web_console/console_session_helper.rb
76
+ - app/assets/javascripts/web_console/application.js
77
+ - app/assets/javascripts/web_console/console_sessions.js
78
+ - app/assets/stylesheets/web_console/application.css
79
+ - app/assets/stylesheets/web_console/console_sessions.css.erb
118
80
  - app/controllers/web_console/application_controller.rb
119
81
  - app/controllers/web_console/console_sessions_controller.rb
120
- - app/assets/stylesheets/web_console/console_sessions.css.erb
121
- - app/assets/stylesheets/web_console/application.css
122
- - app/assets/javascripts/web_console/console_sessions.js
123
- - app/assets/javascripts/web_console/application.js
82
+ - app/helpers/web_console/application_helper.rb
83
+ - app/helpers/web_console/console_session_helper.rb
84
+ - app/models/web_console/console_session.rb
124
85
  - app/views/layouts/web_console/application.html.erb
125
86
  - app/views/web_console/console_sessions/index.html.erb
126
- - app/models/web_console/console_session.rb
127
87
  - config/routes.rb
128
- - lib/web_console.rb
129
- - lib/web_console/slave.rb
130
- - lib/web_console/colors.rb
131
- - lib/web_console/engine.rb
132
- - lib/web_console/version.rb.orig
133
- - lib/web_console/version.rb
134
- - lib/web_console/colors/tango.rb
135
- - lib/web_console/colors/monokai.rb
136
- - lib/web_console/colors/light.rb
137
- - lib/web_console/colors/solarized.rb
138
- - lib/web_console/colors/xterm.rb
139
- - lib/web_console/engine.rb.orig
140
88
  - lib/active_model/model.rb
141
89
  - lib/assets/javascripts/web-console.js
142
90
  - lib/assets/javascripts/web_console.js
143
- - lib/web-console.rb
144
91
  - lib/web-console-rails3.rb
92
+ - lib/web-console.rb
93
+ - lib/web_console/colors/light.rb
94
+ - lib/web_console/colors/monokai.rb
95
+ - lib/web_console/colors/solarized.rb
96
+ - lib/web_console/colors/tango.rb
97
+ - lib/web_console/colors/xterm.rb
98
+ - lib/web_console/colors.rb
99
+ - lib/web_console/engine.rb
100
+ - lib/web_console/engine.rb.orig
101
+ - lib/web_console/slave.rb
102
+ - lib/web_console/version.rb
103
+ - lib/web_console/version.rb.orig
104
+ - lib/web_console.rb
145
105
  - vendor/assets/javascripts/term.js
146
106
  - MIT-LICENSE
147
107
  - Rakefile
148
108
  - README.markdown
149
- - test/helpers/web_console/console_session_helper_test.rb
150
109
  - test/controllers/web_console/console_sessions_controller_test.rb
151
- - test/web_console/engine_test.rb
152
- - test/web_console/slave_test.rb
153
- - test/web_console/colors_test.rb
154
- - test/test_helper.rb
155
- - test/dummy/db/development.sqlite3
156
- - test/dummy/db/schema.rb
157
- - test/dummy/db/test.sqlite3
158
- - test/dummy/public/404.html
159
- - test/dummy/public/422.html
160
- - test/dummy/public/favicon.ico
161
- - test/dummy/public/500.html
162
- - test/dummy/log/test.log
163
- - test/dummy/log/development.log
164
- - test/dummy/script/rails
165
- - test/dummy/tmp/cache/assets/D22/980/sprockets%2Fce6aa94ad2bc107104c0540f62c5128c
166
- - test/dummy/tmp/cache/assets/D9F/400/sprockets%2F7f60332f86073dc8ed80b4c2a9dfcbe1
167
- - test/dummy/tmp/cache/assets/D29/380/sprockets%2F92f1a0450bc4bea3364a07be42b4f645
168
- - test/dummy/tmp/cache/assets/E20/1B0/sprockets%2F93fcfe8f084edee9a55499a26def5d9c
169
- - test/dummy/tmp/cache/assets/D9B/A30/sprockets%2Fc3436b3fe5da7c2456f26e2ae36da6c5
170
- - test/dummy/tmp/cache/assets/D66/940/sprockets%2F6151175b6ad4f9bab0c7e2b508e7b70f
171
- - test/dummy/tmp/cache/assets/DFC/780/sprockets%2F5cb5da4f4da73824ec22a7f9716cfabd
172
- - test/dummy/tmp/cache/assets/CD0/FC0/sprockets%2Fbb2777627d42a216f3d9ced4322040b3
173
- - test/dummy/tmp/cache/assets/CFA/E30/sprockets%2F35be1d26565dc0310c29f1a5e2f62f10
174
- - test/dummy/tmp/cache/assets/D95/C40/sprockets%2F09cb0a274209abf0391cbfce6ee67b82
175
- - test/dummy/tmp/cache/assets/D90/B30/sprockets%2Fe03fe93eb7fe888c9d21ee62816596ff
176
- - test/dummy/tmp/cache/assets/DDB/890/sprockets%2F5ed566ca9fafd1b82373ffea2a8d8681
177
- - test/dummy/tmp/cache/assets/CBD/6E0/sprockets%2F3293dfc0984076f0e8371a9e7640f4a8
178
- - test/dummy/tmp/cache/assets/CAA/460/sprockets%2Ff71bd1e874400261bf4041d1955649ce
179
- - test/dummy/tmp/cache/assets/C9E/AD0/sprockets%2F4a42d8916f3fa47867445f696497a92c
180
- - test/dummy/tmp/cache/assets/E5A/C40/sprockets%2F164cfa0fd9eb1ec1acdfaa278c83e9c5
181
- - test/dummy/tmp/cache/assets/DD4/440/sprockets%2Fa33d646ac00d8bc87a4a496af6eed96f
182
- - test/dummy/tmp/cache/assets/CD5/450/sprockets%2Fe91b806f141515129b1ac8a8d0e58e31
183
- - test/dummy/tmp/cache/assets/D38/A00/sprockets%2F700155d5f77047ca613ee9c4d5c4cca3
184
- - test/dummy/tmp/cache/assets/DAE/8C0/sprockets%2Fa9b8f7bc5ca2efe658a13d7f4609c729
185
- - test/dummy/tmp/cache/assets/DB3/0C0/sprockets%2F689fb998e2a7add3e00db88df254c87a
186
- - test/dummy/tmp/cache/assets/D21/6B0/sprockets%2F9e242803fe56d6305274ff7e6487deda
187
- - test/dummy/tmp/cache/assets/D3E/380/sprockets%2F434d98c8380bb9daf43810155aaf68ba
188
- - test/dummy/tmp/cache/assets/D1D/FD0/sprockets%2Fa4a5ffe670666ce3d8d59179905201ef
189
- - test/dummy/tmp/cache/assets/D69/670/sprockets%2Fc6b4a05846fd1b98fe9252ecdd1601c0
190
- - test/dummy/tmp/cache/assets/D69/710/sprockets%2Ff67078d4b979a58c97feede196f6b385
191
- - test/dummy/tmp/cache/assets/CA7/D50/sprockets%2Fd095151316fd43a3062157b72d7de7f2
192
- - test/dummy/tmp/cache/assets/CA7/D70/sprockets%2F3e9e32bbc8c81a93002555265a36a852
193
- - test/dummy/app/helpers/application_helper.rb
194
- - test/dummy/app/controllers/application_controller.rb
195
- - test/dummy/app/assets/stylesheets/application.css
196
110
  - test/dummy/app/assets/javascripts/application.js
111
+ - test/dummy/app/assets/stylesheets/application.css
112
+ - test/dummy/app/controllers/application_controller.rb
113
+ - test/dummy/app/helpers/application_helper.rb
197
114
  - test/dummy/app/views/layouts/application.html.erb
198
- - test/dummy/config.ru
199
- - test/dummy/config/locales/en.yml
200
115
  - test/dummy/config/application.rb
201
- - test/dummy/config/application.rb.orig
202
- - test/dummy/config/initializers/backtrace_silencers.rb
203
- - test/dummy/config/initializers/session_store.rb
204
- - test/dummy/config/initializers/mime_types.rb
205
- - test/dummy/config/initializers/secret_token.rb
206
- - test/dummy/config/initializers/wrap_parameters.rb
207
- - test/dummy/config/initializers/inflections.rb
208
- - test/dummy/config/database.yml
209
- - test/dummy/config/routes.rb
210
116
  - test/dummy/config/boot.rb
117
+ - test/dummy/config/database.yml
211
118
  - test/dummy/config/environment.rb
212
119
  - test/dummy/config/environments/development.rb
213
120
  - test/dummy/config/environments/production.rb
214
121
  - test/dummy/config/environments/test.rb
122
+ - test/dummy/config/initializers/backtrace_silencers.rb
123
+ - test/dummy/config/initializers/inflections.rb
124
+ - test/dummy/config/initializers/mime_types.rb
125
+ - test/dummy/config/initializers/secret_token.rb
126
+ - test/dummy/config/initializers/session_store.rb
127
+ - test/dummy/config/initializers/wrap_parameters.rb
128
+ - test/dummy/config/locales/en.yml
129
+ - test/dummy/config/routes.rb
130
+ - test/dummy/config.ru
131
+ - test/dummy/db/development.sqlite3
132
+ - test/dummy/db/schema.rb
133
+ - test/dummy/db/test.sqlite3
134
+ - test/dummy/log/development.log
135
+ - test/dummy/log/test.log
136
+ - test/dummy/public/404.html
137
+ - test/dummy/public/422.html
138
+ - test/dummy/public/500.html
139
+ - test/dummy/public/favicon.ico
215
140
  - test/dummy/Rakefile
216
141
  - test/dummy/README.rdoc
142
+ - test/dummy/script/rails
143
+ - test/dummy/tmp/cache/assets/C3D/0C0/sprockets%2Fb01666017530b122ba58894b59b1551b
144
+ - test/dummy/tmp/cache/assets/C5D/870/sprockets%2F9695d21699b362bcc13260e71b679474
145
+ - test/dummy/tmp/cache/assets/C79/7C0/sprockets%2F831cb415f919c0a15d95e148020953f2
146
+ - test/dummy/tmp/cache/assets/CB7/870/sprockets%2F5358761e3329e2a4655ee7c0fd2609b5
147
+ - test/dummy/tmp/cache/assets/CD0/9A0/sprockets%2F61b95b7833a131f56a2096a3d2ba0c94
148
+ - test/dummy/tmp/cache/assets/CDA/480/sprockets%2F26eb073018913d788d2ee3f5151eea04
149
+ - test/dummy/tmp/cache/assets/CE1/850/sprockets%2Fb962434bbb22f17db956b8091c975f30
150
+ - test/dummy/tmp/cache/assets/D0C/EE0/sprockets%2F3fdf5762c392175ad2cba21454e5b972
151
+ - test/dummy/tmp/cache/assets/D42/180/sprockets%2F4af57a79abba3d4790ba1e7157f41939
152
+ - test/dummy/tmp/cache/assets/D54/E60/sprockets%2F8abf0788cb7dc878ea82239456149bed
153
+ - test/dummy/tmp/cache/assets/D5F/7E0/sprockets%2F26c1c2c6ba96ba84abf150e402d677c3
154
+ - test/dummy/tmp/cache/assets/D66/680/sprockets%2Fe0ba18d897f0c45f5e66b003c5ebd061
155
+ - test/dummy/tmp/cache/assets/D66/AE0/sprockets%2F25c91de251a8ab43652dc2ef55e2a29d
156
+ - test/dummy/tmp/cache/assets/DA7/470/sprockets%2F65bb61bf1edac19c0666e89b667d23ff
157
+ - test/dummy/tmp/cache/assets/DA9/F60/sprockets%2Fa95e444e8dca0e1a586dcef972b623f7
158
+ - test/dummy/tmp/cache/assets/DAC/A90/sprockets%2F2015f79881b518e9cdcdaf8dfb3e46c5
159
+ - test/helpers/web_console/console_session_helper_test.rb
217
160
  - test/models/console_session_test.rb
161
+ - test/test_helper.rb
162
+ - test/web_console/colors_test.rb
163
+ - test/web_console/engine_test.rb
164
+ - test/web_console/slave_test.rb
165
+ - test/web_console_test.rb.BACKUP.76930.rb
166
+ - test/web_console_test.rb.BASE.76930.rb
167
+ - test/web_console_test.rb.LOCAL.76930.rb
168
+ - test/web_console_test.rb.REMOTE.76930.rb
218
169
  homepage: https://github.com/gsamokovarov/web-console-rails3
219
170
  licenses:
220
171
  - MIT
@@ -240,72 +191,63 @@ signing_key:
240
191
  specification_version: 4
241
192
  summary: Rails Console on the Browser, Rails 3 edition.
242
193
  test_files:
243
- - test/helpers/web_console/console_session_helper_test.rb
244
194
  - test/controllers/web_console/console_sessions_controller_test.rb
245
- - test/web_console/engine_test.rb
246
- - test/web_console/slave_test.rb
247
- - test/web_console/colors_test.rb
248
- - test/test_helper.rb
249
- - test/dummy/db/development.sqlite3
250
- - test/dummy/db/schema.rb
251
- - test/dummy/db/test.sqlite3
252
- - test/dummy/public/404.html
253
- - test/dummy/public/422.html
254
- - test/dummy/public/favicon.ico
255
- - test/dummy/public/500.html
256
- - test/dummy/log/test.log
257
- - test/dummy/log/development.log
258
- - test/dummy/script/rails
259
- - test/dummy/tmp/cache/assets/D22/980/sprockets%2Fce6aa94ad2bc107104c0540f62c5128c
260
- - test/dummy/tmp/cache/assets/D9F/400/sprockets%2F7f60332f86073dc8ed80b4c2a9dfcbe1
261
- - test/dummy/tmp/cache/assets/D29/380/sprockets%2F92f1a0450bc4bea3364a07be42b4f645
262
- - test/dummy/tmp/cache/assets/E20/1B0/sprockets%2F93fcfe8f084edee9a55499a26def5d9c
263
- - test/dummy/tmp/cache/assets/D9B/A30/sprockets%2Fc3436b3fe5da7c2456f26e2ae36da6c5
264
- - test/dummy/tmp/cache/assets/D66/940/sprockets%2F6151175b6ad4f9bab0c7e2b508e7b70f
265
- - test/dummy/tmp/cache/assets/DFC/780/sprockets%2F5cb5da4f4da73824ec22a7f9716cfabd
266
- - test/dummy/tmp/cache/assets/CD0/FC0/sprockets%2Fbb2777627d42a216f3d9ced4322040b3
267
- - test/dummy/tmp/cache/assets/CFA/E30/sprockets%2F35be1d26565dc0310c29f1a5e2f62f10
268
- - test/dummy/tmp/cache/assets/D95/C40/sprockets%2F09cb0a274209abf0391cbfce6ee67b82
269
- - test/dummy/tmp/cache/assets/D90/B30/sprockets%2Fe03fe93eb7fe888c9d21ee62816596ff
270
- - test/dummy/tmp/cache/assets/DDB/890/sprockets%2F5ed566ca9fafd1b82373ffea2a8d8681
271
- - test/dummy/tmp/cache/assets/CBD/6E0/sprockets%2F3293dfc0984076f0e8371a9e7640f4a8
272
- - test/dummy/tmp/cache/assets/CAA/460/sprockets%2Ff71bd1e874400261bf4041d1955649ce
273
- - test/dummy/tmp/cache/assets/C9E/AD0/sprockets%2F4a42d8916f3fa47867445f696497a92c
274
- - test/dummy/tmp/cache/assets/E5A/C40/sprockets%2F164cfa0fd9eb1ec1acdfaa278c83e9c5
275
- - test/dummy/tmp/cache/assets/DD4/440/sprockets%2Fa33d646ac00d8bc87a4a496af6eed96f
276
- - test/dummy/tmp/cache/assets/CD5/450/sprockets%2Fe91b806f141515129b1ac8a8d0e58e31
277
- - test/dummy/tmp/cache/assets/D38/A00/sprockets%2F700155d5f77047ca613ee9c4d5c4cca3
278
- - test/dummy/tmp/cache/assets/DAE/8C0/sprockets%2Fa9b8f7bc5ca2efe658a13d7f4609c729
279
- - test/dummy/tmp/cache/assets/DB3/0C0/sprockets%2F689fb998e2a7add3e00db88df254c87a
280
- - test/dummy/tmp/cache/assets/D21/6B0/sprockets%2F9e242803fe56d6305274ff7e6487deda
281
- - test/dummy/tmp/cache/assets/D3E/380/sprockets%2F434d98c8380bb9daf43810155aaf68ba
282
- - test/dummy/tmp/cache/assets/D1D/FD0/sprockets%2Fa4a5ffe670666ce3d8d59179905201ef
283
- - test/dummy/tmp/cache/assets/D69/670/sprockets%2Fc6b4a05846fd1b98fe9252ecdd1601c0
284
- - test/dummy/tmp/cache/assets/D69/710/sprockets%2Ff67078d4b979a58c97feede196f6b385
285
- - test/dummy/tmp/cache/assets/CA7/D50/sprockets%2Fd095151316fd43a3062157b72d7de7f2
286
- - test/dummy/tmp/cache/assets/CA7/D70/sprockets%2F3e9e32bbc8c81a93002555265a36a852
287
- - test/dummy/app/helpers/application_helper.rb
288
- - test/dummy/app/controllers/application_controller.rb
289
- - test/dummy/app/assets/stylesheets/application.css
290
195
  - test/dummy/app/assets/javascripts/application.js
196
+ - test/dummy/app/assets/stylesheets/application.css
197
+ - test/dummy/app/controllers/application_controller.rb
198
+ - test/dummy/app/helpers/application_helper.rb
291
199
  - test/dummy/app/views/layouts/application.html.erb
292
- - test/dummy/config.ru
293
- - test/dummy/config/locales/en.yml
294
200
  - test/dummy/config/application.rb
295
- - test/dummy/config/application.rb.orig
296
- - test/dummy/config/initializers/backtrace_silencers.rb
297
- - test/dummy/config/initializers/session_store.rb
298
- - test/dummy/config/initializers/mime_types.rb
299
- - test/dummy/config/initializers/secret_token.rb
300
- - test/dummy/config/initializers/wrap_parameters.rb
301
- - test/dummy/config/initializers/inflections.rb
302
- - test/dummy/config/database.yml
303
- - test/dummy/config/routes.rb
304
201
  - test/dummy/config/boot.rb
202
+ - test/dummy/config/database.yml
305
203
  - test/dummy/config/environment.rb
306
204
  - test/dummy/config/environments/development.rb
307
205
  - test/dummy/config/environments/production.rb
308
206
  - test/dummy/config/environments/test.rb
207
+ - test/dummy/config/initializers/backtrace_silencers.rb
208
+ - test/dummy/config/initializers/inflections.rb
209
+ - test/dummy/config/initializers/mime_types.rb
210
+ - test/dummy/config/initializers/secret_token.rb
211
+ - test/dummy/config/initializers/session_store.rb
212
+ - test/dummy/config/initializers/wrap_parameters.rb
213
+ - test/dummy/config/locales/en.yml
214
+ - test/dummy/config/routes.rb
215
+ - test/dummy/config.ru
216
+ - test/dummy/db/development.sqlite3
217
+ - test/dummy/db/schema.rb
218
+ - test/dummy/db/test.sqlite3
219
+ - test/dummy/log/development.log
220
+ - test/dummy/log/test.log
221
+ - test/dummy/public/404.html
222
+ - test/dummy/public/422.html
223
+ - test/dummy/public/500.html
224
+ - test/dummy/public/favicon.ico
309
225
  - test/dummy/Rakefile
310
226
  - test/dummy/README.rdoc
227
+ - test/dummy/script/rails
228
+ - test/dummy/tmp/cache/assets/C3D/0C0/sprockets%2Fb01666017530b122ba58894b59b1551b
229
+ - test/dummy/tmp/cache/assets/C5D/870/sprockets%2F9695d21699b362bcc13260e71b679474
230
+ - test/dummy/tmp/cache/assets/C79/7C0/sprockets%2F831cb415f919c0a15d95e148020953f2
231
+ - test/dummy/tmp/cache/assets/CB7/870/sprockets%2F5358761e3329e2a4655ee7c0fd2609b5
232
+ - test/dummy/tmp/cache/assets/CD0/9A0/sprockets%2F61b95b7833a131f56a2096a3d2ba0c94
233
+ - test/dummy/tmp/cache/assets/CDA/480/sprockets%2F26eb073018913d788d2ee3f5151eea04
234
+ - test/dummy/tmp/cache/assets/CE1/850/sprockets%2Fb962434bbb22f17db956b8091c975f30
235
+ - test/dummy/tmp/cache/assets/D0C/EE0/sprockets%2F3fdf5762c392175ad2cba21454e5b972
236
+ - test/dummy/tmp/cache/assets/D42/180/sprockets%2F4af57a79abba3d4790ba1e7157f41939
237
+ - test/dummy/tmp/cache/assets/D54/E60/sprockets%2F8abf0788cb7dc878ea82239456149bed
238
+ - test/dummy/tmp/cache/assets/D5F/7E0/sprockets%2F26c1c2c6ba96ba84abf150e402d677c3
239
+ - test/dummy/tmp/cache/assets/D66/680/sprockets%2Fe0ba18d897f0c45f5e66b003c5ebd061
240
+ - test/dummy/tmp/cache/assets/D66/AE0/sprockets%2F25c91de251a8ab43652dc2ef55e2a29d
241
+ - test/dummy/tmp/cache/assets/DA7/470/sprockets%2F65bb61bf1edac19c0666e89b667d23ff
242
+ - test/dummy/tmp/cache/assets/DA9/F60/sprockets%2Fa95e444e8dca0e1a586dcef972b623f7
243
+ - test/dummy/tmp/cache/assets/DAC/A90/sprockets%2F2015f79881b518e9cdcdaf8dfb3e46c5
244
+ - test/helpers/web_console/console_session_helper_test.rb
311
245
  - test/models/console_session_test.rb
246
+ - test/test_helper.rb
247
+ - test/web_console/colors_test.rb
248
+ - test/web_console/engine_test.rb
249
+ - test/web_console/slave_test.rb
250
+ - test/web_console_test.rb.BACKUP.76930.rb
251
+ - test/web_console_test.rb.BASE.76930.rb
252
+ - test/web_console_test.rb.LOCAL.76930.rb
253
+ - test/web_console_test.rb.REMOTE.76930.rb