Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 9d3929f491b8d9b6c7109beb9512fefd79fec1b9 1 parent cc93928
Michal Papis mpapis authored
0  patches/ruby/fix-irb-completion.diff → patches/ruby/1.8.4/fix-irb-completion.diff
View
File renamed without changes
13 patches/ruby/1.8.5/fix-irb-completion.diff
View
@@ -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!
13 patches/ruby/1.8.6/fix-irb-completion.diff
View
@@ -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!
13 patches/ruby/1.8.7/fix-irb-completion.diff
View
@@ -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!
Please sign in to comment.
Something went wrong with that request. Please try again.