Permalink
Commits on Sep 7, 2011
  1. @banister
  2. @banister
  3. @banister

    added Pry::NAV_PROMPT and Pry::SIMPLE_PRINT to pry.rb

    NAV_PROMPT shows you your current context along with all the previous contexts separated by a "/" a la shell-style; making it easier to navigate around. Also includes current index of _in_ and _out_ locals.
    
    SIMPLE_PRINT is just a simple inspect style printer (a la IRB); it doesnt use coloration or pretty printing or paging and can die for weird input. But is likely slightly faster for large output
    banister committed Sep 7, 2011
  4. @banister
  5. @banister
  6. @banister
Commits on Sep 6, 2011
  1. @banister

    JRuby finally supported, passing 100% of tests - requires updated met…

    …hod_source gem (version 0.6.5).
    banister committed Sep 6, 2011
  2. @banister
  3. @banister
  4. @banister

    when playing string vars using the play command can now use --lines, …

    …note only able to play string variables now - not just arbitrary strings. Primary use is with _in_ special local
    banister committed Sep 6, 2011
  5. @banister
  6. @banister
  7. @banister

    This closes issue #241. Files are not eval'd at top-level and temps a…

    …re inserted into the input buffer (eval_string). edit --ex now auto-reloads too.
    
    Auto-reloads can be suppressed using the new `-n` option. Situation is now the following:
    
    (1) files are not reloaded by default
    (2) if files are reloaded (using -r) they are eval'd at toplevel
    (3) edit --ex is reloaded by default and is eval'd at toplevel (same as files)
    (4) edit -t or just `edit` is reloaded by default and is inserted into input buffer (eval_string)
    (5) if you need to suppress auto-reloading for edit --ex or edit -t then also pass the -n switch
    banister committed Sep 6, 2011
  8. @banister
Commits on Sep 5, 2011
  1. @rf-

    add documentation for History

    rf- committed Sep 5, 2011
  2. @banister
  3. @banister

    Added support for complex syntax to the `cd` command, e.g: cd ../@x/y…

    …../z. Updated tests.
    
    cd @x/@y/@z will push @x and @y and @z onto the stack in that order
    cd ../../ will pop @z and @y off the stack
    banister committed Sep 5, 2011
  4. @banister
  5. @rf-

    bug fix

    rf- committed Sep 5, 2011
  6. @rf-
  7. @rf-
  8. @rf-
  9. @rf-

    fix history load speed on startup

    rf- committed Sep 5, 2011
  10. @banister

    updated CHANGELOG and TODO

    banister committed Sep 5, 2011
  11. @banister

    supercharged the `edit` command

    (1) It now dumps contents of input buffer in an editor when you type 'edit' (or edit -t) inside a non-empty input buffer
    (2) it accepts the file:line syntax. This closes #204
    
    When it evals files it now (by default) just replaces the content of eval_string with the content of the file. This is particularly useful if content of file was an incomplete expression as no error is raised instead
    the input buffer just awaits more input.
    banister committed Sep 5, 2011
  12. @banister
  13. @banister
Commits on Sep 4, 2011
  1. @banister

    Using a new Pry::CommandProcessor::Result class to manage the way com…

    …mand results are handled.
    
    Behaviour now is:
    
    (1) command that has keep_retval => false can replace eval_string() and when the multi-line expression is evaluated it will return value of the multi-line expression (old behaviour did not do this)
    (2) command that has keep_retval => true will always replace whatever multi-line expression it's invoked in with the return value of the command
    banister committed Sep 4, 2011
  2. @rue @banister
  3. @rf-
  4. @banister

    made it so commands (with :keep_retval => true) can now return nil as…

    … a legitimate return value. Created a new 'void' value to use instead when indicating no return value. also updated tests.
    
    'void' method now available to commands, commands must return this when they do not want their result displayed when they use :keep_retval => true. void just maps to a random object Pry::CommandContext::VOID_VALUE.
    banister committed Sep 4, 2011
Commits on Sep 3, 2011
  1. @banister
  2. @banister
  3. @banister

    added signature to stat and show-doc commands in ruby 1.8; added sour…

    …ce file output to stat command
    banister committed Sep 3, 2011
Commits on Sep 2, 2011
  1. @banister