lunar_shell 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/lunar_shell/lunar_shell.coffee +3 -3
  3. data/app/assets/javascripts/lunar_shell/satellites/passwd.coffee +1 -1
  4. data/app/assets/javascripts/lunar_shell/satellites/su.coffee +1 -1
  5. data/app/assets/stylesheets/lunar_shell/lunar_shell.sass +4 -3
  6. data/app/views/lunar_shell/satellites/_command_not_found.html.erb +1 -1
  7. data/app/views/lunar_shell/satellites/exit/run.js.erb +1 -1
  8. data/app/views/lunar_shell/satellites/help/run.js.erb +1 -1
  9. data/app/views/lunar_shell/satellites/passwd/create.js.erb +1 -1
  10. data/app/views/lunar_shell/satellites/passwd/no_user_error.js.erb +1 -1
  11. data/app/views/lunar_shell/satellites/quit/run.js.erb +1 -1
  12. data/app/views/lunar_shell/satellites/su/create.js.erb +1 -1
  13. data/app/views/lunar_shell/satellites/su/no_username.js.erb +1 -1
  14. data/app/views/lunar_shell/shells/_greeting.html +1 -1
  15. data/lib/generators/lunar_shell/satellite/templates/view.rb +1 -1
  16. data/lib/lunar_shell/version.rb +1 -1
  17. data/test/dummy/log/development.log +203 -0
  18. data/test/dummy/log/test.log +408 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v3.0/0Y/0ysf6RL1iOolmt5ouCYsano8aiy_WE9w52TF7l-poVI.cache +3 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5R/5rtK5jw3B6IxmNn1MYJpax-U08V7ISv2HBHHVChu6yw.cache +1 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5m/5mDZ2013vgxNPx2k47akhEge8h2JEVgis2qZ_szHo0k.cache +1 -0
  22. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ac/Ac4aqSgazQWSw0xksD26ts_RZV6kiQFj5iVpayYUrGE.cache +3 -0
  23. data/test/dummy/tmp/cache/assets/sprockets/v3.0/B-/b-ELTdnBEwwC8BxQ0jlXHxWKuONH_Udm06H6jJKh4yE.cache +1 -0
  24. data/test/dummy/tmp/cache/assets/sprockets/v3.0/CC/CcbbJMZmXW5jviW-L7Af9Cwn7ApeIEmarJTPn_6Qw40.cache +1 -0
  25. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Cw/cWJShoKWr7fYX55Liz1bukOwc-rKcskJpF59NW22Q0c.cache +1 -0
  26. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DJ/DJya0W6OxRXljBfs8ydxqfCpvkz3L7bU8RHdBi9heSY.cache +1 -0
  27. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Iw/IwjdBBrNvqgrKCB8-68KikQJwGGNDVZnuzkCFywos4I.cache +0 -0
  28. data/test/dummy/tmp/cache/assets/sprockets/v3.0/JU/JuMYGQ8_XSmEx-3eEq8i89gMHlYvaJb-BfPVKH_wMBY.cache +0 -0
  29. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Kx/KxWedBOAvqU7ustB51-ppJt0_RXQpllbBZdo2zsKHog.cache +1 -0
  30. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Lx/LxjnAQZ48gKWTWUJL684od3FxU3IakNHJaBHRPIuJPA.cache +1 -0
  31. data/test/dummy/tmp/cache/assets/sprockets/v3.0/MP/mpeSTTp-7ceZ3EkuMPZBHZQMrHr0wWj4zkitxk717z0.cache +1 -0
  32. data/test/dummy/tmp/cache/assets/sprockets/v3.0/N1/N12VL3AzvFwJsnhl2pg0UUajGO3ttWaiS6hPuLpUeUM.cache +77 -0
  33. data/test/dummy/tmp/cache/assets/sprockets/v3.0/NG/NGnVgXLMFkKIjU3Z0NINpJO_zMq5Vyq2o5_uadDHQtQ.cache +3 -0
  34. data/test/dummy/tmp/cache/assets/sprockets/v3.0/PL/plJ4-HNeGj4bTT1ZgkW0rLJgjrqhS2MAEMlMok7Cfq4.cache +0 -0
  35. data/test/dummy/tmp/cache/assets/sprockets/v3.0/PY/PYFCEKNZ8Nh8G0BCVmGEBWOEnqaInvQyUxYpNdMeFKo.cache +0 -0
  36. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Q2/Q2_Z0TDf3zeba0Fgq9aabQZyvP43y2W8GOTsbFKTthU.cache +1 -0
  37. data/test/dummy/tmp/cache/assets/sprockets/v3.0/WW/wwLEc-2jsbZCXsGbcgrNdPy8Pvl50BRsVMrQfEHTzDo.cache +0 -0
  38. data/test/dummy/tmp/cache/assets/sprockets/v3.0/a0/a0EV8Kyjnawli9yd5TgYJSRjJrxnwxlHMciupuavgB0.cache +1 -0
  39. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ck/CKHTM_Cj9I8Y6ADvR15nIyZthQOTFG_QpnYw_oqLO84.cache +0 -0
  40. data/test/dummy/tmp/cache/assets/sprockets/v3.0/e7/e74Gn06RKen7J14_IId71dwhVDlILyOuPNZu2NhyxQM.cache +0 -0
  41. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hP/hph57SiiUx32JjPDmFJqhCzhwuLoXDEa4x6f9GPj4Wc.cache +0 -0
  42. data/test/dummy/tmp/cache/assets/sprockets/v3.0/jI/JI9MBdVAgYFkVdjGclrsXvlycpxc0AujXR9qfC6umy4.cache +1 -0
  43. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mK/mKIyXPWCSB7gsHFo0hi10oXC_oHFfqlcd_0iKSNNDFI.cache +1 -0
  44. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pB/Pb4GMqmHUNerlhSN8gyqSX5yoXoYirls3Z3oM5IUL1A.cache +0 -0
  45. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sI/sIvxXQt-NAz-qyJSYKaX06GTGErE50A2014PIVQyGOU.cache +1 -0
  46. data/test/dummy/tmp/cache/assets/sprockets/v3.0/uk/uk3-UD4DKOM2e6XpgOwQs1kqAfzaysk0P1X5zrnEWF4.cache +0 -0
  47. data/test/dummy/tmp/cache/assets/sprockets/v3.0/yx/yxsj16sC1wN4t_r8Wv66s07FE2NwdfM7P2XdQdVzqvQ.cache +1 -0
  48. data/test/dummy/tmp/cache/assets/sprockets/v3.0/zL/ZLENVDz3TdWaZuh6te4od2hdCMhw0niwn_TEhQc-xgc.cache +0 -0
  49. metadata +61 -1
