pry 0.9.12.6 → 0.10.0.pre2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +702 -0
  3. data/LICENSE +2 -2
  4. data/{README.markdown → README.md} +37 -31
  5. data/lib/pry.rb +38 -151
  6. data/lib/pry/cli.rb +35 -17
  7. data/lib/pry/code.rb +24 -63
  8. data/lib/pry/code/code_file.rb +103 -0
  9. data/lib/pry/code/code_range.rb +2 -1
  10. data/lib/pry/code/loc.rb +2 -2
  11. data/lib/pry/code_object.rb +40 -21
  12. data/lib/pry/color_printer.rb +55 -0
  13. data/lib/pry/command.rb +12 -9
  14. data/lib/pry/command_set.rb +81 -38
  15. data/lib/pry/commands.rb +1 -1
  16. data/lib/pry/commands/amend_line.rb +2 -2
  17. data/lib/pry/commands/bang.rb +1 -1
  18. data/lib/pry/commands/cat.rb +11 -2
  19. data/lib/pry/commands/cat/exception_formatter.rb +5 -6
  20. data/lib/pry/commands/cat/file_formatter.rb +15 -32
  21. data/lib/pry/commands/cd.rb +14 -3
  22. data/lib/pry/commands/change_inspector.rb +27 -0
  23. data/lib/pry/commands/change_prompt.rb +26 -0
  24. data/lib/pry/commands/code_collector.rb +4 -4
  25. data/lib/pry/commands/easter_eggs.rb +3 -3
  26. data/lib/pry/commands/edit.rb +10 -22
  27. data/lib/pry/commands/edit/exception_patcher.rb +2 -2
  28. data/lib/pry/commands/edit/file_and_line_locator.rb +0 -2
  29. data/lib/pry/commands/exit_program.rb +0 -1
  30. data/lib/pry/commands/find_method.rb +16 -22
  31. data/lib/pry/commands/gem_install.rb +5 -2
  32. data/lib/pry/commands/gem_open.rb +1 -1
  33. data/lib/pry/commands/gist.rb +10 -11
  34. data/lib/pry/commands/help.rb +14 -14
  35. data/lib/pry/commands/hist.rb +27 -8
  36. data/lib/pry/commands/install_command.rb +14 -12
  37. data/lib/pry/commands/list_inspectors.rb +35 -0
  38. data/lib/pry/commands/list_prompts.rb +35 -0
  39. data/lib/pry/commands/ls.rb +72 -296
  40. data/lib/pry/commands/ls/constants.rb +47 -0
  41. data/lib/pry/commands/ls/formatter.rb +49 -0
  42. data/lib/pry/commands/ls/globals.rb +48 -0
  43. data/lib/pry/commands/ls/grep.rb +21 -0
  44. data/lib/pry/commands/ls/instance_vars.rb +39 -0
  45. data/lib/pry/commands/ls/interrogatable.rb +18 -0
  46. data/lib/pry/commands/ls/jruby_hacks.rb +49 -0
  47. data/lib/pry/commands/ls/local_names.rb +35 -0
  48. data/lib/pry/commands/ls/local_vars.rb +39 -0
  49. data/lib/pry/commands/ls/ls_entity.rb +70 -0
  50. data/lib/pry/commands/ls/methods.rb +57 -0
  51. data/lib/pry/commands/ls/methods_helper.rb +46 -0
  52. data/lib/pry/commands/ls/self_methods.rb +32 -0
  53. data/lib/pry/commands/play.rb +44 -10
  54. data/lib/pry/commands/pry_backtrace.rb +1 -2
  55. data/lib/pry/commands/raise_up.rb +2 -2
  56. data/lib/pry/commands/reload_code.rb +16 -19
  57. data/lib/pry/commands/ri.rb +7 -3
  58. data/lib/pry/commands/shell_command.rb +18 -13
  59. data/lib/pry/commands/shell_mode.rb +2 -4
  60. data/lib/pry/commands/show_doc.rb +5 -0
  61. data/lib/pry/commands/show_info.rb +8 -13
  62. data/lib/pry/commands/show_source.rb +15 -3
  63. data/lib/pry/commands/simple_prompt.rb +1 -1
  64. data/lib/pry/commands/toggle_color.rb +8 -4
  65. data/lib/pry/commands/watch_expression.rb +105 -0
  66. data/lib/pry/commands/watch_expression/expression.rb +38 -0
  67. data/lib/pry/commands/whereami.rb +18 -10
  68. data/lib/pry/commands/wtf.rb +3 -3
  69. data/lib/pry/config.rb +20 -254
  70. data/lib/pry/config/behavior.rb +139 -0
  71. data/lib/pry/config/convenience.rb +26 -0
  72. data/lib/pry/config/default.rb +165 -0
  73. data/lib/pry/core_extensions.rb +31 -21
  74. data/lib/pry/editor.rb +107 -103
  75. data/lib/pry/exceptions.rb +77 -0
  76. data/lib/pry/helpers/base_helpers.rb +22 -109
  77. data/lib/pry/helpers/command_helpers.rb +10 -8
  78. data/lib/pry/helpers/documentation_helpers.rb +1 -2
  79. data/lib/pry/helpers/text.rb +4 -5
  80. data/lib/pry/history.rb +46 -45
  81. data/lib/pry/history_array.rb +6 -1
  82. data/lib/pry/hooks.rb +9 -29
  83. data/lib/pry/indent.rb +6 -6
  84. data/lib/pry/input_completer.rb +242 -0
  85. data/lib/pry/input_lock.rb +132 -0
  86. data/lib/pry/inspector.rb +27 -0
  87. data/lib/pry/last_exception.rb +61 -0
  88. data/lib/pry/method.rb +82 -87
  89. data/lib/pry/{commands/edit/method_patcher.rb → method/patcher.rb} +41 -38
  90. data/lib/pry/module_candidate.rb +4 -14
  91. data/lib/pry/object_path.rb +82 -0
  92. data/lib/pry/output.rb +50 -0
  93. data/lib/pry/pager.rb +191 -47
  94. data/lib/pry/plugins.rb +1 -1
  95. data/lib/pry/prompt.rb +26 -0
  96. data/lib/pry/pry_class.rb +149 -230
  97. data/lib/pry/pry_instance.rb +302 -413
  98. data/lib/pry/rbx_path.rb +1 -1
  99. data/lib/pry/repl.rb +202 -0
  100. data/lib/pry/repl_file_loader.rb +20 -26
  101. data/lib/pry/rubygem.rb +13 -5
  102. data/lib/pry/terminal.rb +2 -1
  103. data/lib/pry/test/helper.rb +26 -41
  104. data/lib/pry/version.rb +1 -1
  105. data/lib/pry/wrapped_module.rb +45 -59
  106. metadata +61 -224
  107. data/.document +0 -2
  108. data/.gitignore +0 -16
  109. data/.travis.yml +0 -25
  110. data/.yardopts +0 -1
  111. data/CHANGELOG +0 -534
  112. data/CONTRIBUTORS +0 -55
  113. data/Gemfile +0 -12
  114. data/Rakefile +0 -140
  115. data/TODO +0 -117
  116. data/lib/pry/completion.rb +0 -321
  117. data/lib/pry/custom_completions.rb +0 -6
  118. data/lib/pry/rbx_method.rb +0 -13
  119. data/man/pry.1 +0 -195
  120. data/man/pry.1.html +0 -204
  121. data/man/pry.1.ronn +0 -141
  122. data/pry.gemspec +0 -29
  123. data/spec/Procfile +0 -3
  124. data/spec/cli_spec.rb +0 -78
  125. data/spec/code_object_spec.rb +0 -277
  126. data/spec/code_spec.rb +0 -219
  127. data/spec/command_helpers_spec.rb +0 -29
  128. data/spec/command_integration_spec.rb +0 -644
  129. data/spec/command_set_spec.rb +0 -627
  130. data/spec/command_spec.rb +0 -821
  131. data/spec/commands/amend_line_spec.rb +0 -247
  132. data/spec/commands/bang_spec.rb +0 -19
  133. data/spec/commands/cat_spec.rb +0 -164
  134. data/spec/commands/cd_spec.rb +0 -250
  135. data/spec/commands/disable_pry_spec.rb +0 -25
  136. data/spec/commands/edit_spec.rb +0 -727
  137. data/spec/commands/exit_all_spec.rb +0 -34
  138. data/spec/commands/exit_program_spec.rb +0 -19
  139. data/spec/commands/exit_spec.rb +0 -34
  140. data/spec/commands/find_method_spec.rb +0 -70
  141. data/spec/commands/gem_list_spec.rb +0 -26
  142. data/spec/commands/gist_spec.rb +0 -79
  143. data/spec/commands/help_spec.rb +0 -56
  144. data/spec/commands/hist_spec.rb +0 -181
  145. data/spec/commands/jump_to_spec.rb +0 -15
  146. data/spec/commands/ls_spec.rb +0 -181
  147. data/spec/commands/play_spec.rb +0 -140
  148. data/spec/commands/raise_up_spec.rb +0 -56
  149. data/spec/commands/save_file_spec.rb +0 -177
  150. data/spec/commands/show_doc_spec.rb +0 -510
  151. data/spec/commands/show_input_spec.rb +0 -17
  152. data/spec/commands/show_source_spec.rb +0 -782
  153. data/spec/commands/whereami_spec.rb +0 -203
  154. data/spec/completion_spec.rb +0 -241
  155. data/spec/control_d_handler_spec.rb +0 -58
  156. data/spec/documentation_helper_spec.rb +0 -73
  157. data/spec/editor_spec.rb +0 -79
  158. data/spec/exception_whitelist_spec.rb +0 -21
  159. data/spec/fixtures/candidate_helper1.rb +0 -11
  160. data/spec/fixtures/candidate_helper2.rb +0 -8
  161. data/spec/fixtures/example.erb +0 -5
  162. data/spec/fixtures/example_nesting.rb +0 -33
  163. data/spec/fixtures/show_source_doc_examples.rb +0 -15
  164. data/spec/fixtures/testrc +0 -2
  165. data/spec/fixtures/testrcbad +0 -2
  166. data/spec/fixtures/whereami_helper.rb +0 -6
  167. data/spec/helper.rb +0 -34
  168. data/spec/helpers/bacon.rb +0 -86
  169. data/spec/helpers/mock_pry.rb +0 -43
  170. data/spec/helpers/table_spec.rb +0 -105
  171. data/spec/history_array_spec.rb +0 -67
  172. data/spec/hooks_spec.rb +0 -522
  173. data/spec/indent_spec.rb +0 -301
  174. data/spec/input_stack_spec.rb +0 -90
  175. data/spec/method_spec.rb +0 -482
  176. data/spec/prompt_spec.rb +0 -60
  177. data/spec/pry_defaults_spec.rb +0 -419
  178. data/spec/pry_history_spec.rb +0 -99
  179. data/spec/pry_output_spec.rb +0 -95
  180. data/spec/pry_spec.rb +0 -515
  181. data/spec/run_command_spec.rb +0 -25
  182. data/spec/sticky_locals_spec.rb +0 -157
  183. data/spec/syntax_checking_spec.rb +0 -81
  184. data/spec/wrapped_module_spec.rb +0 -261
  185. data/wiki/Customizing-pry.md +0 -397
  186. data/wiki/Home.md +0 -4
