ruby-debug-completion 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemspec +1 -1
- data/CHANGELOG.rdoc +4 -0
- data/README.rdoc +5 -0
- data/deps.rip +1 -1
- data/lib/ruby-debug/completion.rb +3 -3
- metadata +7 -7
data/.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.description = "Provides ruby-debug command and command arguments completion with a completion system more powerful than irb's, compliments of bond."
|
13
13
|
s.required_rubygems_version = ">= 1.3.6"
|
14
14
|
s.rubyforge_project = 'tagaholic'
|
15
|
-
s.add_dependency 'bond', '>= 0.3.
|
15
|
+
s.add_dependency 'bond', '>= 0.3.3'
|
16
16
|
s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec}
|
17
17
|
s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
|
18
18
|
s.license = 'MIT'
|
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -27,6 +27,11 @@ Or if using rdebug:
|
|
27
27
|
|
28
28
|
rdebug -r ruby-debug/completion FILE
|
29
29
|
|
30
|
+
To start manually in environments with bond completion already setup i.e. irb:
|
31
|
+
|
32
|
+
require 'ruby-debug/completion'
|
33
|
+
Debugger::Completion.start
|
34
|
+
|
30
35
|
== Usage
|
31
36
|
|
32
37
|
Let's autocomplete instance and local variables of the current binding as well as ruby-debug
|
data/deps.rip
CHANGED
@@ -1 +1 @@
|
|
1
|
-
bond >=0.3.
|
1
|
+
bond >=0.3.3
|
@@ -4,7 +4,7 @@ require 'bond'
|
|
4
4
|
module Debugger
|
5
5
|
module Completion
|
6
6
|
extend self
|
7
|
-
VERSION = '0.2.
|
7
|
+
VERSION = '0.2.1'
|
8
8
|
COMMANDS = [ "backtrace", "break", "catch", "condition", "continue",
|
9
9
|
"delete", "disable", "display", "down", "edit", "enable", "eval", "exit",
|
10
10
|
"finish", "frame", "help", "info", "irb", "list", "method", "next",
|
@@ -15,7 +15,7 @@ module Debugger
|
|
15
15
|
COMMANDS << ['jump'] if RUBY_VERSION >= '1.9'
|
16
16
|
|
17
17
|
def start
|
18
|
-
Bond.
|
18
|
+
Bond.restart(:eval_binding=>lambda { Debugger::Completion.current_binding },
|
19
19
|
:default_mission=>lambda {|e| Debugger::Completion.default_action }) do
|
20
20
|
complete(:methods=>%w{catch cat}) { objects_of(Class).select {|e| e < StandardError } }
|
21
21
|
complete(:methods=>%w{disable enable}) { %w{breakpoints display} }
|
@@ -68,4 +68,4 @@ module Debugger
|
|
68
68
|
end
|
69
69
|
|
70
70
|
Object.send :include, Debugger::Completion::Command
|
71
|
-
Debugger::Completion.start
|
71
|
+
Debugger::Completion.start unless Bond.started?
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-debug-completion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gabriel Horner
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09
|
18
|
+
date: 2010-11-09 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,12 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 21
|
30
30
|
segments:
|
31
31
|
- 0
|
32
32
|
- 3
|
33
|
-
-
|
34
|
-
version: 0.3.
|
33
|
+
- 3
|
34
|
+
version: 0.3.3
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
description: Provides ruby-debug command and command arguments completion with a completion system more powerful than irb's, compliments of bond.
|