pry 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/Rakefile +1 -1
- data/lib/pry/command_base.rb +4 -0
- data/lib/pry/pry_class.rb +3 -1
- data/lib/pry/version.rb +1 -1
- metadata +9 -9
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -20,7 +20,7 @@ def apply_spec_defaults(s)
|
|
20
20
|
s.description = s.summary
|
21
21
|
s.require_path = 'lib'
|
22
22
|
s.add_dependency("ruby_parser",">=2.0.5")
|
23
|
-
s.add_dependency("method_source",">=0.
|
23
|
+
s.add_dependency("method_source",">=0.3.4")
|
24
24
|
s.add_development_dependency("bacon",">=1.1.0")
|
25
25
|
s.homepage = "http://banisterfiend.wordpress.com"
|
26
26
|
s.has_rdoc = 'yard'
|
data/lib/pry/command_base.rb
CHANGED
@@ -16,6 +16,10 @@ class Pry
|
|
16
16
|
# @param [String, Array] names The name of the command (or array of
|
17
17
|
# command name aliases).
|
18
18
|
# @param [String] description A description of the command.
|
19
|
+
# @param [Hash] options The optional configuration parameters.
|
20
|
+
# @option options [Boolean] :keep_retval Whether or not to use return value
|
21
|
+
# of the block for return of `command` or just to return `nil`
|
22
|
+
# (the default).
|
19
23
|
# @yield The action to perform. The parameters in the block
|
20
24
|
# determines the parameters the command will receive. All
|
21
25
|
# parameters passed into the block will be strings. Successive
|
data/lib/pry/pry_class.rb
CHANGED
@@ -66,6 +66,8 @@ class Pry
|
|
66
66
|
# prompts by default by all Pry instances.
|
67
67
|
attr_accessor :prompt
|
68
68
|
|
69
|
+
# Value returned by last executed Pry command.
|
70
|
+
# @return [Object] The command value
|
69
71
|
attr_accessor :cmd_ret_value
|
70
72
|
end
|
71
73
|
|
@@ -85,7 +87,7 @@ class Pry
|
|
85
87
|
# @return [String] The string representation of `obj`.
|
86
88
|
def self.view(obj)
|
87
89
|
case obj
|
88
|
-
when String, Hash, Array, Symbol, nil
|
90
|
+
when String, Hash, Array, Symbol, Set, nil
|
89
91
|
obj.inspect
|
90
92
|
else
|
91
93
|
obj.to_s
|
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.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-02-
|
12
|
+
date: 2011-02-28 00:00:00.000000000 +13:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ruby_parser
|
17
|
-
requirement: &
|
17
|
+
requirement: &17249004 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,21 +22,21 @@ dependencies:
|
|
22
22
|
version: 2.0.5
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *17249004
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: method_source
|
28
|
-
requirement: &
|
28
|
+
requirement: &17248680 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.3.4
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *17248680
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: bacon
|
39
|
-
requirement: &
|
39
|
+
requirement: &17248344 !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: *17248344
|
48
48
|
description: attach an irb-like session to any object at runtime
|
49
49
|
email: jrmair@gmail.com
|
50
50
|
executables:
|