@@ -1,3 +1,3 @@
1
1
  class Pry
2
- VERSION = "0.9.12.6"
2
+ VERSION = "0.10.0.pre2"
3
3
  end
@@ -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 provides a consistent interface between 1.8 and 1.9 and also
70
- # avoids the problem of accidentally calling the singleton method
71
- # `Module.constants`.
72
- # @param [Boolean] inherit (true) Include the names of constants from
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
- method = Module.instance_method(:constants).bind(@wrapped)
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 wrapped.respond_to?(:singleton_class?)
124
- wrapped.singleton_class?
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.ancestors.first
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 = generator.new do |y|
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
- # Ruby 1.8 doesn't support `Enumerator` (it's called Generator instead)
295
- #
296
- # @return [Object] Return the appropriate generator class.
297
- def generator
298
- @generator ||= if defined?(Enumerator)
299
- Enumerator
300
- else
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 ||= candidate(0)
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 { |k, v| -v.size }
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
- all_from_common(mod, :instance_method) + all_from_common(mod, :method)
350
- end
351
-
352
- # FIXME: a variant of this method is also found in Pry::Method
353
- def all_from_common(mod, method_type)
354
- %w(public protected private).map do |visibility|
355
- safe_send(mod, :"#{visibility}_#{method_type}s", false).select do |method_name|
356
- if method_type == :method
357
- safe_send(mod, method_type, method_name).owner == class << mod; self; end
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.9.12.6
4
+ version: 0.10.0.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Mair (banisterfiend)
@@ -10,120 +10,64 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-01-28 00:00:00.000000000 Z
13
+ date: 2014-05-07 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: '1.0'
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: '1.0'
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: '0.8'
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
- - - ~>
54
+ - - "~>"
69
55
  - !ruby/object:Gem::Version
