Permalink
Commits on Sep 8, 2011
  1. updated Pry.view_clip() again, this time calling #inspect on nil, tru…

    …e, false as well. Also truncted #<> syntax to exclude memory address to improve appearance of prompts
    banister committed Sep 8, 2011
  2. added Pry.config.ls.separator to allow further customization of ls ou…

    …tput, defaults to 2 spaces
    banister committed Sep 8, 2011
  3. improve regex for amend-line command

    * accurate spacing in front of the replacement line when there's no line number
    * remove legacy "amend-line-N" syntax
    rf- committed Sep 8, 2011
  4. updated Pry.view_clip() to call #inspect on Numerics, Strings and Sym…

    …bols, added tests for this. Also added new CLIPPED_PRINT printer (using Pry.view_clip), perhaps useful for enormous objects)
    banister committed Sep 8, 2011
  5. fixed tempfile-related bug and failing test and got rid of Pry.view()…

    … around nest_level in DEFAULT_PROMPT
    banister committed Sep 8, 2011
Commits on Sep 7, 2011
  1. more fixes for issue #245 (enormous inspect output lagging REPL)

    1. Pry.view_clip no longer uses #inspect, it defaults to #<> syntax (but using Module#name for modules), exception for 'main' object
    2. Pry.run_command passes in a blank prompt and blank hooks
    
    Also updated tests
    banister committed Sep 7, 2011
  2. whereami command now invoked on active pry instance instead of invoke…

    …d through Pry.run_command
    
    Advantages of this is the _file_ and _dir_ is set properly and also if current pry instance uses SIMPLE_PROMPT then a prompt using inspect wont be used on the temporary pry instance  as per #245
    banister committed Sep 7, 2011
  3. 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
Commits on Sep 6, 2011
  1. JRuby finally supported, passing 100% of tests - requires updated met…

    …hod_source gem (version 0.6.5).
    banister committed Sep 6, 2011
  2. 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
  3. 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
Commits on Sep 5, 2011
  1. add documentation for History

    rf- committed Sep 5, 2011
  2. 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
  3. bug fix

    rf- committed Sep 5, 2011
  4. fix history load speed on startup

    rf- committed Sep 5, 2011