From d3addd8eb8445c6cf0b498f972a02aad9a1c8cc5 Mon Sep 17 00:00:00 2001 From: John Mair Date: Thu, 17 Feb 2011 20:23:58 +1300 Subject: [PATCH] version 0.5.1, fixed some documentation related bugs and improved clarity --- lib/pry/commands.rb | 14 +++++++------- lib/pry/version.rb | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/pry/commands.rb b/lib/pry/commands.rb index 4e8c0461..d85006fa 100644 --- a/lib/pry/commands.rb +++ b/lib/pry/commands.rb @@ -103,7 +103,7 @@ Shows local and instance variables by default. options[:k] = true end - opts.on("-m", "--methods", "Display methods.") do + opts.on("-m", "--methods", "Display methods (public methods by default).") do options[:m] = true end @@ -233,8 +233,8 @@ Shows local and instance variables by default. OptionParser.new do |opts| opts.banner = %{Usage: eval-file [OPTIONS] FILE -Eval a Ruby script at top-level or in the current context. -e.g: eval-script -c "hello.rb" +Eval a Ruby script at top-level or in the current context. Defaults to top-level. +e.g: eval-file -c "hello.rb" -- } opts.on("-c", "--context", "Eval the script in the current context.") do @@ -252,7 +252,7 @@ e.g: eval-script -c "hello.rb" next if options[:h] if !file_name - output.puts "You need to specify a file name. Type `eval-script --help` for help" + output.puts "You need to specify a file name. Type `eval-file --help` for help" next end @@ -331,7 +331,7 @@ e.g show-doc hello_method doc = meth.comment file, line = meth.source_location - output.puts "From #{file} @ line ~#{line}:\n--" + output.puts "--\nFrom #{file} @ line ~#{line}:\n--" output.puts doc end @@ -380,7 +380,7 @@ e.g: show-method hello_method code = meth.source file, line = meth.source_location - output.puts "From #{file} @ line #{line}:\n--" + output.puts "--\nFrom #{file} @ line #{line}:\n--" output.puts code end @@ -396,7 +396,7 @@ e.g: show-method hello_method meth = cmds[command_name][:action] code = meth.source file, line = meth.source_location - output.puts "From #{file} @ line #{line}:\n--" + output.puts "--\nFrom #{file} @ line #{line}:\n--" output.puts code else output.puts "No such command: #{command_name}." diff --git a/lib/pry/version.rb b/lib/pry/version.rb index d31e76e1..6f79f5d2 100644 --- a/lib/pry/version.rb +++ b/lib/pry/version.rb @@ -1,3 +1,3 @@ class Pry - VERSION = "0.5.0" + VERSION = "0.5.1" end