70
- version: '1.2'
56
+ version: 0.8.1
71
57
  - !ruby/object:Gem::Dependency
72
- name: open4
58
+ name: bundler
73
59
  requirement: !ruby/object:Gem::Requirement
74
60
  requirements:
75
- - - ~>
61
+ - - "~>"
76
62
  - !ruby/object:Gem::Version
77
- version: '1.3'
78
- type: :development
79
- prerelease: false
80
- version_requirements: !ruby/object:Gem::Requirement
81
- requirements:
82
- - - ~>
83
- - !ruby/object:Gem::Version
84
- version: '1.3'
85
- - !ruby/object:Gem::Dependency
86
- name: rake
87
- requirement: !ruby/object:Gem::Requirement
88
- 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
- - - ~>
97
- - !ruby/object:Gem::Version
98
- version: '0.9'
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.4.2
70
+ version: '1.0'
127
71
  description: An IRB alternative and runtime developer console
128
72
  email:
129
73
  - jrmair@gmail.com
@@ -134,24 +78,18 @@ executables:
134
78
  extensions: []
135
79
  extra_rdoc_files: []
136
80
  files:
137
- - .document
138
- - .gitignore
139
- - .travis.yml
140
- - .yardopts
141
- - CHANGELOG
142
- - CONTRIBUTORS
143
- - Gemfile
81
+ - CHANGELOG.md
144
82
  - LICENSE
