pry 0.6.8-i386-mingw32 → 0.6.8.1-i386-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -1
- data/lib/pry/commands.rb +3 -1
- data/lib/pry/hooks.rb +1 -1
- data/lib/pry/version.rb +1 -1
- metadata +14 -5
data/README.markdown
CHANGED
@@ -164,7 +164,7 @@ end.
|
|
164
164
|
|
165
165
|
* Pry can be invoked at any time and on any object in the running program.
|
166
166
|
* Pry sessions can nest arbitrarily deeply -- to go back one level of nesting type 'exit' or 'quit' or 'back'
|
167
|
-
* Pry comes with syntax highlighting on by default just use the `toggle-color` command to
|
167
|
+
* Pry comes with syntax highlighting on by default just use the `toggle-color` command to turn it on and off.
|
168
168
|
* Use `_` to recover last result.
|
169
169
|
* Use `_pry_` to reference the Pry instance managing the current session.
|
170
170
|
* Pry supports tab completion.
|
data/lib/pry/commands.rb
CHANGED
@@ -11,7 +11,9 @@ class Pry
|
|
11
11
|
# We make this a lambda to avoid documenting it
|
12
12
|
meth_name_from_binding = lambda do |b|
|
13
13
|
meth_name = b.eval('__method__')
|
14
|
-
|
14
|
+
|
15
|
+
# :__script__ for rubinius
|
16
|
+
if [:__script__, nil, :__binding__, :__binding_impl__].include?(meth_name)
|
15
17
|
nil
|
16
18
|
else
|
17
19
|
meth_name
|
data/lib/pry/hooks.rb
CHANGED
@@ -9,7 +9,7 @@ class Pry
|
|
9
9
|
# ensure we're actually in a method
|
10
10
|
meth_name = target.eval('__method__')
|
11
11
|
file = target.eval('__FILE__')
|
12
|
-
if ![nil, :__binding__, :__binding_impl__].include?(meth_name) && file !~ /(\(.*\))|<.*>/
|
12
|
+
if ![:__script__, nil, :__binding__, :__binding_impl__].include?(meth_name) && file !~ /(\(.*\))|<.*>/
|
13
13
|
Pry.run_command "whereami", :output => out, :show_output => true, :context => target, :commands => Pry::Commands
|
14
14
|
end
|
15
15
|
end,
|
data/lib/pry/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 93
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 6
|
8
9
|
- 8
|
9
|
-
|
10
|
+
- 1
|
11
|
+
version: 0.6.8.1
|
10
12
|
platform: i386-mingw32
|
11
13
|
authors:
|
12
14
|
- John Mair (banisterfiend)
|
@@ -25,6 +27,7 @@ dependencies:
|
|
25
27
|
requirements:
|
26
28
|
- - ">="
|
27
29
|
- !ruby/object:Gem::Version
|
30
|
+
hash: 5
|
28
31
|
segments:
|
29
32
|
- 2
|
30
33
|
- 0
|
@@ -40,6 +43,7 @@ dependencies:
|
|
40
43
|
requirements:
|
41
44
|
- - ">="
|
42
45
|
- !ruby/object:Gem::Version
|
46
|
+
hash: 53
|
43
47
|
segments:
|
44
48
|
- 0
|
45
49
|
- 9
|
@@ -55,6 +59,7 @@ dependencies:
|
|
55
59
|
requirements:
|
56
60
|
- - ">="
|
57
61
|
- !ruby/object:Gem::Version
|
62
|
+
hash: 19
|
58
63
|
segments:
|
59
64
|
- 1
|
60
65
|
- 1
|
@@ -70,6 +75,7 @@ dependencies:
|
|
70
75
|
requirements:
|
71
76
|
- - ">="
|
72
77
|
- !ruby/object:Gem::Version
|
78
|
+
hash: 27
|
73
79
|
segments:
|
74
80
|
- 0
|
75
81
|
- 3
|
@@ -85,6 +91,7 @@ dependencies:
|
|
85
91
|
requirements:
|
86
92
|
- - ">="
|
87
93
|
- !ruby/object:Gem::Version
|
94
|
+
hash: 27
|
88
95
|
segments:
|
89
96
|
- 1
|
90
97
|
- 3
|
@@ -101,6 +108,7 @@ extensions: []
|
|
101
108
|
extra_rdoc_files: []
|
102
109
|
|
103
110
|
files:
|
111
|
+
- lib/pry.rb
|
104
112
|
- lib/pry/commands.rb
|
105
113
|
- lib/pry/version.rb
|
106
114
|
- lib/pry/command_base.rb
|
@@ -111,7 +119,6 @@ files:
|
|
111
119
|
- lib/pry/print.rb
|
112
120
|
- lib/pry/pry_class.rb
|
113
121
|
- lib/pry/pry_instance.rb
|
114
|
-
- lib/pry.rb
|
115
122
|
- examples/example_commands.rb
|
116
123
|
- examples/example_image_edit.rb
|
117
124
|
- examples/example_input2.rb
|
@@ -131,7 +138,7 @@ files:
|
|
131
138
|
- Rakefile
|
132
139
|
- .gemtest
|
133
140
|
- bin/pry
|
134
|
-
has_rdoc:
|
141
|
+
has_rdoc: true
|
135
142
|
homepage: http://banisterfiend.wordpress.com
|
136
143
|
licenses: []
|
137
144
|
|
@@ -145,6 +152,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
152
|
requirements:
|
146
153
|
- - ">="
|
147
154
|
- !ruby/object:Gem::Version
|
155
|
+
hash: 3
|
148
156
|
segments:
|
149
157
|
- 0
|
150
158
|
version: "0"
|
@@ -153,13 +161,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
161
|
requirements:
|
154
162
|
- - ">="
|
155
163
|
- !ruby/object:Gem::Version
|
164
|
+
hash: 3
|
156
165
|
segments:
|
157
166
|
- 0
|
158
167
|
version: "0"
|
159
168
|
requirements: []
|
160
169
|
|
161
170
|
rubyforge_project:
|
162
|
-
rubygems_version: 1.
|
171
|
+
rubygems_version: 1.6.1
|
163
172
|
signing_key:
|
164
173
|
specification_version: 3
|
165
174
|
summary: attach an irb-like session to any object at runtime
|