Commits on Apr 25, 2012
  1. version bugfix release

    Fixes `undefined method `winsize' for #<IO:<STDOUT>>` error (#549), and exit breakage on syntax error (#550).
    banister committed Apr 25, 2012
  2. Fix `exit` after previous syntax error in `exit` command.

    Before this commit, the binding stack was cleared before evaluating
    the user-given value for the `exit` command. If a syntax error happened
    when `eval`ing it, the program would still be running with no elements
    in the binding stack, causing next calls of `exit` to fail.
    Renato Mascarenhas committed Apr 25, 2012
  3. Fix Jruby...

    ConradIrwin committed Apr 25, 2012
Commits on Apr 22, 2012
  1. Don't indent inside strings. [Fixes #535]

    This is acheived by keeping track of which Strings are open and
    re-opening them before giving CodeRay the new line of input.
    I considered instead passing the entire input through CodeRay and then
    just extracting the last line of tokens, unfortunately this would
    exhibit O(n²) behaviour when pasting code into the terminal; and it's
    not obvious whether the tokenization would be stable enough to guarantee
    an easy way to get the last line of tokens.
    ConradIrwin committed Apr 22, 2012
Commits on Apr 21, 2012
Commits on Apr 20, 2012
  1. version docfix release

    banister committed Apr 20, 2012
  2. fixed bug preventing some core docs displaying

    closes #547. Repro: `? Enumerator`. Bug arose because core docs
    have no associated line number and so attempting to calculate relative location of docs
    resulted in a NilClass error
    banister committed Apr 20, 2012
Commits on Apr 19, 2012
  1. version minor bugfix release

    correct_indentation now respects Pry.color
    banister committed Apr 19, 2012
Commits on Apr 18, 2012
  1. version very minor docfix release

    * made it clear -a switch to show-source/show-doc applies to classes as well as modules
    banister committed Apr 18, 2012
  2. updated CONTRIBUTORS

    banister committed Apr 18, 2012
  3. version 0.9.9 release

    banister committed Apr 18, 2012
  4. make whereami N work, fixes #537

    banister committed Apr 18, 2012
  5. show-source dependency on ruby18_source_location

    * necessary to bring new show-source/show-doc functionality to ruby 1.8
    * pry now also auto-requires ruby18_source_location if it's available
    banister committed Apr 18, 2012
  6. DRYed up show-doc/show-source code

    * also made Pry::WrappedModule.from_str more robust
    banister committed Apr 18, 2012
Commits on Apr 17, 2012
  1. Pry::WrappedModule.from_str respects binding

    * module are now looked up with respect to the optional binding parameter to from_str
    * also improved some docs
    banister committed Apr 17, 2012
  2. `show-source -v` => `show-source -a`

    * switch to show all monkeypatches is now -a (for all)
    * improved some method names (top_method_candidates => method_candidates in wrapped_module.rb)
    * improved in-session documentation for show-source and show-doc
    banister committed Apr 17, 2012
  3. Tweak

    ConradIrwin committed Apr 17, 2012
  4. Refactor, optimize and slightly correct find-method.

    This increases the speed for name_search considerably (~50%), and makes
    the code a bit more readable. It also Fixes # 527, by deduping methods
    by the pair of [owner, name] not just name.
    TODO: Test
    ConradIrwin committed Apr 17, 2012
  5. Be less codey...

    ConradIrwin committed Apr 17, 2012
  6. added -v switch show-source and show-doc

    * applies to modules/classes, displays the full list of candidate module definitions or documentation (in case of show-doc)
    * TODO: a fucktonne of tests
    banister committed Apr 17, 2012
Commits on Apr 16, 2012
  1. replaced mini-instance with Pry::Code helper

    * now using
    Pry::Code.retrieve_complete_expression_from instead of when extracting source
    for repl-defined methods
    banister committed Apr 16, 2012