145
- - README.markdown
146
- - Rakefile
147
- - TODO
83
+ - README.md
148
84
  - bin/pry
149
85
  - lib/pry.rb
150
86
  - lib/pry/cli.rb
151
87
  - lib/pry/code.rb
88
+ - lib/pry/code/code_file.rb
152
89
  - lib/pry/code/code_range.rb
153
90
  - lib/pry/code/loc.rb
154
91
  - lib/pry/code_object.rb
92
+ - lib/pry/color_printer.rb
155
93
  - lib/pry/command.rb
156
94
  - lib/pry/command_set.rb
157
95
  - lib/pry/commands.rb
@@ -164,6 +102,8 @@ files:
164
102
  - lib/pry/commands/cat/file_formatter.rb
165
103
  - lib/pry/commands/cat/input_expression_formatter.rb
166
104
  - lib/pry/commands/cd.rb
105
+ - lib/pry/commands/change_inspector.rb
106
+ - lib/pry/commands/change_prompt.rb
167
107
  - lib/pry/commands/code_collector.rb
168
108
  - lib/pry/commands/disable_pry.rb
169
109
  - lib/pry/commands/disabled_commands.rb
@@ -171,7 +111,6 @@ files:
171
111
  - lib/pry/commands/edit.rb
172
112
  - lib/pry/commands/edit/exception_patcher.rb
