rails/web-console — pull request #94 by gsamokovarov (2014-12-31 15:38:20+00:00)
Title: Abstract REPL and REPLSession away from ActiveModel

`REPLSession` doesn't need to be an active model. Plus, it has a lot of cruft. Methods that used to be used in web-console 0.2 are unused now. A plain PORO with simpler interface can be used here.

`REPL` received an overhaul as well. The prompt used to be dynamic, however now its not. Just let the UI decide what to show and don't care here.

I also renamed `REPL` and `REPLSession` to fit their intentions better. `REPL` didn't wrap an external `REPL` and wasn't one either. It just evaluated code and formatted its output. I think `Evaluator` fits its purpose better. After its renaming `REPLSession` got out of date. Renamed it to simply `Session`.

As a bonus, I have tried to add more documentation to those classes.

Happy new year, folks! :fireworks: