pry 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -0
- data/lib/pry/commands.rb +1 -2
- data/lib/pry/pry_instance.rb +3 -1
- data/lib/pry/version.rb +1 -1
- metadata +7 -7
data/README.markdown
CHANGED
@@ -187,6 +187,7 @@ invoke any of these methods directly depending on exactly what aspect of the fun
|
|
187
187
|
|
188
188
|
* Pry's `show-method` and `show-doc` commands do not work
|
189
189
|
in Ruby 1.8.
|
190
|
+
* 1.9 support requires `Ripper` - some implementations may not support this.
|
190
191
|
|
191
192
|
Commands
|
192
193
|
-----------
|
data/lib/pry/commands.rb
CHANGED
@@ -298,8 +298,7 @@ e.g: eval-file -c self "hello.rb"
|
|
298
298
|
|
299
299
|
alias_command "inspect", "cat", ""
|
300
300
|
|
301
|
-
command "cd", "Start a Pry session on VAR (use `cd ..` to go back and `cd /` to return to Pry top-level)",
|
302
|
-
:keep_retval => true do |obj|
|
301
|
+
command "cd", "Start a Pry session on VAR (use `cd ..` to go back and `cd /` to return to Pry top-level)", :keep_retval => true do |obj|
|
303
302
|
if !obj
|
304
303
|
output.puts "Must provide an object."
|
305
304
|
next
|
data/lib/pry/pry_instance.rb
CHANGED
@@ -67,7 +67,9 @@ class Pry
|
|
67
67
|
# Start a read-eval-print-loop.
|
68
68
|
# If no parameter is given, default to top-level (main).
|
69
69
|
# @param [Object, Binding] target The receiver of the Pry session
|
70
|
-
# @return [Object] The target of the Pry session
|
70
|
+
# @return [Object] The target of the Pry session or an explictly given
|
71
|
+
# return value. If given return value is `nil` or no return value
|
72
|
+
# is specified then `target` will be returned.
|
71
73
|
# @example
|
72
74
|
# Pry.new.repl(Object.new)
|
73
75
|
def repl(target=TOPLEVEL_BINDING)
|
data/lib/pry/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ default_executable:
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ruby_parser
|
17
|
-
requirement: &
|
17
|
+
requirement: &17347500 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 2.0.5
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *17347500
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: method_source
|
28
|
-
requirement: &
|
28
|
+
requirement: &17347212 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 0.2.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *17347212
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: bacon
|
39
|
-
requirement: &
|
39
|
+
requirement: &17346912 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: 1.1.0
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *17346912
|
48
48
|
description: attach an irb-like session to any object at runtime
|
49
49
|
email: jrmair@gmail.com
|
50
50
|
executables:
|