173
113
  - lib/pry/commands/edit/file_and_line_locator.rb
174
- - lib/pry/commands/edit/method_patcher.rb
175
114
  - lib/pry/commands/exit.rb
176
115
  - lib/pry/commands/exit_all.rb
177
116
  - lib/pry/commands/exit_program.rb
@@ -187,7 +126,22 @@ files:
187
126
  - lib/pry/commands/import_set.rb
188
127
  - lib/pry/commands/install_command.rb
189
128
  - lib/pry/commands/jump_to.rb
129
+ - lib/pry/commands/list_inspectors.rb
130
+ - lib/pry/commands/list_prompts.rb
190
131
  - lib/pry/commands/ls.rb
132
+ - lib/pry/commands/ls/constants.rb
133
+ - lib/pry/commands/ls/formatter.rb
134
+ - lib/pry/commands/ls/globals.rb
135
+ - lib/pry/commands/ls/grep.rb
136
+ - lib/pry/commands/ls/instance_vars.rb
137
+ - lib/pry/commands/ls/interrogatable.rb
138
+ - lib/pry/commands/ls/jruby_hacks.rb
139
+ - lib/pry/commands/ls/local_names.rb
140
+ - lib/pry/commands/ls/local_vars.rb
141
+ - lib/pry/commands/ls/ls_entity.rb
142
+ - lib/pry/commands/ls/methods.rb
143
+ - lib/pry/commands/ls/methods_helper.rb
144
+ - lib/pry/commands/ls/self_methods.rb
191
145
  - lib/pry/commands/nesting.rb
192
146
  - lib/pry/commands/play.rb
193
147
  - lib/pry/commands/pry_backtrace.rb
@@ -207,13 +161,17 @@ files:
207
161
  - lib/pry/commands/stat.rb
208
162
  - lib/pry/commands/switch_to.rb
209
163
  - lib/pry/commands/toggle_color.rb
164
+ - lib/pry/commands/watch_expression.rb
165
+ - lib/pry/commands/watch_expression/expression.rb
210
166
  - lib/pry/commands/whereami.rb
211
167
  - lib/pry/commands/wtf.rb
212
- - lib/pry/completion.rb
213
168
  - lib/pry/config.rb
169
+ - lib/pry/config/behavior.rb
170
+ - lib/pry/config/convenience.rb
171
+ - lib/pry/config/default.rb
214
172
  - lib/pry/core_extensions.rb
215
- - lib/pry/custom_completions.rb
216
173
  - lib/pry/editor.rb
174
+ - lib/pry/exceptions.rb
217
175
  - lib/pry/helpers.rb
218
176
  - lib/pry/helpers/base_helpers.rb
219
177
  - lib/pry/helpers/command_helpers.rb
@@ -225,92 +183,33 @@ files:
225
183
  - lib/pry/history_array.rb
226
184
  - lib/pry/hooks.rb
227
185
  - lib/pry/indent.rb
186
+ - lib/pry/input_completer.rb
187
+ - lib/pry/input_lock.rb
188
+ - lib/pry/inspector.rb
189
+ - lib/pry/last_exception.rb
228
190
  - lib/pry/method.rb
229
191
  - lib/pry/method/disowned.rb
192
+ - lib/pry/method/patcher.rb
230
193
  - lib/pry/method/weird_method_locator.rb
231
194
  - lib/pry/module_candidate.rb
195
+ - lib/pry/object_path.rb
196
+ - lib/pry/output.rb
232
197
  - lib/pry/pager.rb
