1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

version 0.6.3, added method_source 0.3.4 dependency (1.8 show-metthod support). Added docs, added Set to inspect classes

This commit is contained in:
John Mair 2011-02-28 05:06:52 +13:00
parent 51c699ade8
commit 52a84cd598
5 changed files with 13 additions and 3 deletions

View file

@ -1,3 +1,7 @@
28/2/2011 version 0.6.3
* Using MethodSource 0.3.4 so 1.8 show-method support provided
* `Set` class added to list of classes that are inspected
26/2/2011 version 0.6.1
* !@ command alias for exit_all
* `cd /` for breaking out to pry top level (jump-to 0)

View file

@ -20,7 +20,7 @@ def apply_spec_defaults(s)
s.description = s.summary
s.require_path = 'lib'
s.add_dependency("ruby_parser",">=2.0.5")
s.add_dependency("method_source",">=0.2.0")
s.add_dependency("method_source",">=0.3.4")
s.add_development_dependency("bacon",">=1.1.0")
s.homepage = "http://banisterfiend.wordpress.com"
s.has_rdoc = 'yard'

View file

@ -16,6 +16,10 @@ class Pry
# @param [String, Array] names The name of the command (or array of
# command name aliases).
# @param [String] description A description of the command.
# @param [Hash] options The optional configuration parameters.
# @option options [Boolean] :keep_retval Whether or not to use return value
# of the block for return of `command` or just to return `nil`
# (the default).
# @yield The action to perform. The parameters in the block
# determines the parameters the command will receive. All
# parameters passed into the block will be strings. Successive

View file

@ -66,6 +66,8 @@ class Pry
# prompts by default by all Pry instances.
attr_accessor :prompt
# Value returned by last executed Pry command.
# @return [Object] The command value
attr_accessor :cmd_ret_value
end
@ -85,7 +87,7 @@ class Pry
# @return [String] The string representation of `obj`.
def self.view(obj)
case obj
when String, Hash, Array, Symbol, nil
when String, Hash, Array, Symbol, Set, nil
obj.inspect
else
obj.to_s

View file

@ -1,3 +1,3 @@
class Pry
VERSION = "0.6.2"
VERSION = "0.6.3"
end