Permalink
Commits on Mar 2, 2012
  1. version 0.9.8.3 release

    banister committed Mar 2, 2012
  2. Fix the spacing.

    envygeeks committed Mar 2, 2012
  3. rename "basic" to "misc"

    ConradIrwin committed Mar 2, 2012
Commits on Mar 1, 2012
  1. Workaround for rubinius binding __FILE__ bug #1581

    banister committed Mar 1, 2012
    * This fix works by storing the actual file in an ivar on the binding
    * see rubinius/rubinius#1581
  2. Update README.markdown

    banister committed Mar 1, 2012
Commits on Feb 29, 2012
  1. make whereami rbx friendly

    banister committed Feb 29, 2012
Commits on Feb 28, 2012
  1. improve rbx core source support

    banister committed Feb 28, 2012
    * Making use of new Rubinius::LIB_PATH and Rubinius::KERNEL_PATH constants
  2. added Pry#current_context

    banister committed Feb 28, 2012
    shorthand for _pry_.binding_stack.last, the currently active binding
Commits on Feb 27, 2012
  1. shell commands, e.g `.ls` now accept block

    banister committed Feb 27, 2012
    * block can be used to capture output, e.g: `.ls | { |out| x = out.split }`
  2. :takes_block now false by default, removed &block

    banister committed Feb 27, 2012
    * blocks can no longer be passed explicitly into commands via command "blah", "desc" |&block| (1.8 compatibility problems)
    * blocks must be explicitly enabled for a command with the :takes_block => true option
Commits on Feb 26, 2012
  1. Command block syntax now requires "| do" or "| {"

    banister committed Feb 26, 2012
    e.g:
    command "hello", "desc" do |&block|
      block.call
    end
    
    (pry)> hello | do
    (pry)*   puts "mommy, make me all silver!"
    (pry)* end
    mommy, make me all silver!
    
    * Blocks are now available by default, turn off explicitly with :takes_block => false
Commits on Feb 23, 2012
  1. added closure test for command blocks

    banister committed Feb 23, 2012
    e.g
    var = 10
    my-command { puts var }
  2. Fixed failing tests, working around bug in 1.8

    banister committed Feb 23, 2012
    * proc { |&block| }.arity returns 1 on 1.8, but 0 on 1.9
      This is a bug in 1.8 that we had to hack around.
  3. added support for passing blocks to commands

    banister committed Feb 23, 2012
    * Example, using &block:
     Pry.commands.command "tobina", "desc", :takes_block => true do |&block|
       block.call
     end
    
    (pry)> tobina { puts "hi" }
    hi
    (pry)>
    * Works with process(&block) too (for create_command)
    * Works with do/end blocks and {} blocks, both single and multi-line
    
    * Example, using command_block:
      Pry.commands.command "tobina", "desc", :takes_block => true do
        command_block.call
      end
  4. Better search for help

    ConradIrwin committed Feb 23, 2012
  5. installed pry gem (pry-0.9.8.2) no longer treated as plugin by `help`

    banister committed Feb 23, 2012
    * next for plugin was too general, changed to use /pry-([\w_]+)-([\d\.]+)/
  6. improved 'help' output

    banister committed Feb 23, 2012
    * sections separated by white space
    * plugin names are nicely formatted, e.g `Plugin: Exception Explorer v0.1.9`
  7. reshuffed command sets

    banister committed Feb 23, 2012
    * deleted Shell, Input, Documentation
    * added NavigatingPry, InputAndOutput, Editing