233
198
  - lib/pry/plugins.rb
199
+ - lib/pry/prompt.rb
234
200
  - lib/pry/pry_class.rb
235
201
  - lib/pry/pry_instance.rb
236
- - lib/pry/rbx_method.rb
237
202
  - lib/pry/rbx_path.rb
203
+ - lib/pry/repl.rb
238
204
  - lib/pry/repl_file_loader.rb
239
205
  - lib/pry/rubygem.rb
240
206
  - lib/pry/terminal.rb
241
207
  - lib/pry/test/helper.rb
242
208
  - lib/pry/version.rb
243
209
  - lib/pry/wrapped_module.rb
244
- - man/pry.1
245
- - man/pry.1.html
246
- - man/pry.1.ronn
247
- - pry.gemspec
248
- - spec/Procfile
249
- - spec/cli_spec.rb
250
- - spec/code_object_spec.rb
251
- - spec/code_spec.rb
252
- - spec/command_helpers_spec.rb
253
- - spec/command_integration_spec.rb
254
- - spec/command_set_spec.rb
255
- - spec/command_spec.rb
256
- - spec/commands/amend_line_spec.rb
257
- - spec/commands/bang_spec.rb
258
- - spec/commands/cat_spec.rb
259
- - spec/commands/cd_spec.rb
260
- - spec/commands/disable_pry_spec.rb
261
- - spec/commands/edit_spec.rb
262
- - spec/commands/exit_all_spec.rb
263
- - spec/commands/exit_program_spec.rb
264
- - spec/commands/exit_spec.rb
265
- - spec/commands/find_method_spec.rb
266
- - spec/commands/gem_list_spec.rb
267
- - spec/commands/gist_spec.rb
268
- - spec/commands/help_spec.rb
269
- - spec/commands/hist_spec.rb
270
- - spec/commands/jump_to_spec.rb
271
- - spec/commands/ls_spec.rb
272
- - spec/commands/play_spec.rb
273
- - spec/commands/raise_up_spec.rb
274
- - spec/commands/save_file_spec.rb
275
- - spec/commands/show_doc_spec.rb
276
- - spec/commands/show_input_spec.rb
277
- - spec/commands/show_source_spec.rb
278
- - spec/commands/whereami_spec.rb
279
- - spec/completion_spec.rb
280
- - spec/control_d_handler_spec.rb
281
- - spec/documentation_helper_spec.rb
282
- - spec/editor_spec.rb
283
- - spec/exception_whitelist_spec.rb
284
- - spec/fixtures/candidate_helper1.rb
285
- - spec/fixtures/candidate_helper2.rb
286
- - spec/fixtures/example.erb
287
- - spec/fixtures/example_nesting.rb
288
- - spec/fixtures/show_source_doc_examples.rb
289
- - spec/fixtures/testrc
290
- - spec/fixtures/testrcbad
291
- - spec/fixtures/whereami_helper.rb
292
- - spec/helper.rb
293
- - spec/helpers/bacon.rb
294
- - spec/helpers/mock_pry.rb
295
- - spec/helpers/table_spec.rb
296
- - spec/history_array_spec.rb
297
- - spec/hooks_spec.rb
298
- - spec/indent_spec.rb
299
- - spec/input_stack_spec.rb
300
- - spec/method_spec.rb
301
- - spec/prompt_spec.rb
302
- - spec/pry_defaults_spec.rb
303
- - spec/pry_history_spec.rb
304
- - spec/pry_output_spec.rb
305
- - spec/pry_spec.rb
306
- - spec/run_command_spec.rb
307
- - spec/sticky_locals_spec.rb
308
- - spec/syntax_checking_spec.rb
309
- - spec/wrapped_module_spec.rb
310
- - wiki/Customizing-pry.md
311
- - wiki/Home.md
312
- homepage: http://pry.github.com
313
- licenses: []
210
+ homepage: http://pryrepl.org
211
+ licenses:
212
+ - MIT
314
213
  metadata: {}
