Commit Graph

16 Commits

Author SHA1 Message Date
Conrad Irwin 64b3703a54 Fix broken test on mac 2012-10-20 22:54:33 -07:00
Ryan Fitzgerald 91e825c311 Don't pollute Object with cvar 2012-09-05 22:56:45 -07:00
Ryan Fitzgerald f0a16e2cc3 Tolerate Bond not being present 2012-09-05 22:39:29 -07:00
☈king 6617856b06 Add Bond completion (when available) cirwin++ 2012-08-18 22:49:20 +00:00
Jason Laster f51fca89dc Revert "Revert "Merge pull request #678 from jasonLaster/tabcomplete""
This reverts commit 1234c90085.

Conflicts:

	lib/pry/completion.rb
	lib/pry/default_commands/cd.rb
	lib/pry/default_commands/input_and_output.rb
	test/test_completion.rb

Conflicts:

	test/test_completion.rb
2012-08-12 00:38:44 -04:00
Conrad Irwin 1234c90085 Revert "Merge pull request #678 from jasonLaster/tabcomplete"
This reverts commit 6386706645, reversing
changes made to d830ebbacc.

Conflicts:
	lib/pry/helpers/base_helpers.rb
2012-08-09 19:33:51 -07:00
Jason Laster 3841563fb2 add support tab-completing arbitrarily long paths 2012-08-06 15:39:57 -04:00
Jason Laster ef482bb551 add support for tabbing into previous scope 2012-08-05 23:53:53 -04:00
Yorick Peterse 3fa74ea862 Manually merged branch "issue/601".
The commits in this branch would conflict with the current ones in the master
branch. I've modified the code of pry/completion.rb so that instead of escaping
*all* input it will only escape it when this hasn't already been done so.

This fixes #601.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
2012-06-19 15:47:52 +02:00
Yorick Peterse d53eb0921d Fixed the completion test for Ruby 1.8.
Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
2012-06-19 13:09:55 +02:00
Yorick Peterse a36322a6bc Completion for instance and class variables.
Pry is now able to complete variable names for instance and class variables, as
well as being able to complete methods and the like on these variables.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
2012-06-19 12:32:03 +02:00
Yorick Peterse ea016d8e4c Escape user input before completing it.
User input should be escaped using Regexp.escape() before trying to figure out
what data to use for the Readline completion system. Not escaping this input
would cause Pry to fail for input such as `[10, 20].map(&:class)`.

This problem was caused due to lib/completion.rb converting the input (in this
case it would be ":class)") to a Regexp object. Because this, when converted to
a Regexp object, is invalid it would cause Pry to throw a RegexpError error and
bail out.

See #601 for more information.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
2012-06-19 11:44:34 +02:00
Conrad Irwin 30e1e0941e Use Helpers::BaseHelpers.<foo>? MOAR 2011-12-27 23:16:53 +00:00
John Mair 0eca0f1aa9 updated tests for new _pry_ parameter being passed to before_session hook 2011-09-08 03:28:00 +12:00
John Mair e589710cc1 JRuby finally supported, passing 100% of tests - requires updated method_source gem (version 0.6.5). 2011-09-07 05:20:04 +12:00
Conrad Irwin fe911c6740 Don't crash if I have a badly behaved module.
The completion code was assuming that all modules would have names that
were strings, this is not always the case.
2011-08-16 21:53:20 -07:00