Skip to content

Commit 46f7df6

Browse files
committed
Merge pull request #59 from ruby-debug/RUBY-14679-bindings-for-1.8
Ruby 14679 bindings for 1.8
2 parents 0990c7a + 6aef7b7 commit 46f7df6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/ruby-debug-ide/commands/variables.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ def help(cmd)
5959
end
6060

6161
class VarInstanceCommand < Command # :nodoc:
62-
# TODO: try to find out a way to use Kernel.binding
63-
BINDING_COMMAND = (defined? Rubinius) ? 'binding' : '::Kernel.binding'
62+
# TODO: try to find out a way to use Kernel.binding for Rubinius
63+
# ::Kernel.binding doesn't for for ruby 1.8 (see RUBY-14679)
64+
BINDING_COMMAND = (defined?(Rubinius) || RUBY_VERSION < '1.9') ? 'binding' : '::Kernel.binding'
6465

6566
def regexp
6667
# id will be read as first match, name as post match

lib/ruby-debug-ide/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Debugger
2-
IDE_VERSION='0.4.23.beta8'
2+
IDE_VERSION='0.4.23.beta9'
33
end

0 commit comments

Comments
 (0)