pry 0.9.12.6-i386-mswin32 → 0.10.0-i386-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +702 -0
- data/LICENSE +2 -2
- data/{README.markdown → README.md} +37 -31
- data/lib/pry.rb +38 -151
- data/lib/pry/cli.rb +35 -17
- data/lib/pry/code.rb +19 -63
- data/lib/pry/code/code_file.rb +103 -0
- data/lib/pry/code/code_range.rb +2 -1
- data/lib/pry/code/loc.rb +2 -2
- data/lib/pry/code_object.rb +40 -21
- data/lib/pry/color_printer.rb +55 -0
- data/lib/pry/command.rb +12 -9
- data/lib/pry/command_set.rb +81 -38
- data/lib/pry/commands.rb +1 -1
- data/lib/pry/commands/amend_line.rb +2 -2
- data/lib/pry/commands/bang.rb +1 -1
- data/lib/pry/commands/cat.rb +11 -2
- data/lib/pry/commands/cat/exception_formatter.rb +6 -7
- data/lib/pry/commands/cat/file_formatter.rb +15 -32
- data/lib/pry/commands/cat/input_expression_formatter.rb +1 -1
- data/lib/pry/commands/cd.rb +14 -3
- data/lib/pry/commands/change_inspector.rb +27 -0
- data/lib/pry/commands/change_prompt.rb +26 -0
- data/lib/pry/commands/code_collector.rb +4 -4
- data/lib/pry/commands/easter_eggs.rb +3 -3
- data/lib/pry/commands/edit.rb +10 -22
- data/lib/pry/commands/edit/exception_patcher.rb +2 -2
- data/lib/pry/commands/edit/file_and_line_locator.rb +0 -2
- data/lib/pry/commands/exit_program.rb +0 -1
- data/lib/pry/commands/find_method.rb +16 -22
- data/lib/pry/commands/gem_install.rb +5 -2
- data/lib/pry/commands/gem_open.rb +1 -1
- data/lib/pry/commands/gist.rb +10 -11
- data/lib/pry/commands/help.rb +14 -14
- data/lib/pry/commands/hist.rb +27 -8
- data/lib/pry/commands/install_command.rb +14 -12
- data/lib/pry/commands/list_inspectors.rb +35 -0
- data/lib/pry/commands/list_prompts.rb +35 -0
- data/lib/pry/commands/ls.rb +72 -296
- data/lib/pry/commands/ls/constants.rb +47 -0
- data/lib/pry/commands/ls/formatter.rb +49 -0
- data/lib/pry/commands/ls/globals.rb +48 -0
- data/lib/pry/commands/ls/grep.rb +21 -0
- data/lib/pry/commands/ls/instance_vars.rb +39 -0
- data/lib/pry/commands/ls/interrogatable.rb +18 -0
- data/lib/pry/commands/ls/jruby_hacks.rb +49 -0
- data/lib/pry/commands/ls/local_names.rb +35 -0
- data/lib/pry/commands/ls/local_vars.rb +39 -0
- data/lib/pry/commands/ls/ls_entity.rb +70 -0
- data/lib/pry/commands/ls/methods.rb +57 -0
- data/lib/pry/commands/ls/methods_helper.rb +46 -0
- data/lib/pry/commands/ls/self_methods.rb +32 -0
- data/lib/pry/commands/play.rb +44 -10
- data/lib/pry/commands/pry_backtrace.rb +1 -2
- data/lib/pry/commands/raise_up.rb +2 -2
- data/lib/pry/commands/reload_code.rb +16 -19
- data/lib/pry/commands/ri.rb +7 -3
- data/lib/pry/commands/shell_command.rb +18 -13
- data/lib/pry/commands/shell_mode.rb +2 -4
- data/lib/pry/commands/show_doc.rb +5 -0
- data/lib/pry/commands/show_info.rb +8 -13
- data/lib/pry/commands/show_source.rb +15 -3
- data/lib/pry/commands/simple_prompt.rb +1 -1
- data/lib/pry/commands/toggle_color.rb +8 -4
- data/lib/pry/commands/watch_expression.rb +105 -0
- data/lib/pry/commands/watch_expression/expression.rb +38 -0
- data/lib/pry/commands/whereami.rb +18 -10
- data/lib/pry/commands/wtf.rb +3 -3
- data/lib/pry/config.rb +20 -254
- data/lib/pry/config/behavior.rb +139 -0
- data/lib/pry/config/convenience.rb +26 -0
- data/lib/pry/config/default.rb +165 -0
- data/lib/pry/core_extensions.rb +31 -21
- data/lib/pry/editor.rb +107 -103
- data/lib/pry/exceptions.rb +77 -0
- data/lib/pry/helpers/base_helpers.rb +22 -109
- data/lib/pry/helpers/command_helpers.rb +10 -8
- data/lib/pry/helpers/documentation_helpers.rb +1 -2
- data/lib/pry/helpers/text.rb +4 -5
- data/lib/pry/history.rb +46 -45
- data/lib/pry/history_array.rb +6 -1
- data/lib/pry/hooks.rb +9 -29
- data/lib/pry/indent.rb +6 -6
- data/lib/pry/input_completer.rb +242 -0
- data/lib/pry/input_lock.rb +132 -0
- data/lib/pry/inspector.rb +27 -0
- data/lib/pry/last_exception.rb +61 -0
- data/lib/pry/method.rb +82 -87
- data/lib/pry/{commands/edit/method_patcher.rb → method/patcher.rb} +41 -38
- data/lib/pry/module_candidate.rb +4 -14
- data/lib/pry/object_path.rb +82 -0
- data/lib/pry/output.rb +50 -0
- data/lib/pry/pager.rb +193 -48
- data/lib/pry/plugins.rb +1 -1
- data/lib/pry/prompt.rb +26 -0
- data/lib/pry/pry_class.rb +149 -230
- data/lib/pry/pry_instance.rb +302 -413
- data/lib/pry/rbx_path.rb +1 -1
- data/lib/pry/repl.rb +202 -0
- data/lib/pry/repl_file_loader.rb +20 -26
- data/lib/pry/rubygem.rb +13 -5
- data/lib/pry/terminal.rb +2 -1
- data/lib/pry/test/helper.rb +26 -41
- data/lib/pry/version.rb +1 -1
- data/lib/pry/wrapped_module.rb +45 -59
- metadata +62 -225
- data/.document +0 -2
- data/.gitignore +0 -16
- data/.travis.yml +0 -25
- data/.yardopts +0 -1
- data/CHANGELOG +0 -534
- data/CONTRIBUTORS +0 -55
- data/Gemfile +0 -12
- data/Rakefile +0 -140
- data/TODO +0 -117
- data/lib/pry/completion.rb +0 -321
- data/lib/pry/custom_completions.rb +0 -6
- data/lib/pry/rbx_method.rb +0 -13
- data/man/pry.1 +0 -195
- data/man/pry.1.html +0 -204
- data/man/pry.1.ronn +0 -141
- data/pry.gemspec +0 -29
- data/spec/Procfile +0 -3
- data/spec/cli_spec.rb +0 -78
- data/spec/code_object_spec.rb +0 -277
- data/spec/code_spec.rb +0 -219
- data/spec/command_helpers_spec.rb +0 -29
- data/spec/command_integration_spec.rb +0 -644
- data/spec/command_set_spec.rb +0 -627
- data/spec/command_spec.rb +0 -821
- data/spec/commands/amend_line_spec.rb +0 -247
- data/spec/commands/bang_spec.rb +0 -19
- data/spec/commands/cat_spec.rb +0 -164
- data/spec/commands/cd_spec.rb +0 -250
- data/spec/commands/disable_pry_spec.rb +0 -25
- data/spec/commands/edit_spec.rb +0 -727
- data/spec/commands/exit_all_spec.rb +0 -34
- data/spec/commands/exit_program_spec.rb +0 -19
- data/spec/commands/exit_spec.rb +0 -34
- data/spec/commands/find_method_spec.rb +0 -70
- data/spec/commands/gem_list_spec.rb +0 -26
- data/spec/commands/gist_spec.rb +0 -79
- data/spec/commands/help_spec.rb +0 -56
- data/spec/commands/hist_spec.rb +0 -181
- data/spec/commands/jump_to_spec.rb +0 -15
- data/spec/commands/ls_spec.rb +0 -181
- data/spec/commands/play_spec.rb +0 -140
- data/spec/commands/raise_up_spec.rb +0 -56
- data/spec/commands/save_file_spec.rb +0 -177
- data/spec/commands/show_doc_spec.rb +0 -510
- data/spec/commands/show_input_spec.rb +0 -17
- data/spec/commands/show_source_spec.rb +0 -782
- data/spec/commands/whereami_spec.rb +0 -203
- data/spec/completion_spec.rb +0 -241
- data/spec/control_d_handler_spec.rb +0 -58
- data/spec/documentation_helper_spec.rb +0 -73
- data/spec/editor_spec.rb +0 -79
- data/spec/exception_whitelist_spec.rb +0 -21
- data/spec/fixtures/candidate_helper1.rb +0 -11
- data/spec/fixtures/candidate_helper2.rb +0 -8
- data/spec/fixtures/example.erb +0 -5
- data/spec/fixtures/example_nesting.rb +0 -33
- data/spec/fixtures/show_source_doc_examples.rb +0 -15
- data/spec/fixtures/testrc +0 -2
- data/spec/fixtures/testrcbad +0 -2
- data/spec/fixtures/whereami_helper.rb +0 -6
- data/spec/helper.rb +0 -34
- data/spec/helpers/bacon.rb +0 -86
- data/spec/helpers/mock_pry.rb +0 -43
- data/spec/helpers/table_spec.rb +0 -105
- data/spec/history_array_spec.rb +0 -67
- data/spec/hooks_spec.rb +0 -522
- data/spec/indent_spec.rb +0 -301
- data/spec/input_stack_spec.rb +0 -90
- data/spec/method_spec.rb +0 -482
- data/spec/prompt_spec.rb +0 -60
- data/spec/pry_defaults_spec.rb +0 -419
- data/spec/pry_history_spec.rb +0 -99
- data/spec/pry_output_spec.rb +0 -95
- data/spec/pry_spec.rb +0 -515
- data/spec/run_command_spec.rb +0 -25
- data/spec/sticky_locals_spec.rb +0 -157
- data/spec/syntax_checking_spec.rb +0 -81
- data/spec/wrapped_module_spec.rb +0 -261
- data/wiki/Customizing-pry.md +0 -397
- data/wiki/Home.md +0 -4
data/lib/pry/version.rb
CHANGED
data/lib/pry/wrapped_module.rb
CHANGED
@@ -66,27 +66,12 @@ class Pry
|
|
66
66
|
end
|
67
67
|
|
68
68
|
# Returns an array of the names of the constants accessible in the wrapped
|
69
|
-
# module. This
|
70
|
-
#
|
71
|
-
#
|
72
|
-
#
|
73
|
-
# included modules?
|
69
|
+
# module. This avoids the problem of accidentally calling the singleton
|
70
|
+
# method `Module.constants`.
|
71
|
+
# @param [Boolean] inherit Include the names of constants from included
|
72
|
+
# modules?
|
74
73
|
def constants(inherit = true)
|
75
|
-
|
76
|
-
|
77
|
-
# If we're on 1.8, we have to manually remove ancestors' constants. If
|
78
|
-
# we're on 1.9, though, it's better to use the built-in `inherit` param,
|
79
|
-
# since it doesn't do things like incorrectly remove Pry::Config.
|
80
|
-
if method.arity == 0
|
81
|
-
consts = method.call
|
82
|
-
if !inherit
|
83
|
-
consts -= (@wrapped.ancestors - [@wrapped]).map(&:constants).flatten
|
84
|
-
end
|
85
|
-
else
|
86
|
-
consts = method.call(inherit)
|
87
|
-
end
|
88
|
-
|
89
|
-
consts
|
74
|
+
Module.instance_method(:constants).bind(@wrapped).call(inherit)
|
90
75
|
end
|
91
76
|
|
92
77
|
# The prefix that would appear before methods defined on this class.
|
@@ -120,10 +105,10 @@ class Pry
|
|
120
105
|
# Is this a singleton class?
|
121
106
|
# @return [Boolean]
|
122
107
|
def singleton_class?
|
123
|
-
if
|
124
|
-
wrapped
|
108
|
+
if Pry::Method.safe_send(wrapped, :respond_to?, :singleton_class?)
|
109
|
+
Pry::Method.safe_send(wrapped, :singleton_class?)
|
125
110
|
else
|
126
|
-
wrapped != wrapped
|
111
|
+
wrapped != Pry::Method.safe_send(wrapped, :ancestors).first
|
127
112
|
end
|
128
113
|
end
|
129
114
|
|
@@ -258,7 +243,7 @@ class Pry
|
|
258
243
|
# @return [Enumerator, Array] on JRuby 1.9 and higher returns Array, on
|
259
244
|
# other rubies returns Enumerator
|
260
245
|
def candidates
|
261
|
-
enum =
|
246
|
+
enum = Enumerator.new do |y|
|
262
247
|
(0...number_of_candidates).each do |num|
|
263
248
|
y.yield candidate(num)
|
264
249
|
end
|
@@ -291,24 +276,17 @@ class Pry
|
|
291
276
|
|
292
277
|
private
|
293
278
|
|
294
|
-
#
|
295
|
-
#
|
296
|
-
#
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
require 'generator'
|
302
|
-
Generator
|
303
|
-
end
|
304
|
-
end
|
305
|
-
|
306
|
-
# @return [Pry::WrappedModule::Candidate] The candidate of rank 0,
|
307
|
-
# that is the 'monkey patch' of this module with the highest
|
308
|
-
# number of methods. It is considered the 'canonical' definition
|
309
|
-
# for the module.
|
279
|
+
# @return [Pry::WrappedModule::Candidate] The candidate with the
|
280
|
+
# highest rank, that is the 'monkey patch' of this module with the
|
281
|
+
# highest number of methods, which contains a source code line that
|
282
|
+
# defines the module. It is considered the 'canonical' definition
|
283
|
+
# for the module. In the absense of a suitable candidate, the
|
284
|
+
# candidate of rank 0 will be returned, or a CommandError raised if
|
285
|
+
# there are no candidates at all.
|
310
286
|
def primary_candidate
|
311
|
-
@primary_candidate ||=
|
287
|
+
@primary_candidate ||= candidates.find { |c| c.file } ||
|
288
|
+
# This will raise an exception if there is no candidate at all.
|
289
|
+
candidate(0)
|
312
290
|
end
|
313
291
|
|
314
292
|
# @return [Array<Array<Pry::Method>>] The array of `Pry::Method` objects,
|
@@ -330,7 +308,12 @@ class Pry
|
|
330
308
|
|
331
309
|
ims = all_relevant_methods_for(wrapped)
|
332
310
|
@all_source_locations_by_popularity = ims.group_by { |v| Array(v.source_location).first }.
|
333
|
-
sort_by
|
311
|
+
sort_by do |path, methods|
|
312
|
+
expanded = File.expand_path(path)
|
313
|
+
load_order = $LOADED_FEATURES.index{ |file| expanded.end_with?(file) }
|
314
|
+
|
315
|
+
[-methods.size, load_order || (1.0 / 0.0)]
|
316
|
+
end
|
334
317
|
end
|
335
318
|
|
336
319
|
# We only want methods that have a non-nil `source_location`. We also
|
@@ -338,30 +321,33 @@ class Pry
|
|
338
321
|
# (i.e we skip `__class_init__` because it's an odd rbx specific thing that causes tests to fail.)
|
339
322
|
# @return [Array<Pry::Method>]
|
340
323
|
def all_relevant_methods_for(mod)
|
341
|
-
all_methods_for(mod).select(&:source_location).
|
324
|
+
methods = all_methods_for(mod).select(&:source_location).
|
342
325
|
reject{ |x| x.name == '__class_init__' || method_defined_by_forwardable_module?(x) }
|
326
|
+
|
327
|
+
return methods unless methods.empty?
|
328
|
+
|
329
|
+
safe_send(mod, :constants).map do |const_name|
|
330
|
+
if const = nested_module?(mod, const_name)
|
331
|
+
all_relevant_methods_for(const)
|
332
|
+
else
|
333
|
+
[]
|
334
|
+
end
|
335
|
+
end.flatten
|
343
336
|
end
|
344
337
|
|
345
338
|
# Return all methods (instance methods and class methods) for a
|
346
339
|
# given module.
|
347
340
|
# @return [Array<Pry::Method>]
|
348
341
|
def all_methods_for(mod)
|
349
|
-
|
350
|
-
end
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
else
|
359
|
-
safe_send(mod, method_type, method_name).owner == mod
|
360
|
-
end
|
361
|
-
end.map do |method_name|
|
362
|
-
Pry::Method.new(safe_send(mod, method_type, method_name), :visibility => visibility.to_sym)
|
363
|
-
end
|
364
|
-
end.flatten
|
342
|
+
Pry::Method.all_from_obj(mod, false) + Pry::Method.all_from_class(mod, false)
|
343
|
+
end
|
344
|
+
|
345
|
+
def nested_module?(parent, name)
|
346
|
+
return if safe_send(parent, :autoload?, name)
|
347
|
+
child = safe_send(parent, :const_get, name)
|
348
|
+
return unless Module === child
|
349
|
+
return unless safe_send(child, :name) == "#{safe_send(parent, :name)}::#{name}"
|
350
|
+
child
|
365
351
|
end
|
366
352
|
|
367
353
|
# Detect methods that are defined with `def_delegator` from the Forwardable
|
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.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: i386-mswin32
|
6
6
|
authors:
|
7
7
|
- John Mair (banisterfiend)
|
@@ -10,132 +10,76 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-06-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: coderay
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - ~>
|
19
|
+
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 1.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- - ~>
|
26
|
+
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
28
|
+
version: 1.1.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: slop
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- - ~>
|
33
|
+
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: '3.4'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- - ~>
|
40
|
+
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '3.4'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: method_source
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - ~>
|
47
|
+
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
49
|
+
version: 0.8.1
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- - ~>
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: '0.8'
|
57
|
-
- !ruby/object:Gem::Dependency
|
58
|
-
name: bacon
|
59
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - ~>
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: '1.2'
|
64
|
-
type: :development
|
65
|
-
prerelease: false
|
66
|
-
version_requirements: !ruby/object:Gem::Requirement
|
67
|
-
requirements:
|
68
|
-
- - ~>
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: '1.2'
|
71
|
-
- !ruby/object:Gem::Dependency
|
72
|
-
name: open4
|
73
|
-
requirement: !ruby/object:Gem::Requirement
|
74
|
-
requirements:
|
75
|
-
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '1.3'
|
78
|
-
type: :development
|
79
|
-
prerelease: false
|
80
|
-
version_requirements: !ruby/object:Gem::Requirement
|
81
|
-
requirements:
|
82
|
-
- - ~>
|
54
|
+
- - "~>"
|
83
55
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
56
|
+
version: 0.8.1
|
85
57
|
- !ruby/object:Gem::Dependency
|
86
|
-
name:
|
58
|
+
name: bundler
|
87
59
|
requirement: !ruby/object:Gem::Requirement
|
88
60
|
requirements:
|
89
|
-
- - ~>
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version: '0.9'
|
92
|
-
type: :development
|
93
|
-
prerelease: false
|
94
|
-
version_requirements: !ruby/object:Gem::Requirement
|
95
|
-
requirements:
|
96
|
-
- - ~>
|
61
|
+
- - "~>"
|
97
62
|
- !ruby/object:Gem::Version
|
98
|
-
version: '0
|
99
|
-
- !ruby/object:Gem::Dependency
|
100
|
-
name: mocha
|
101
|
-
requirement: !ruby/object:Gem::Requirement
|
102
|
-
requirements:
|
103
|
-
- - ~>
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
version: 0.13.1
|
106
|
-
type: :development
|
107
|
-
prerelease: false
|
108
|
-
version_requirements: !ruby/object:Gem::Requirement
|
109
|
-
requirements:
|
110
|
-
- - ~>
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
version: 0.13.1
|
113
|
-
- !ruby/object:Gem::Dependency
|
114
|
-
name: bond
|
115
|
-
requirement: !ruby/object:Gem::Requirement
|
116
|
-
requirements:
|
117
|
-
- - ~>
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: 0.4.2
|
63
|
+
version: '1.0'
|
120
64
|
type: :development
|
121
65
|
prerelease: false
|
122
66
|
version_requirements: !ruby/object:Gem::Requirement
|
123
67
|
requirements:
|
124
|
-
- - ~>
|
68
|
+
- - "~>"
|
125
69
|
- !ruby/object:Gem::Version
|
126
|
-
version: 0
|
70
|
+
version: '1.0'
|
127
71
|
- !ruby/object:Gem::Dependency
|
128
72
|
name: win32console
|
129
73
|
requirement: !ruby/object:Gem::Requirement
|
130
74
|
requirements:
|
131
|
-
- - ~>
|
75
|
+
- - "~>"
|
132
76
|
- !ruby/object:Gem::Version
|
133
77
|
version: '1.3'
|
134
78
|
type: :runtime
|
135
79
|
prerelease: false
|
136
80
|
version_requirements: !ruby/object:Gem::Requirement
|
137
81
|
requirements:
|
138
|
-
- - ~>
|
82
|
+
- - "~>"
|
139
83
|
- !ruby/object:Gem::Version
|
140
84
|
version: '1.3'
|
141
85
|
description: An IRB alternative and runtime developer console
|
@@ -148,24 +92,18 @@ executables:
|
|
148
92
|
extensions: []
|
149
93
|
extra_rdoc_files: []
|
150
94
|
files:
|
151
|
-
- .
|
152
|
-
- .gitignore
|
153
|
-
- .travis.yml
|
154
|
-
- .yardopts
|
155
|
-
- CHANGELOG
|
156
|
-
- CONTRIBUTORS
|
157
|
-
- Gemfile
|
95
|
+
- CHANGELOG.md
|
158
96
|
- LICENSE
|
159
|
-
- README.
|
160
|
-
- Rakefile
|
161
|
-
- TODO
|
97
|
+
- README.md
|
162
98
|
- bin/pry
|
163
99
|
- lib/pry.rb
|
164
100
|
- lib/pry/cli.rb
|
165
101
|
- lib/pry/code.rb
|
102
|
+
- lib/pry/code/code_file.rb
|
166
103
|
- lib/pry/code/code_range.rb
|
167
104
|
- lib/pry/code/loc.rb
|
168
105
|
- lib/pry/code_object.rb
|
106
|
+
- lib/pry/color_printer.rb
|
169
107
|
- lib/pry/command.rb
|
170
108
|
- lib/pry/command_set.rb
|
171
109
|
- lib/pry/commands.rb
|
@@ -178,6 +116,8 @@ files:
|
|
178
116
|
- lib/pry/commands/cat/file_formatter.rb
|
179
117
|
- lib/pry/commands/cat/input_expression_formatter.rb
|
180
118
|
- lib/pry/commands/cd.rb
|
119
|
+
- lib/pry/commands/change_inspector.rb
|
120
|
+
- lib/pry/commands/change_prompt.rb
|
181
121
|
- lib/pry/commands/code_collector.rb
|
182
122
|
- lib/pry/commands/disable_pry.rb
|
183
123
|
- lib/pry/commands/disabled_commands.rb
|
@@ -185,7 +125,6 @@ files:
|
|
185
125
|
- lib/pry/commands/edit.rb
|
186
126
|
- lib/pry/commands/edit/exception_patcher.rb
|
187
127
|
- lib/pry/commands/edit/file_and_line_locator.rb
|
188
|
-
- lib/pry/commands/edit/method_patcher.rb
|
189
128
|
- lib/pry/commands/exit.rb
|
190
129
|
- lib/pry/commands/exit_all.rb
|
191
130
|
- lib/pry/commands/exit_program.rb
|
@@ -201,7 +140,22 @@ files:
|
|
201
140
|
- lib/pry/commands/import_set.rb
|
202
141
|
- lib/pry/commands/install_command.rb
|
203
142
|
- lib/pry/commands/jump_to.rb
|
143
|
+
- lib/pry/commands/list_inspectors.rb
|
144
|
+
- lib/pry/commands/list_prompts.rb
|
204
145
|
- lib/pry/commands/ls.rb
|
146
|
+
- lib/pry/commands/ls/constants.rb
|
147
|
+
- lib/pry/commands/ls/formatter.rb
|
148
|
+
- lib/pry/commands/ls/globals.rb
|
149
|
+
- lib/pry/commands/ls/grep.rb
|
150
|
+
- lib/pry/commands/ls/instance_vars.rb
|
151
|
+
- lib/pry/commands/ls/interrogatable.rb
|
152
|
+
- lib/pry/commands/ls/jruby_hacks.rb
|
153
|
+
- lib/pry/commands/ls/local_names.rb
|
154
|
+
- lib/pry/commands/ls/local_vars.rb
|
155
|
+
- lib/pry/commands/ls/ls_entity.rb
|
156
|
+
- lib/pry/commands/ls/methods.rb
|
157
|
+
- lib/pry/commands/ls/methods_helper.rb
|
158
|
+
- lib/pry/commands/ls/self_methods.rb
|
205
159
|
- lib/pry/commands/nesting.rb
|
206
160
|
- lib/pry/commands/play.rb
|
207
161
|
- lib/pry/commands/pry_backtrace.rb
|
@@ -221,13 +175,17 @@ files:
|
|
221
175
|
- lib/pry/commands/stat.rb
|
222
176
|
- lib/pry/commands/switch_to.rb
|
223
177
|
- lib/pry/commands/toggle_color.rb
|
178
|
+
- lib/pry/commands/watch_expression.rb
|
179
|
+
- lib/pry/commands/watch_expression/expression.rb
|
224
180
|
- lib/pry/commands/whereami.rb
|
225
181
|
- lib/pry/commands/wtf.rb
|
226
|
-
- lib/pry/completion.rb
|
227
182
|
- lib/pry/config.rb
|
183
|
+
- lib/pry/config/behavior.rb
|
184
|
+
- lib/pry/config/convenience.rb
|
185
|
+
- lib/pry/config/default.rb
|
228
186
|
- lib/pry/core_extensions.rb
|
229
|
-
- lib/pry/custom_completions.rb
|
230
187
|
- lib/pry/editor.rb
|
188
|
+
- lib/pry/exceptions.rb
|
231
189
|
- lib/pry/helpers.rb
|
232
190
|
- lib/pry/helpers/base_helpers.rb
|
233
191
|
- lib/pry/helpers/command_helpers.rb
|
@@ -239,92 +197,33 @@ files:
|
|
239
197
|
- lib/pry/history_array.rb
|
240
198
|
- lib/pry/hooks.rb
|
241
199
|
- lib/pry/indent.rb
|
200
|
+
- lib/pry/input_completer.rb
|
201
|
+
- lib/pry/input_lock.rb
|
202
|
+
- lib/pry/inspector.rb
|
203
|
+
- lib/pry/last_exception.rb
|
242
204
|
- lib/pry/method.rb
|
243
205
|
- lib/pry/method/disowned.rb
|
206
|
+
- lib/pry/method/patcher.rb
|
244
207
|
- lib/pry/method/weird_method_locator.rb
|
245
208
|
- lib/pry/module_candidate.rb
|
209
|
+
- lib/pry/object_path.rb
|
210
|
+
- lib/pry/output.rb
|
246
211
|
- lib/pry/pager.rb
|
247
212
|
- lib/pry/plugins.rb
|
213
|
+
- lib/pry/prompt.rb
|
248
214
|
- lib/pry/pry_class.rb
|
249
215
|
- lib/pry/pry_instance.rb
|
250
|
-
- lib/pry/rbx_method.rb
|
251
216
|
- lib/pry/rbx_path.rb
|
217
|
+
- lib/pry/repl.rb
|
252
218
|
- lib/pry/repl_file_loader.rb
|
253
219
|
- lib/pry/rubygem.rb
|
254
220
|
- lib/pry/terminal.rb
|
255
221
|
- lib/pry/test/helper.rb
|
256
222
|
- lib/pry/version.rb
|
257
223
|
- lib/pry/wrapped_module.rb
|
258
|
-
|
259
|
-
|
260
|
-
-
|
261
|
-
- pry.gemspec
|
262
|
-
- spec/Procfile
|
263
|
-
- spec/cli_spec.rb
|
264
|
-
- spec/code_object_spec.rb
|
265
|
-
- spec/code_spec.rb
|
266
|
-
- spec/command_helpers_spec.rb
|
267
|
-
- spec/command_integration_spec.rb
|
268
|
-
- spec/command_set_spec.rb
|
269
|
-
- spec/command_spec.rb
|
270
|
-
- spec/commands/amend_line_spec.rb
|
271
|
-
- spec/commands/bang_spec.rb
|
272
|
-
- spec/commands/cat_spec.rb
|
273
|
-
- spec/commands/cd_spec.rb
|
274
|
-
- spec/commands/disable_pry_spec.rb
|
275
|
-
- spec/commands/edit_spec.rb
|
276
|
-
- spec/commands/exit_all_spec.rb
|
277
|
-
- spec/commands/exit_program_spec.rb
|
278
|
-
- spec/commands/exit_spec.rb
|
279
|
-
- spec/commands/find_method_spec.rb
|
280
|
-
- spec/commands/gem_list_spec.rb
|
281
|
-
- spec/commands/gist_spec.rb
|
282
|
-
- spec/commands/help_spec.rb
|
283
|
-
- spec/commands/hist_spec.rb
|
284
|
-
- spec/commands/jump_to_spec.rb
|
285
|
-
- spec/commands/ls_spec.rb
|
286
|
-
- spec/commands/play_spec.rb
|
287
|
-
- spec/commands/raise_up_spec.rb
|
288
|
-
- spec/commands/save_file_spec.rb
|
289
|
-
- spec/commands/show_doc_spec.rb
|
290
|
-
- spec/commands/show_input_spec.rb
|
291
|
-
- spec/commands/show_source_spec.rb
|
292
|
-
- spec/commands/whereami_spec.rb
|
293
|
-
- spec/completion_spec.rb
|
294
|
-
- spec/control_d_handler_spec.rb
|
295
|
-
- spec/documentation_helper_spec.rb
|
296
|
-
- spec/editor_spec.rb
|
297
|
-
- spec/exception_whitelist_spec.rb
|
298
|
-
- spec/fixtures/candidate_helper1.rb
|
299
|
-
- spec/fixtures/candidate_helper2.rb
|
300
|
-
- spec/fixtures/example.erb
|
301
|
-
- spec/fixtures/example_nesting.rb
|
302
|
-
- spec/fixtures/show_source_doc_examples.rb
|
303
|
-
- spec/fixtures/testrc
|
304
|
-
- spec/fixtures/testrcbad
|
305
|
-
- spec/fixtures/whereami_helper.rb
|
306
|
-
- spec/helper.rb
|
307
|
-
- spec/helpers/bacon.rb
|
308
|
-
- spec/helpers/mock_pry.rb
|
309
|
-
- spec/helpers/table_spec.rb
|
310
|
-
- spec/history_array_spec.rb
|
311
|
-
- spec/hooks_spec.rb
|
312
|
-
- spec/indent_spec.rb
|
313
|
-
- spec/input_stack_spec.rb
|
314
|
-
- spec/method_spec.rb
|
315
|
-
- spec/prompt_spec.rb
|
316
|
-
- spec/pry_defaults_spec.rb
|
317
|
-
- spec/pry_history_spec.rb
|
318
|
-
- spec/pry_output_spec.rb
|
319
|
-
- spec/pry_spec.rb
|
320
|
-
- spec/run_command_spec.rb
|
321
|
-
- spec/sticky_locals_spec.rb
|
322
|
-
- spec/syntax_checking_spec.rb
|
323
|
-
- spec/wrapped_module_spec.rb
|
324
|
-
- wiki/Customizing-pry.md
|
325
|
-
- wiki/Home.md
|
326
|
-
homepage: http://pry.github.com
|
327
|
-
licenses: []
|
224
|
+
homepage: http://pryrepl.org
|
225
|
+
licenses:
|
226
|
+
- MIT
|
328
227
|
metadata: {}
|
329
228
|
post_install_message:
|
330
229
|
rdoc_options: []
|
@@ -332,80 +231,18 @@ require_paths:
|
|
332
231
|
- lib
|
333
232
|
required_ruby_version: !ruby/object:Gem::Requirement
|
334
233
|
requirements:
|
335
|
-
- -
|
234
|
+
- - ">="
|
336
235
|
- !ruby/object:Gem::Version
|
337
236
|
version: '0'
|
338
237
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
339
238
|
requirements:
|
340
|
-
- -
|
239
|
+
- - ">="
|
341
240
|
- !ruby/object:Gem::Version
|
342
241
|
version: '0'
|
343
242
|
requirements: []
|
344
243
|
rubyforge_project:
|
345
|
-
rubygems_version: 2.
|
244
|
+
rubygems_version: 2.2.2
|
346
245
|
signing_key:
|
347
246
|
specification_version: 4
|
348
247
|
summary: An IRB alternative and runtime developer console
|
349
|
-
test_files:
|
350
|
-
- spec/Procfile
|
351
|
-
- spec/cli_spec.rb
|
352
|
-
- spec/code_object_spec.rb
|
353
|
-
- spec/code_spec.rb
|
354
|
-
- spec/command_helpers_spec.rb
|
355
|
-
- spec/command_integration_spec.rb
|
356
|
-
- spec/command_set_spec.rb
|
357
|
-
- spec/command_spec.rb
|
358
|
-
- spec/commands/amend_line_spec.rb
|
359
|
-
- spec/commands/bang_spec.rb
|
360
|
-
- spec/commands/cat_spec.rb
|
361
|
-
- spec/commands/cd_spec.rb
|
362
|
-
- spec/commands/disable_pry_spec.rb
|
363
|
-
- spec/commands/edit_spec.rb
|
364
|
-
- spec/commands/exit_all_spec.rb
|
365
|
-
- spec/commands/exit_program_spec.rb
|
366
|
-
- spec/commands/exit_spec.rb
|
367
|
-
- spec/commands/find_method_spec.rb
|
368
|
-
- spec/commands/gem_list_spec.rb
|
369
|
-
- spec/commands/gist_spec.rb
|
370
|
-
- spec/commands/help_spec.rb
|
371
|
-
- spec/commands/hist_spec.rb
|
372
|
-
- spec/commands/jump_to_spec.rb
|
373
|
-
- spec/commands/ls_spec.rb
|
374
|
-
- spec/commands/play_spec.rb
|
375
|
-
- spec/commands/raise_up_spec.rb
|
376
|
-
- spec/commands/save_file_spec.rb
|
377
|
-
- spec/commands/show_doc_spec.rb
|
378
|
-
- spec/commands/show_input_spec.rb
|
379
|
-
- spec/commands/show_source_spec.rb
|
380
|
-
- spec/commands/whereami_spec.rb
|
381
|
-
- spec/completion_spec.rb
|
382
|
-
- spec/control_d_handler_spec.rb
|
383
|
-
- spec/documentation_helper_spec.rb
|
384
|
-
- spec/editor_spec.rb
|
385
|
-
- spec/exception_whitelist_spec.rb
|
386
|
-
- spec/fixtures/candidate_helper1.rb
|
387
|
-
- spec/fixtures/candidate_helper2.rb
|
388
|
-
- spec/fixtures/example.erb
|
389
|
-
- spec/fixtures/example_nesting.rb
|
390
|
-
- spec/fixtures/show_source_doc_examples.rb
|
391
|
-
- spec/fixtures/testrc
|
392
|
-
- spec/fixtures/testrcbad
|
393
|
-
- spec/fixtures/whereami_helper.rb
|
394
|
-
- spec/helper.rb
|
395
|
-
- spec/helpers/bacon.rb
|
396
|
-
- spec/helpers/mock_pry.rb
|
397
|
-
- spec/helpers/table_spec.rb
|
398
|
-
- spec/history_array_spec.rb
|
399
|
-
- spec/hooks_spec.rb
|
400
|
-
- spec/indent_spec.rb
|
401
|
-
- spec/input_stack_spec.rb
|
402
|
-
- spec/method_spec.rb
|
403
|
-
- spec/prompt_spec.rb
|
404
|
-
- spec/pry_defaults_spec.rb
|
405
|
-
- spec/pry_history_spec.rb
|
406
|
-
- spec/pry_output_spec.rb
|
407
|
-
- spec/pry_spec.rb
|
408
|
-
- spec/run_command_spec.rb
|
409
|
-
- spec/sticky_locals_spec.rb
|
410
|
-
- spec/syntax_checking_spec.rb
|
411
|
-
- spec/wrapped_module_spec.rb
|
248
|
+
test_files: []
|