diff --git a/CHANGELOG b/CHANGELOG index 41bea8d2f..01e180a3f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,11 @@ +23/1/2010 version 0.4.1 +* made it so a 'def meth;end' in an object Pry session defines singleton + methods, not methods on the class (except in the case of + immediates) +* reorganized documentation, moving customization to a separate wiki file +* storing wiki in a nested git repo, as github wiki pages have their own + repo +* added more tests for new method definition behaviour 21/1/2010 version 0.4.0 * added command API * added many new commands, i.e ls_methods and friends diff --git a/README.markdown b/README.markdown index 2a1886e26..a07b842fe 100644 --- a/README.markdown +++ b/README.markdown @@ -1,7 +1,7 @@ Pry ============= -(C) John Mair (banisterfiend) 2010 +(C) John Mair (banisterfiend) 2011 _attach an irb-like session to any object at runtime_ @@ -167,6 +167,8 @@ end. * Pry gives good control over nested sessions (important when exploring complicated runtime state) * Pry is not based on the IRB codebase. * Pry allows significant customizability. +* Pry uses the [method_source](https://github.com/banister/method_source) gem; so +this functionality is available to a Pry session. * Pry uses [RubyParser](https://github.com/seattlerb/ruby_parser) to validate expressions in 1.8, and [Ripper](http://rdoc.info/docs/ruby-core/1.9.2/Ripper) for 1.9. * Pry implements all the methods in the REPL chain separately: `Pry#r` @@ -240,6 +242,7 @@ If you want to access a method of the same name, prefix the invocation by whites * `ls_imethods` List all instance methods defined on receiver. * `cat ` Calls `inspect` on `` * `cd ` Starts a `Pry` session on the variable . E.g `cd @x` +(use `cd ..` to go back). * `show_method ` Displays the sourcecode for the method . E.g `show_method hello` * `show_imethod ` Displays the sourcecode for the @@ -252,8 +255,7 @@ If you want to access a method of the same name, prefix the invocation by whites * `nesting` Shows Pry nesting information. * `!pry` Starts a Pry session on the implied receiver; this can be used in the middle of an expression in multi-line input. -* `jump_to ` Unwinds the Pry stack (nesting level) until the appropriate nesting level is reached - -- as per the output of `nesting` +* `jump_to ` Unwinds the Pry stack (nesting level) until the appropriate nesting level is reached. * `exit_all` breaks out of all Pry nesting levels and returns to the calling process. * You can type `Pry.start(obj)` or `obj.pry` to nest another Pry session within the diff --git a/Rakefile b/Rakefile index fd92f4b70..bb541f33e 100644 --- a/Rakefile +++ b/Rakefile @@ -32,6 +32,11 @@ task :test do sh "bacon -k #{direc}/test/test.rb" end +desc "display the Pry version" +task :show_version do + puts "Pry version: #{Pry::VERSION}" +end + namespace :ruby do spec = Gem::Specification.new do |s| apply_spec_defaults(s) diff --git a/lib/pry/version.rb b/lib/pry/version.rb index 550d277f9..39b922182 100644 --- a/lib/pry/version.rb +++ b/lib/pry/version.rb @@ -1,3 +1,3 @@ class Pry - VERSION = "0.4.1pre2" + VERSION = "0.4.1" end