Permalink
Browse files

fix-irb-completion patch works only on ruby 1.8.x

  • Loading branch information...
1 parent cc93928 commit 9d3929f491b8d9b6c7109beb9512fefd79fec1b9 @mpapis mpapis committed Dec 27, 2011
@@ -0,0 +1,13 @@
+diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb
+index 000658e..609dca3 100644
+--- a/lib/irb/completion.rb
++++ b/lib/irb/completion.rb
+@@ -157,7 +157,7 @@ module IRB
+ end
+ next if name != "IRB::Context" and
+ /^(IRB|SLex|RubyLex|RubyToken)/ =~ name
+- candidates.concat m.instance_methods(false)
++ candidates.concat m.instance_methods(false).map { |m| m.to_s }
+ }
+ candidates.sort!
+ candidates.uniq!
@@ -0,0 +1,13 @@
+diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb
+index 000658e..609dca3 100644
+--- a/lib/irb/completion.rb
++++ b/lib/irb/completion.rb
+@@ -157,7 +157,7 @@ module IRB
+ end
+ next if name != "IRB::Context" and
+ /^(IRB|SLex|RubyLex|RubyToken)/ =~ name
+- candidates.concat m.instance_methods(false)
++ candidates.concat m.instance_methods(false).map { |m| m.to_s }
+ }
+ candidates.sort!
+ candidates.uniq!
@@ -0,0 +1,13 @@
+diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb
+index 000658e..609dca3 100644
+--- a/lib/irb/completion.rb
++++ b/lib/irb/completion.rb
+@@ -157,7 +157,7 @@ module IRB
+ end
+ next if name != "IRB::Context" and
+ /^(IRB|SLex|RubyLex|RubyToken)/ =~ name
+- candidates.concat m.instance_methods(false)
++ candidates.concat m.instance_methods(false).map { |m| m.to_s }
+ }
+ candidates.sort!
+ candidates.uniq!

0 comments on commit 9d3929f

Please sign in to comment.