@@ -39372,3 +39372,411 @@ Processing by LunarShell::Satellites::ClearController#run as JS
39372
39372
  Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/clear/run.js.erb (3.9ms)
39373
39373
  Completed 200 OK in 27ms (Views: 25.2ms | ActiveRecord: 0.7ms)
39374
39374
   (0.3ms) ROLLBACK
39375
+ ActiveRecord::SchemaMigration Load (6.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
39376
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "lunar_shell_users" DISABLE TRIGGER ALL
39377
+  (0.3ms) BEGIN
39378
+ Fixture Delete (0.4ms) DELETE FROM "lunar_shell_users"
39379
+ Fixture Insert (0.3ms) INSERT INTO "lunar_shell_users" ("admin", "password_digest", "username", "created_at", "updated_at", "id") VALUES ('t', '$2a$04$hRV2lr6lKshNpdhvWG9PJOBCi.VzhGctSh84DUvk2aJ5EyLIRCS06', 'root', '2016-06-26 19:57:58', '2016-06-26 19:57:58', 135138680)
39380
+ Fixture Insert (0.1ms) INSERT INTO "lunar_shell_users" ("admin", "password_digest", "username", "created_at", "updated_at", "id") VALUES ('f', '$2a$04$r/CHCukrRHdveDd9.CldMO267UjaGtTHKtb8ovBusgDb1r8s7xZui', 'dave', '2016-06-26 19:57:58', '2016-06-26 19:57:58', 227792459)
39381
+  (65.6ms) COMMIT
39382
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "lunar_shell_users" ENABLE TRIGGER ALL
39383
+  (0.1ms) BEGIN
39384
+ -------------------------------
39385
+ HistoryTest: test_shows_history
39386
+ -------------------------------
39387
+ Started GET "/" for 127.0.0.1 at 2016-06-26 12:58:00 -0700
39388
+ Processing by LunarShell::ShellsController#show as HTML
39389
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_greeting.html (0.3ms)
39390
+ LunarShell::User Load (1.1ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39391
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (3.6ms)
39392
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (5.9ms)
39393
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/show.html.erb within layouts/lunar_shell/application (14.0ms)
39394
+ Completed 200 OK in 496ms (Views: 486.7ms | ActiveRecord: 1.1ms)
39395
+ Started GET "/assets/lunar_shell/application-a93d380a2f4d12c41082b35fbe8a70cf20f4642fddb125b5923eba8cfd1d1190.css" for 127.0.0.1 at 2016-06-26 12:58:01 -0700
39396
+ Started GET "/assets/lunar_shell/application-288b949852dd71748105cdf84cd677b94cfb1eacbd6c768f228edaf167e6357c.js" for 127.0.0.1 at 2016-06-26 12:58:01 -0700
39397
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:01 -0700
39398
+ Processing by LunarShell::Satellites::ExitController#run as JS
39399
+ Parameters: {"utf8"=>"✓", "command"=>"exit"}
39400
+ LunarShell::User Load (0.6ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39401
+ CACHE (0.0ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39402
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (1.0ms)
39403
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (14.2ms)
39404
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/exit/run.js.erb (27.4ms)
39405
+ Completed 200 OK in 51ms (Views: 48.1ms | ActiveRecord: 0.6ms)
39406
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:01 -0700
39407
+ Processing by LunarShell::Satellites::QuitController#run as JS
39408
+ Parameters: {"utf8"=>"✓", "command"=>"quit"}
39409
+ LunarShell::User Load (0.4ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39410
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (1.3ms)
39411
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.8ms)
39412
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/quit/run.js.erb (2.6ms)
39413
+ Completed 200 OK in 22ms (Views: 21.1ms | ActiveRecord: 0.4ms)
39414
+ Started POST "/satellites/run.js" for 127.0.0.1 at 2016-06-26 12:58:02 -0700
39415
+ Processing by LunarShell::Satellites::HistoryController#run as */*
39416
+ Parameters: {"parameters"=>["down"], "command"=>"history"}
39417
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/history/run.js.erb (0.4ms)
39418
+ Completed 200 OK in 18ms (Views: 17.5ms | ActiveRecord: 0.0ms)
39419
+ Started POST "/satellites/run.js" for 127.0.0.1 at 2016-06-26 12:58:02 -0700
39420
+ Processing by LunarShell::Satellites::HistoryController#run as */*
39421
+ Parameters: {"parameters"=>["up"], "command"=>"history"}
39422
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/history/run.js.erb (0.0ms)
39423
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
39424
+ Started POST "/satellites/run.js" for 127.0.0.1 at 2016-06-26 12:58:04 -0700
39425
+ Processing by LunarShell::Satellites::HistoryController#run as */*
39426
+ Parameters: {"parameters"=>["up"], "command"=>"history"}
39427
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/history/run.js.erb (0.0ms)
39428
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
39429
+ Started POST "/satellites/run.js" for 127.0.0.1 at 2016-06-26 12:58:06 -0700
39430
+ Processing by LunarShell::Satellites::HistoryController#run as */*
39431
+ Parameters: {"parameters"=>["up"], "command"=>"history"}
39432
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/history/run.js.erb (0.1ms)
39433
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
39434
+ Started POST "/satellites/run.js" for 127.0.0.1 at 2016-06-26 12:58:08 -0700
39435
+ Processing by LunarShell::Satellites::HistoryController#run as */*
39436
+ Parameters: {"parameters"=>["down"], "command"=>"history"}
39437
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/history/run.js.erb (0.0ms)
39438
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
39439
+ Started POST "/satellites/run.js" for 127.0.0.1 at 2016-06-26 12:58:10 -0700
39440
+ Processing by LunarShell::Satellites::HistoryController#run as */*
39441
+ Parameters: {"parameters"=>["down"], "command"=>"history"}
39442
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/history/run.js.erb (0.0ms)
39443
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
39444
+  (0.2ms) ROLLBACK
39445
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "lunar_shell_users" DISABLE TRIGGER ALL
39446
+  (0.1ms) BEGIN
39447
+ Fixture Delete (0.3ms) DELETE FROM "lunar_shell_users"
39448
+ Fixture Insert (0.3ms) INSERT INTO "lunar_shell_users" ("admin", "password_digest", "username", "created_at", "updated_at", "id") VALUES ('t', '$2a$04$/ku6WpiPUGkgUH/KJX./NOOkw2ej7s9UMuLzkZWN1xf5UTW153bye', 'root', '2016-06-26 19:58:10', '2016-06-26 19:58:10', 135138680)
39449
+ Fixture Insert (0.2ms) INSERT INTO "lunar_shell_users" ("admin", "password_digest", "username", "created_at", "updated_at", "id") VALUES ('f', '$2a$04$imr8ZLuypXAwS6PXfIPXW.0iUOY9SeFbjLlJ7bOKiEUd/gwJQoS7W', 'dave', '2016-06-26 19:58:10', '2016-06-26 19:58:10', 227792459)
39450
+  (1.2ms) COMMIT
39451
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "lunar_shell_users" ENABLE TRIGGER ALL
39452
+  (0.1ms) BEGIN
39453
+ --------------------------
39454
+ PasswdTest: test_logged_in
39455
+ --------------------------
39456
+ Started GET "/" for 127.0.0.1 at 2016-06-26 12:58:10 -0700
39457
+ Processing by LunarShell::ShellsController#show as HTML
39458
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_greeting.html (0.0ms)
39459
+ LunarShell::User Load (0.6ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39460
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (1.5ms)
39461
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.8ms)
39462
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/show.html.erb within layouts/lunar_shell/application (2.1ms)
39463
+ Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.6ms)
39464
+ LunarShell::User Load (0.2ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE "lunar_shell_users"."id" = $1 LIMIT 1 [["id", 227792459]]
39465
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:10 -0700
39466
+ Processing by LunarShell::Satellites::SuController#run as JS
39467
+ Parameters: {"utf8"=>"✓", "parameters"=>["dave"], "command"=>"su"}
39468
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/_form.html.erb (9.1ms)
39469
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/run.js.erb (23.5ms)
39470
+ Completed 200 OK in 43ms (Views: 42.0ms | ActiveRecord: 0.0ms)
39471
+ Started POST "/satellites/su" for 127.0.0.1 at 2016-06-26 12:58:10 -0700
39472
+ Processing by LunarShell::Satellites::SuController#create as JS
39473
+ Parameters: {"utf8"=>"✓", "user"=>{"username"=>"dave", "password"=>"[FILTERED]"}}
39474
+ LunarShell::User Load (0.5ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = 'dave') ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39475
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (0.1ms)
39476
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (0.5ms)
39477
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/create.js.erb (1.5ms)
39478
+ Completed 200 OK in 19ms (Views: 15.9ms | ActiveRecord: 0.5ms)
39479
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:11 -0700
39480
+ Processing by LunarShell::Satellites::PasswdController#run as JS
39481
+ Parameters: {"utf8"=>"✓", "command"=>"passwd"}
39482
+ LunarShell::User Load (0.8ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = 227792459 OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39483
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/passwd/_form.html.erb (1.1ms)
39484
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/passwd/run.js.erb (15.4ms)
39485
+ Completed 200 OK in 36ms (Views: 34.4ms | ActiveRecord: 0.8ms)
39486
+ Started POST "/satellites/passwd/new_password" for 127.0.0.1 at 2016-06-26 12:58:11 -0700
39487
+ Processing by LunarShell::Satellites::PasswdController#new_password as JS
39488
+ Parameters: {"utf8"=>"✓", "user"=>{"current_password"=>"[FILTERED]"}}
39489
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/passwd/new_password.js.erb (0.5ms)
39490
+ Completed 200 OK in 16ms (Views: 15.9ms | ActiveRecord: 0.0ms)
39491
+ Started POST "/satellites/passwd/confirm_password" for 127.0.0.1 at 2016-06-26 12:58:11 -0700
39492
+ Processing by LunarShell::Satellites::PasswdController#confirm_password as JS
39493
+ Parameters: {"utf8"=>"✓", "user"=>{"current_password"=>"[FILTERED]", "password"=>"[FILTERED]"}}
39494
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/passwd/confirm_password.js.erb (0.6ms)
39495
+ Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.0ms)
39496
+ Started POST "/satellites/passwd" for 127.0.0.1 at 2016-06-26 12:58:11 -0700
39497
+ Processing by LunarShell::Satellites::PasswdController#create as JS
39498
+ Parameters: {"utf8"=>"✓", "user"=>{"current_password"=>"[FILTERED]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
39499
+ LunarShell::User Load (0.8ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = 227792459 OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39500
+  (0.3ms) BEGIN
39501
+ SQL (0.2ms) UPDATE "lunar_shell_users" SET "password_digest" = $1, "updated_at" = $2 WHERE "lunar_shell_users"."id" = $3 [["password_digest", "$2a$04$BWqaiG1zQM/EkAaLgafKJ.gmJ.VCjSKRf/TpMuEnp9WvSQ/z5Pa.u"], ["updated_at", "2016-06-26 19:58:11.464160"], ["id", 227792459]]
39502
+  (6.0ms) COMMIT
39503
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (0.2ms)
39504
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (0.6ms)
39505
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/passwd/create.js.erb (1.8ms)
39506
+ Completed 200 OK in 32ms (Views: 15.8ms | ActiveRecord: 7.4ms)
39507
+  (0.2ms) ROLLBACK
39508
+  (0.1ms) BEGIN
39509
+ ------------------------------
39510
+ PasswdTest: test_not_logged_in
39511
+ ------------------------------
39512
+ Started GET "/" for 127.0.0.1 at 2016-06-26 12:58:11 -0700
39513
+ Processing by LunarShell::ShellsController#show as HTML
39514
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_greeting.html (0.0ms)
39515
+ LunarShell::User Load (0.3ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = 227792459 OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39516
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (1.0ms)
39517
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.2ms)
39518
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/show.html.erb within layouts/lunar_shell/application (1.5ms)
39519
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)
39520
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:11 -0700
39521
+ Processing by LunarShell::Satellites::PasswdController#run as JS
39522
+ Parameters: {"utf8"=>"✓", "command"=>"passwd"}
39523
+ LunarShell::User Load (0.4ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = 227792459 OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39524
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/passwd/_form.html.erb (0.4ms)
39525
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/passwd/run.js.erb (0.6ms)
39526
+ Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.4ms)
39527
+  (0.1ms) ROLLBACK
39528
+  (0.1ms) BEGIN
39529
+ ------------------------
39530
+ ExitTest: test_logged_in
39531
+ ------------------------
39532
+ Started GET "/" for 127.0.0.1 at 2016-06-26 12:58:13 -0700
39533
+ Processing by LunarShell::ShellsController#show as HTML
39534
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_greeting.html (0.0ms)
39535
+ LunarShell::User Load (0.3ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = 227792459 OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39536
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (0.9ms)
39537
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.1ms)
39538
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/show.html.erb within layouts/lunar_shell/application (1.4ms)
39539
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)
39540
+ LunarShell::User Load (0.6ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE "lunar_shell_users"."id" = $1 LIMIT 1 [["id", 227792459]]
39541
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:13 -0700
39542
+ Processing by LunarShell::Satellites::SuController#run as JS
39543
+ Parameters: {"utf8"=>"✓", "parameters"=>["dave"], "command"=>"su"}
39544
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/_form.html.erb (0.5ms)
39545
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/run.js.erb (1.7ms)
39546
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
39547
+ Started POST "/satellites/su" for 127.0.0.1 at 2016-06-26 12:58:13 -0700
39548
+ Processing by LunarShell::Satellites::SuController#create as JS
39549
+ Parameters: {"utf8"=>"✓", "user"=>{"username"=>"dave", "password"=>"[FILTERED]"}}
39550
+ LunarShell::User Load (0.5ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = 'dave') ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39551
+ LunarShell::User Load (0.3ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39552
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (0.9ms)
39553
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.3ms)
39554
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/create.js.erb (1.5ms)
39555
+ Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.7ms)
39556
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:14 -0700
39557
+ Processing by LunarShell::Satellites::ExitController#run as JS
39558
+ Parameters: {"utf8"=>"✓", "command"=>"exit"}
39559
+ LunarShell::User Load (0.8ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39560
+ CACHE (0.0ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39561
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (0.4ms)
39562
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (0.7ms)
39563
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/exit/run.js.erb (0.9ms)
39564
+ Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.8ms)
39565
+  (0.1ms) ROLLBACK
39566
+  (0.1ms) BEGIN
39567
+ ----------------------------
39568
+ ExitTest: test_not_logged_in
39569
+ ----------------------------
39570
+ Started GET "/" for 127.0.0.1 at 2016-06-26 12:58:16 -0700
39571
+ Processing by LunarShell::ShellsController#show as HTML
39572
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_greeting.html (0.0ms)
39573
+ LunarShell::User Load (0.3ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39574
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (0.8ms)
39575
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.2ms)
39576
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/show.html.erb within layouts/lunar_shell/application (1.5ms)
39577
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)
39578
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:16 -0700
39579
+ Processing by LunarShell::Satellites::ExitController#run as JS
39580
+ Parameters: {"utf8"=>"✓", "command"=>"exit"}
39581
+ LunarShell::User Load (0.5ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39582
+ CACHE (0.0ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39583
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (0.6ms)
39584
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (0.9ms)
39585
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/exit/run.js.erb (1.3ms)
39586
+ Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.5ms)
39587
+  (0.1ms) ROLLBACK
39588
+  (0.1ms) BEGIN
39589
+ ------------------------------
39590
+ ClearTest: test_clears_history
39591
+ ------------------------------
39592
+ Started GET "/" for 127.0.0.1 at 2016-06-26 12:58:16 -0700
39593
+ Processing by LunarShell::ShellsController#show as HTML
39594
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_greeting.html (0.0ms)
39595
+ LunarShell::User Load (0.3ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39596
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (0.8ms)
39597
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.1ms)
39598
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/show.html.erb within layouts/lunar_shell/application (1.3ms)
39599
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)
39600
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:16 -0700
39601
+ Processing by LunarShell::Satellites::ClearController#run as JS
39602
+ Parameters: {"utf8"=>"✓", "command"=>"clear"}
39603
+ LunarShell::User Load (0.3ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39604
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (1.0ms)
39605
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.4ms)
39606
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/clear/run.js.erb (1.9ms)
39607
+ Completed 200 OK in 19ms (Views: 18.6ms | ActiveRecord: 0.3ms)
39608
+  (0.1ms) ROLLBACK
39609
+  (0.1ms) BEGIN
39610
+ -------------------
39611
+ SuTest: test_log_in
39612
+ -------------------
39613
+ Started GET "/" for 127.0.0.1 at 2016-06-26 12:58:16 -0700
39614
+ Processing by LunarShell::ShellsController#show as HTML
39615
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_greeting.html (0.0ms)
39616
+ LunarShell::User Load (0.3ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39617
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (0.9ms)
39618
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.1ms)
39619
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/show.html.erb within layouts/lunar_shell/application (1.4ms)
39620
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)
39621
+ LunarShell::User Load (0.2ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE "lunar_shell_users"."id" = $1 LIMIT 1 [["id", 227792459]]
39622
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:16 -0700
39623
+ Processing by LunarShell::Satellites::SuController#run as JS
39624
+ Parameters: {"utf8"=>"✓", "parameters"=>["dave"], "command"=>"su"}
39625
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/_form.html.erb (0.4ms)
39626
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/run.js.erb (0.6ms)
39627
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
39628
+ Started POST "/satellites/su" for 127.0.0.1 at 2016-06-26 12:58:16 -0700
39629
+ Processing by LunarShell::Satellites::SuController#create as JS
39630
+ Parameters: {"utf8"=>"✓", "user"=>{"username"=>"dave", "password"=>"[FILTERED]"}}
39631
+ LunarShell::User Load (0.5ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = 'dave') ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39632
+ LunarShell::User Load (0.4ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39633
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (1.1ms)
39634
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.4ms)
39635
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/create.js.erb (1.7ms)
39636
+ Completed 200 OK in 6ms (Views: 1.7ms | ActiveRecord: 0.9ms)
39637
+  (0.1ms) ROLLBACK
39638
+  (0.1ms) BEGIN
39639
+ -------------------------------
39640
+ SuTest: test_can_substitue_user
39641
+ -------------------------------
39642
+ Started GET "/" for 127.0.0.1 at 2016-06-26 12:58:16 -0700
39643
+ Processing by LunarShell::ShellsController#show as HTML
39644
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_greeting.html (0.0ms)
39645
+ LunarShell::User Load (0.5ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39646
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (1.3ms)
39647
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.7ms)
39648
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/show.html.erb within layouts/lunar_shell/application (2.0ms)
39649
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)
39650
+ LunarShell::User Load (0.2ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE "lunar_shell_users"."id" = $1 LIMIT 1 [["id", 227792459]]
39651
+ LunarShell::User Load (0.2ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE "lunar_shell_users"."id" = $1 LIMIT 1 [["id", 135138680]]
39652
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:17 -0700
39653
+ Processing by LunarShell::Satellites::SuController#run as JS
39654
+ Parameters: {"utf8"=>"✓", "parameters"=>["dave"], "command"=>"su"}
39655
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/_form.html.erb (0.4ms)
39656
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/run.js.erb (0.6ms)
39657
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
39658
+ Started POST "/satellites/su" for 127.0.0.1 at 2016-06-26 12:58:17 -0700
39659
+ Processing by LunarShell::Satellites::SuController#create as JS
39660
+ Parameters: {"utf8"=>"✓", "user"=>{"username"=>"dave", "password"=>"[FILTERED]"}}
39661
+ LunarShell::User Load (0.4ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = 'dave') ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39662
+ LunarShell::User Load (0.3ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39663
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (0.8ms)
39664
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.1ms)
39665
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/create.js.erb (1.3ms)
39666
+ Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.7ms)
39667
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:17 -0700
39668
+ Processing by LunarShell::Satellites::SuController#run as JS
39669
+ Parameters: {"utf8"=>"✓", "parameters"=>["root"], "command"=>"su"}
39670
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/_form.html.erb (0.4ms)
39671
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/run.js.erb (0.6ms)
39672
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
39673
+ Started POST "/satellites/su" for 127.0.0.1 at 2016-06-26 12:58:17 -0700
39674
+ Processing by LunarShell::Satellites::SuController#create as JS
39675
+ Parameters: {"utf8"=>"✓", "user"=>{"username"=>"root", "password"=>"[FILTERED]"}}
39676
+ LunarShell::User Load (0.5ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = 'root') ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39677
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (0.2ms)
39678
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (0.7ms)
39679
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/create.js.erb (0.9ms)
39680
+ Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 0.5ms)
39681
+  (0.2ms) ROLLBACK
39682
+  (0.1ms) BEGIN
39683
+ --------------------------------
39684
+ NoCommandTest: test_nothing_sent
39685
+ --------------------------------
39686
+ Started GET "/" for 127.0.0.1 at 2016-06-26 12:58:17 -0700
39687
+ Processing by LunarShell::ShellsController#show as HTML
39688
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_greeting.html (0.1ms)
39689
+ LunarShell::User Load (0.3ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = 135138680 OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39690
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (1.0ms)
39691
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.3ms)
39692
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/show.html.erb within layouts/lunar_shell/application (1.6ms)
39693
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)
39694
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:17 -0700
39695
+ Processing by LunarShell::SatellitesController#run as JS
39696
+ Parameters: {"utf8"=>"✓", "error"=>"run"}
39697
+ LunarShell::User Load (0.3ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = 135138680 OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39698
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (1.5ms)
39699
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.9ms)
39700
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/no_command.js.erb (2.6ms)
39701
+ Completed 200 OK in 19ms (Views: 18.8ms | ActiveRecord: 0.3ms)
39702
+  (0.1ms) ROLLBACK
39703
+  (0.1ms) BEGIN
39704
+ ------------------------
39705
+ QuitTest: test_logged_in
39706
+ ------------------------
39707
+ Started GET "/" for 127.0.0.1 at 2016-06-26 12:58:19 -0700
39708
+ Processing by LunarShell::ShellsController#show as HTML
39709
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_greeting.html (0.0ms)
39710
+ LunarShell::User Load (0.3ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = 135138680 OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39711
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (0.9ms)
39712
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.3ms)
39713
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/show.html.erb within layouts/lunar_shell/application (1.5ms)
39714
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)
39715
+ LunarShell::User Load (0.3ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE "lunar_shell_users"."id" = $1 LIMIT 1 [["id", 227792459]]
39716
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:19 -0700
39717
+ Processing by LunarShell::Satellites::SuController#run as JS
39718
+ Parameters: {"utf8"=>"✓", "parameters"=>["dave"], "command"=>"su"}
39719
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/_form.html.erb (0.5ms)
39720
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/run.js.erb (0.9ms)
39721
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
39722
+ Started POST "/satellites/su" for 127.0.0.1 at 2016-06-26 12:58:19 -0700
39723
+ Processing by LunarShell::Satellites::SuController#create as JS
39724
+ Parameters: {"utf8"=>"✓", "user"=>{"username"=>"dave", "password"=>"[FILTERED]"}}
39725
+ LunarShell::User Load (0.4ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = 'dave') ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39726
+ LunarShell::User Load (0.3ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39727
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (1.0ms)
39728
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.3ms)
39729
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/su/create.js.erb (1.6ms)
39730
+ Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.7ms)
39731
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:20 -0700
39732
+ Processing by LunarShell::Satellites::QuitController#run as JS
39733
+ Parameters: {"utf8"=>"✓", "command"=>"quit"}
39734
+ LunarShell::User Load (0.3ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39735
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (1.1ms)
39736
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.5ms)
39737
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/quit/run.js.erb (1.7ms)
39738
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
39739
+  (0.2ms) ROLLBACK
39740
+  (0.1ms) BEGIN
39741
+ ----------------------------
39742
+ QuitTest: test_not_logged_in
39743
+ ----------------------------
39744
+ Started GET "/" for 127.0.0.1 at 2016-06-26 12:58:20 -0700
39745
+ Processing by LunarShell::ShellsController#show as HTML
39746
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_greeting.html (0.0ms)
39747
+ LunarShell::User Load (0.3ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39748
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (0.8ms)
39749
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.2ms)
39750
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/show.html.erb within layouts/lunar_shell/application (1.4ms)
39751
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms)
39752
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:20 -0700
39753
+ Processing by LunarShell::Satellites::QuitController#run as JS
39754
+ Parameters: {"utf8"=>"✓", "command"=>"quit"}
39755
+ LunarShell::User Load (0.5ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39756
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (1.2ms)
39757
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.6ms)
39758
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/quit/run.js.erb (1.9ms)
39759
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.5ms)
39760
+  (0.1ms) ROLLBACK
39761
+  (0.1ms) BEGIN
39762
+ --------------------------------------
39763
+ CommandNotFoundTest: test_nothing_sent
39764
+ --------------------------------------
39765
+ Started GET "/" for 127.0.0.1 at 2016-06-26 12:58:20 -0700
39766
+ Processing by LunarShell::ShellsController#show as HTML
39767
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_greeting.html (0.0ms)
39768
+ LunarShell::User Load (0.5ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39769
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (1.3ms)
39770
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.7ms)
39771
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/show.html.erb within layouts/lunar_shell/application (2.0ms)
39772
+ Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms)
39773
+ Started POST "/satellites/run" for 127.0.0.1 at 2016-06-26 12:58:20 -0700
39774
+ Processing by LunarShell::SatellitesController#run as JS
39775
+ Parameters: {"utf8"=>"✓", "command"=>"asdklfj", "error"=>"asdklfj/run"}
39776
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/_command_not_found.html.erb (0.5ms)
39777
+ LunarShell::User Load (0.3ms) SELECT "lunar_shell_users".* FROM "lunar_shell_users" WHERE (id = NULL OR username = NULL) ORDER BY "lunar_shell_users"."id" ASC LIMIT 1
39778
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_prompt.html.erb (0.9ms)
39779
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/shells/_cli.html.erb (1.3ms)
39780
+ Rendered /Users/dave/Playground/lunar_shell/app/views/lunar_shell/satellites/command_not_found.js.erb (17.2ms)
39781
+ Completed 200 OK in 31ms (Views: 30.4ms | ActiveRecord: 0.3ms)
39782
+  (0.1ms) ROLLBACK
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.sass&pipeline=self;TTI"ifile-digest:///Users/dave/Playground/lunar_shell/app/assets/stylesheets/lunar_shell/lunar_shell.sass;TTF
@@ -0,0 +1 @@
1
+ "%&����a�>�o���~�z����ӖV���65�
@@ -0,0 +1 @@
1
+ I"�/Users/dave/Playground/lunar_shell/app/assets/stylesheets/lunar_shell/application.css?type=text/css&pipeline=debug&id=154fd46b3a6a38a0e4d7db05351a3b78577d19a1dc5721cbe939f329abd9eb56:ET
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"kfile-digest:///Users/dave/Playground/lunar_shell/app/assets/javascripts/lunar_shell/lunar_shell.coffee;TTF
@@ -0,0 +1 @@
1
+ "%r��܁l�W��P��?+��l���g��8*���
@@ -0,0 +1 @@
1
+ I"�/Users/dave/Playground/lunar_shell/app/assets/javascripts/lunar_shell/lunar_shell.coffee?type=application/javascript&pipeline=self&id=03918889f2e97368a5ef54d1ef62ddb19c0dc0a3b2154594abdf795e696ee9be:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dave/Playground/lunar_shell/app/assets/javascripts/lunar_shell/application.js?type=application/javascript&pipeline=self&id=2de0a58f513b9c996c48862238c6a502668af5445a97a0011f739dda58aa9756:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dave/Playground/lunar_shell/app/assets/stylesheets/lunar_shell/application.css?type=text/css&id=8c172623e30e2003993452adfee0bae13c34166048469c27da3f11144b38acaf:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dave/Playground/lunar_shell/app/assets/stylesheets/lunar_shell/application.css?type=text/css&pipeline=debug&id=7ab3915c31c5894b6bb979181a2772c1dbede1adc3ff94aeb2d7b6726316030f:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dave/Playground/lunar_shell/app/assets/stylesheets/lunar_shell/lunar_shell.sass?type=text/css&pipeline=self&id=aa3ede6c5d6aec36d9e2e1b874017c69214cd82a4d545226ae99a216252a01a8:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dave/Playground/lunar_shell/app/assets/javascripts/lunar_shell/application.js?type=application/javascript&pipeline=debug&id=a34758f15528ef6c21bcdab69375400f84a0f94150807cc8c973220543d16f49:ET
@@ -0,0 +1,77 @@
1
+ I"+(function() {
2
+ var clear_command, cli_submit, focus_cli, history_searchable, search_history, set_input_field_width;
3
+
4
+ focus_cli = function() {
5
+ return $('.input_field').focus();
6
+ };
7
+
8
+ cli_submit = function() {
9
+ return $('#cli').submit(function(e) {
10
+ var input;
11
+ input = $('#command_line').val();
12
+ if (clear_command(input)) {
13
+ $('#shell-history').append("<div class=\"history-io history-io-input\"></div>");
14
+ $('#shell-cli .prompt').clone().appendTo('#shell-history .history-io-input:last');
15
+ return $('.history-io-input').last().append(input);
16
+ }
17
+ });
18
+ };
19
+
20
+ clear_command = function(input) {
21
+ return !(input === 'clear' || input.startsWith('clear '));
22
+ };
23
+
24
+ set_input_field_width = function() {
25
+ var body_w, prompt_w;
26
+ body_w = $('body').width();
27
+ prompt_w = $('#shell-cli label').width();
28
+ return $('.input_field').width(body_w - prompt_w - 50);
29
+ };
30
+
31
+ history_searchable = function() {
32
+ return $('#command_line').keyup(function(e) {
33
+ return search_history(e);
34
+ });
35
+ };
36
+
37
+ search_history = function(e) {
38
+ var dir;
39
+ e.preventDefault();
40
+ dir = (function() {
41
+ switch (e.which) {
42
+ case 38:
43
+ return 'up';
44
+ case 40:
45
+ return 'down';
46
+ }
47
+ })();
48
+ if (dir != null) {
49
+ return $.post('/satellites/run.js', {
50
+ command_line: 'history ' + dir
51
+ });
52
+ }
53
+ };
54
+
55
+ $(function() {
56
+ focus_cli();
57
+ cli_submit();
58
+ set_input_field_width();
59
+ history_searchable();
60
+ return $(document).click(function() {
61
+ return focus_cli();
62
+ });
63
+ });
64
+
65
+ $(document).ajaxComplete(function() {
66
+ focus_cli();
67
+ cli_submit();
68
+ set_input_field_width();
69
+ return history_searchable();
70
+ });
71
+
72
+ $(window).on('resize', function() {
73
+ return set_input_field_width();
74
+ });
75
+
76
+ }).call(this);
77
+ :ET
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.sass&pipeline=self;TTI"ifile-digest:///Users/dave/Playground/lunar_shell/app/assets/stylesheets/lunar_shell/lunar_shell.sass;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/dave/Playground/lunar_shell/app/assets/stylesheets/lunar_shell/application.css?type=text/css&pipeline=self&id=87e4b350248eb8d4badded8f14675ef8f275e221084801e38972115ac9b86533:ET
@@ -0,0 +1 @@
1
+ "%�C��e���+�<����@eS50��G��L�
@@ -0,0 +1 @@
1
+ I"�/Users/dave/Playground/lunar_shell/app/assets/javascripts/lunar_shell/application.js?type=application/javascript&id=7402cfdf6a1259e6c33035ca9ebbd52e8062165a9313d8207771ab43312612b7:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dave/Playground/lunar_shell/app/assets/stylesheets/lunar_shell/application.css?type=text/css&pipeline=self&id=e6e080983313398f51935def69ede738efcf5315042babb0cb7dbe915884b2c5:ET
@@ -0,0 +1 @@
1
+ "%&����a�>�o���~�z����ӖV���65�
@@ -0,0 +1 @@
1
+ I"�/Users/dave/Playground/lunar_shell/app/assets/stylesheets/lunar_shell/lunar_shell.sass?type=text/css&pipeline=self&id=689c87390c9626e16796d8299b5d2debebbf667f8391b2aa6fe4882c896c5250:ET