pry 0.9.6.2-i386-mingw32 → 0.9.7-i386-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/CHANGELOG +19 -1
- data/CONTRIBUTORS +22 -16
- data/Rakefile +12 -6
- data/bin/pry +15 -12
- data/lib/pry.rb +39 -28
- data/lib/pry/command_context.rb +1 -0
- data/lib/pry/command_processor.rb +9 -2
- data/lib/pry/command_set.rb +7 -0
- data/lib/pry/config.rb +8 -0
- data/lib/pry/default_commands/basic.rb +7 -10
- data/lib/pry/default_commands/context.rb +36 -26
- data/lib/pry/default_commands/documentation.rb +31 -123
- data/lib/pry/default_commands/gems.rb +9 -4
- data/lib/pry/default_commands/input.rb +21 -11
- data/lib/pry/default_commands/introspection.rb +79 -88
- data/lib/pry/default_commands/ls.rb +165 -176
- data/lib/pry/default_commands/shell.rb +8 -8
- data/lib/pry/extended_commands/experimental.rb +1 -5
- data/lib/pry/extended_commands/user_command_api.rb +17 -5
- data/lib/pry/helpers.rb +1 -0
- data/lib/pry/helpers/base_helpers.rb +5 -1
- data/lib/pry/helpers/command_helpers.rb +22 -241
- data/lib/pry/helpers/options_helpers.rb +58 -0
- data/lib/pry/helpers/text.rb +10 -4
- data/lib/pry/history.rb +1 -1
- data/lib/pry/indent.rb +205 -0
- data/lib/pry/method.rb +412 -0
- data/lib/pry/pry_class.rb +56 -15
- data/lib/pry/pry_instance.rb +63 -16
- data/lib/pry/rbx_method.rb +20 -0
- data/lib/pry/rbx_path.rb +34 -0
- data/lib/pry/version.rb +1 -1
- data/pry.gemspec +16 -16
- data/test/helper.rb +8 -4
- data/test/test_command_helpers.rb +1 -69
- data/test/test_command_set.rb +29 -28
- data/test/test_default_commands/test_documentation.rb +23 -10
- data/test/test_default_commands/test_introspection.rb +58 -13
- data/test/test_default_commands/test_ls.rb +148 -0
- data/test/test_indent.rb +234 -0
- data/test/test_input_stack.rb +13 -0
- data/test/test_method.rb +291 -0
- data/test/test_pry.rb +10 -1
- metadata +88 -71
data/test/test_pry.rb
CHANGED
@@ -207,6 +207,15 @@ describe Pry do
|
|
207
207
|
end
|
208
208
|
end
|
209
209
|
|
210
|
+
describe "valid_expression?" do
|
211
|
+
it "should not mutate the input!" do
|
212
|
+
clean = "puts <<-FOO\nhi\nFOO\n"
|
213
|
+
a = clean.dup
|
214
|
+
Pry.new.valid_expression?(a)
|
215
|
+
a.should == clean
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
210
219
|
describe "history arrays" do
|
211
220
|
it 'sets _ to the last result' do
|
212
221
|
res = []
|
@@ -281,7 +290,7 @@ describe Pry do
|
|
281
290
|
|
282
291
|
it "should run the rc file only once" do
|
283
292
|
Pry.config.should_load_rc = true
|
284
|
-
Pry::RC_FILES << File.expand_path("../testrc", __FILE__)
|
293
|
+
2.times { Pry::RC_FILES << File.expand_path("../testrc", __FILE__) }
|
285
294
|
|
286
295
|
Pry.start(self, :input => StringIO.new("exit-all\n"), :output => Pry::NullOutput)
|
287
296
|
TEST_RC.should == [0]
|
metadata
CHANGED
@@ -1,111 +1,114 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.6.2
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
5
|
+
version: 0.9.7
|
6
6
|
platform: i386-mingw32
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- John Mair (banisterfiend)
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
|
13
|
+
date: 2011-10-26 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
15
16
|
name: ruby_parser
|
16
|
-
|
17
|
+
prerelease: false
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
19
|
none: false
|
18
|
-
requirements:
|
20
|
+
requirements:
|
19
21
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 2.
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.3.1
|
22
24
|
type: :runtime
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
26
27
|
name: coderay
|
27
|
-
|
28
|
+
prerelease: false
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
30
|
none: false
|
29
|
-
requirements:
|
31
|
+
requirements:
|
30
32
|
- - ~>
|
31
|
-
- !ruby/object:Gem::Version
|
33
|
+
- !ruby/object:Gem::Version
|
32
34
|
version: 0.9.8
|
33
35
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
37
38
|
name: slop
|
38
|
-
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
41
|
none: false
|
40
|
-
requirements:
|
42
|
+
requirements:
|
41
43
|
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
44
|
+
- !ruby/object:Gem::Version
|
43
45
|
version: 2.1.0
|
44
46
|
type: :runtime
|
45
|
-
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
47
|
+
version_requirements: *id003
|
48
|
+
- !ruby/object:Gem::Dependency
|
48
49
|
name: method_source
|
49
|
-
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
52
|
none: false
|
51
|
-
requirements:
|
53
|
+
requirements:
|
52
54
|
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
55
|
+
- !ruby/object:Gem::Version
|
54
56
|
version: 0.6.5
|
55
57
|
type: :runtime
|
56
|
-
|
57
|
-
|
58
|
-
- !ruby/object:Gem::Dependency
|
58
|
+
version_requirements: *id004
|
59
|
+
- !ruby/object:Gem::Dependency
|
59
60
|
name: bacon
|
60
|
-
|
61
|
+
prerelease: false
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
61
63
|
none: false
|
62
|
-
requirements:
|
64
|
+
requirements:
|
63
65
|
- - ~>
|
64
|
-
- !ruby/object:Gem::Version
|
66
|
+
- !ruby/object:Gem::Version
|
65
67
|
version: 1.1.0
|
66
68
|
type: :development
|
67
|
-
|
68
|
-
|
69
|
-
- !ruby/object:Gem::Dependency
|
69
|
+
version_requirements: *id005
|
70
|
+
- !ruby/object:Gem::Dependency
|
70
71
|
name: open4
|
71
|
-
|
72
|
+
prerelease: false
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
72
74
|
none: false
|
73
|
-
requirements:
|
75
|
+
requirements:
|
74
76
|
- - ~>
|
75
|
-
- !ruby/object:Gem::Version
|
77
|
+
- !ruby/object:Gem::Version
|
76
78
|
version: 1.0.1
|
77
79
|
type: :development
|
78
|
-
|
79
|
-
|
80
|
-
- !ruby/object:Gem::Dependency
|
80
|
+
version_requirements: *id006
|
81
|
+
- !ruby/object:Gem::Dependency
|
81
82
|
name: rake
|
82
|
-
|
83
|
+
prerelease: false
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
83
85
|
none: false
|
84
|
-
requirements:
|
86
|
+
requirements:
|
85
87
|
- - ~>
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version:
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: "0.9"
|
88
90
|
type: :development
|
89
|
-
|
90
|
-
|
91
|
-
- !ruby/object:Gem::Dependency
|
91
|
+
version_requirements: *id007
|
92
|
+
- !ruby/object:Gem::Dependency
|
92
93
|
name: win32console
|
93
|
-
|
94
|
+
prerelease: false
|
95
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
94
96
|
none: false
|
95
|
-
requirements:
|
97
|
+
requirements:
|
96
98
|
- - ~>
|
97
|
-
- !ruby/object:Gem::Version
|
99
|
+
- !ruby/object:Gem::Version
|
98
100
|
version: 1.3.0
|
99
101
|
type: :runtime
|
100
|
-
|
101
|
-
version_requirements: *70249512752480
|
102
|
+
version_requirements: *id008
|
102
103
|
description: An IRB alternative and runtime developer console
|
103
104
|
email: jrmair@gmail.com
|
104
|
-
executables:
|
105
|
+
executables:
|
105
106
|
- pry
|
106
107
|
extensions: []
|
108
|
+
|
107
109
|
extra_rdoc_files: []
|
108
|
-
|
110
|
+
|
111
|
+
files:
|
109
112
|
- .document
|
110
113
|
- .gemtest
|
111
114
|
- .gitignore
|
@@ -153,12 +156,17 @@ files:
|
|
153
156
|
- lib/pry/helpers.rb
|
154
157
|
- lib/pry/helpers/base_helpers.rb
|
155
158
|
- lib/pry/helpers/command_helpers.rb
|
159
|
+
- lib/pry/helpers/options_helpers.rb
|
156
160
|
- lib/pry/helpers/text.rb
|
157
161
|
- lib/pry/history.rb
|
158
162
|
- lib/pry/history_array.rb
|
163
|
+
- lib/pry/indent.rb
|
164
|
+
- lib/pry/method.rb
|
159
165
|
- lib/pry/plugins.rb
|
160
166
|
- lib/pry/pry_class.rb
|
161
167
|
- lib/pry/pry_instance.rb
|
168
|
+
- lib/pry/rbx_method.rb
|
169
|
+
- lib/pry/rbx_path.rb
|
162
170
|
- lib/pry/version.rb
|
163
171
|
- pry.gemspec
|
164
172
|
- test/helper.rb
|
@@ -172,10 +180,13 @@ files:
|
|
172
180
|
- test/test_default_commands/test_gems.rb
|
173
181
|
- test/test_default_commands/test_input.rb
|
174
182
|
- test/test_default_commands/test_introspection.rb
|
183
|
+
- test/test_default_commands/test_ls.rb
|
175
184
|
- test/test_default_commands/test_shell.rb
|
176
185
|
- test/test_exception_whitelist.rb
|
177
186
|
- test/test_history_array.rb
|
187
|
+
- test/test_indent.rb
|
178
188
|
- test/test_input_stack.rb
|
189
|
+
- test/test_method.rb
|
179
190
|
- test/test_pry.rb
|
180
191
|
- test/test_pry_history.rb
|
181
192
|
- test/test_pry_output.rb
|
@@ -185,29 +196,32 @@ files:
|
|
185
196
|
- wiki/Home.md
|
186
197
|
homepage: http://pry.github.com
|
187
198
|
licenses: []
|
199
|
+
|
188
200
|
post_install_message:
|
189
201
|
rdoc_options: []
|
190
|
-
|
202
|
+
|
203
|
+
require_paths:
|
191
204
|
- lib
|
192
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
205
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
193
206
|
none: false
|
194
|
-
requirements:
|
195
|
-
- -
|
196
|
-
- !ruby/object:Gem::Version
|
197
|
-
version:
|
198
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
|
+
requirements:
|
208
|
+
- - ">="
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: "0"
|
211
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
212
|
none: false
|
200
|
-
requirements:
|
201
|
-
- -
|
202
|
-
- !ruby/object:Gem::Version
|
203
|
-
version:
|
213
|
+
requirements:
|
214
|
+
- - ">="
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
version: "0"
|
204
217
|
requirements: []
|
218
|
+
|
205
219
|
rubyforge_project:
|
206
|
-
rubygems_version: 1.8.
|
220
|
+
rubygems_version: 1.8.11
|
207
221
|
signing_key:
|
208
222
|
specification_version: 3
|
209
223
|
summary: An IRB alternative and runtime developer console
|
210
|
-
test_files:
|
224
|
+
test_files:
|
211
225
|
- test/helper.rb
|
212
226
|
- test/test_command_helpers.rb
|
213
227
|
- test/test_command_processor.rb
|
@@ -219,10 +233,13 @@ test_files:
|
|
219
233
|
- test/test_default_commands/test_gems.rb
|
220
234
|
- test/test_default_commands/test_input.rb
|
221
235
|
- test/test_default_commands/test_introspection.rb
|
236
|
+
- test/test_default_commands/test_ls.rb
|
222
237
|
- test/test_default_commands/test_shell.rb
|
223
238
|
- test/test_exception_whitelist.rb
|
224
239
|
- test/test_history_array.rb
|
240
|
+
- test/test_indent.rb
|
225
241
|
- test/test_input_stack.rb
|
242
|
+
- test/test_method.rb
|
226
243
|
- test/test_pry.rb
|
227
244
|
- test/test_pry_history.rb
|
228
245
|
- test/test_pry_output.rb
|