Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 1, 2012
  1. @envygeeks
Commits on Jan 15, 2012
  1. @banister

    [#408] migrate play, cat, edit & cd commands to command_class

    Bram Swenson authored banister committed
Commits on Nov 5, 2011
  1. @rf-

    update .gitignore

    rf- authored
Commits on Oct 9, 2011
  1. @ConradIrwin

    gitignore *.gem

    ConradIrwin authored
Commits on Oct 5, 2011
  1. @YorickPeterse

    Pry now indents code similar to IRB.

    YorickPeterse authored
    Code is indented using the class Pry::Indent. This class uses an internal stack
    that contains the indentation levels for each line of code. Certain keywords
    such as "class" or "def" will add data to this stack so that the next line is
    indented, other keywords such as "end" or "}" will remove data from the stack,
    causing the next line to be un-indented.
    
    Pry::Indent is hooked into Pry#retrieve_line as well as Pry#readline. This means
    that both input strings as well as the ones displayed by "show-method" are
    indented. Sadly due to the way Readline works input strings are indented similar
    to IRB. This means that instead of the following:
    
        > class User
        >   def initialize
        >   end
        > end
    
    You'll get the following:
    
        > class User
        >   def initialize
        >     end
        >   end
    
    While annoying there doesn't seem to be a way to work around this issue. Luckily
    the "show-method" command indents your code properly.
    
    By default indentation is turned on. This can be turned off (or back on) using
    the configuration item Pry.config.indent. However, if you turn this option off
    after a method is defined "show-method" will still show it with indentation as
    indentation happens on input rather than only when code is displayed.
    
    For more information see Pry::Indent#indent in lib/pry/indent.rb.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Commits on Jul 26, 2011
  1. @rf-

    implement command_prefix feature

    rf- authored
Commits on May 7, 2011
  1. @Mon-Ouie

    Ignored Rubinius' output

    Mon-Ouie authored
Commits on Jan 26, 2011
  1. @banister

    added new 'alias_command' and 'desc' commands to CommandBase; also ma…

    banister authored
    …de it so show_method comamnd without parameters does a show_method on __method__
Commits on Jan 9, 2011
  1. @banister
Something went wrong with that request. Please try again.