315
214
  post_install_message:
316
215
  rdoc_options: []
@@ -318,80 +217,18 @@ require_paths:
318
217
  - lib
319
218
  required_ruby_version: !ruby/object:Gem::Requirement
320
219
  requirements:
321
- - - '>='
220
+ - - ">="
322
221
  - !ruby/object:Gem::Version
323
222
  version: '0'
324
223
  required_rubygems_version: !ruby/object:Gem::Requirement
325
224
  requirements:
326
- - - '>='
225
+ - - ">"
327
226
  - !ruby/object:Gem::Version
328
- version: '0'
227
+ version: 1.3.1
329
228
  requirements: []
330
229
  rubyforge_project:
331
- rubygems_version: 2.1.11
230
+ rubygems_version: 2.2.2
332
231
  signing_key:
333
232
  specification_version: 4
334
233
  summary: An IRB alternative and runtime developer console
335
- test_files:
336
- - spec/Procfile
337
- - spec/cli_spec.rb
338
- - spec/code_object_spec.rb
339
- - spec/code_spec.rb
340
- - spec/command_helpers_spec.rb
341
- - spec/command_integration_spec.rb
342
- - spec/command_set_spec.rb
343
- - spec/command_spec.rb
344
- - spec/commands/amend_line_spec.rb
345
- - spec/commands/bang_spec.rb
346
- - spec/commands/cat_spec.rb
347
- - spec/commands/cd_spec.rb
348
- - spec/commands/disable_pry_spec.rb
349
- - spec/commands/edit_spec.rb
350
- - spec/commands/exit_all_spec.rb
351
- - spec/commands/exit_program_spec.rb
352
- - spec/commands/exit_spec.rb
353
- - spec/commands/find_method_spec.rb
354
- - spec/commands/gem_list_spec.rb
355
- - spec/commands/gist_spec.rb
356
- - spec/commands/help_spec.rb
357
- - spec/commands/hist_spec.rb
358
- - spec/commands/jump_to_spec.rb
359
- - spec/commands/ls_spec.rb
360
- - spec/commands/play_spec.rb
361
- - spec/commands/raise_up_spec.rb
362
- - spec/commands/save_file_spec.rb
363
- - spec/commands/show_doc_spec.rb
364
- - spec/commands/show_input_spec.rb
365
- - spec/commands/show_source_spec.rb
366
- - spec/commands/whereami_spec.rb
367
- - spec/completion_spec.rb
368
- - spec/control_d_handler_spec.rb
369
- - spec/documentation_helper_spec.rb
370
- - spec/editor_spec.rb
371
- - spec/exception_whitelist_spec.rb
372
- - spec/fixtures/candidate_helper1.rb
373
- - spec/fixtures/candidate_helper2.rb
374
- - spec/fixtures/example.erb
375
- - spec/fixtures/example_nesting.rb
376
- - spec/fixtures/show_source_doc_examples.rb
377
- - spec/fixtures/testrc
378
- - spec/fixtures/testrcbad
379
- - spec/fixtures/whereami_helper.rb
380
- - spec/helper.rb
381
- - spec/helpers/bacon.rb
382
- - spec/helpers/mock_pry.rb
383
- - spec/helpers/table_spec.rb
384
- - spec/history_array_spec.rb
385
- - spec/hooks_spec.rb
386
- - spec/indent_spec.rb
387
- - spec/input_stack_spec.rb
388
- - spec/method_spec.rb
389
- - spec/prompt_spec.rb
390
- - spec/pry_defaults_spec.rb
391
- - spec/pry_history_spec.rb
392
- - spec/pry_output_spec.rb
393
- - spec/pry_spec.rb
394
- - spec/run_command_spec.rb
395
- - spec/sticky_locals_spec.rb
396
- - spec/syntax_checking_spec.rb
397
- - spec/wrapped_module_spec.rb
234
+ test_files: []