[#11439] comments needed for Random class — "NAKAMURA, Hiroshi" <nakahiro@...>

-----BEGIN PGP SIGNED MESSAGE-----

15 messages 2007/06/12

[#11450] Re: new method dispatch rule (matz' proposal) — David Flanagan <david@...>

This is a late response to the very long thread that started back in

17 messages 2007/06/13

[#11482] Ruby Changes Its Mind About Non-Word Characters — James Edward Gray II <james@...>

Does this look like a bug to anyone else?

10 messages 2007/06/16

[#11505] Question about the patchlevel release cycle — Sylvain Joyeux <sylvain.joyeux@...4x.org>

1.8.6 thread support was broken in bad ways. It stayed for three months

20 messages 2007/06/20
[#11512] Re: Question about the patchlevel release cycle — Urabe Shyouhei <shyouhei@...> 2007/06/20

Hi, I'm the 1.8.6 branch manager.

[#11543] Re: Apple reportedly to ship with ruby 1.8.6-p36 unless informed what to patch — James Edward Gray II <james@...>

On Jun 27, 2007, at 4:47 PM, Bill Kelly wrote:

10 messages 2007/06/27

[PATCH] Some small bug fixes for Ruby 1.9

From: "Florian Frank" <flori@...>
Date: 2007-06-05 16:16:13 UTC
List: ruby-core #11406
Hi,

I have a small patch: The first stops irb's completion from crashing because of
methods, that now return symbols instead of strings. The second makes it
possible to build 1.9. with an installed Ruby 1.8. for bootstrapping.

-- 
Florian Frank

Attachments (1)

symbol-and-compile.patch (1.15 KB, text/x-diff)
Index: lib/irb/completion.rb
===================================================================
--- lib/irb/completion.rb	(revision 12440)
+++ lib/irb/completion.rb	(working copy)
@@ -89,7 +89,7 @@
 	rescue Exception
 	  candidates = []
 	end
-	candidates.grep(/^#{message}/).collect{|e| receiver + "::" + e}
+	candidates.grep(/^#{message}/).collect{|e| receiver.to_s + "::" + e}
 
       when /^(:[^:.]+)\.([^.]*)$/
 	# Symbol
@@ -188,7 +188,7 @@
       candidates.grep(/^#{message}/).collect do |e|
 	case e
 	when /^[a-zA-Z_]/
-	  receiver + "." + e
+	  receiver.to_s + "." + e
 	when /^[0-9]/
 	when *Operators
 	  #receiver + " " + e
Index: ext/extmk.rb
===================================================================
--- ext/extmk.rb	(revision 12440)
+++ ext/extmk.rb	(working copy)
@@ -69,7 +69,7 @@
       unless installrb.empty?
         config = CONFIG.dup
         install_dirs(target_prefix).each {|var, val| config[var] = val}
-        FileUtils.rm_f(installrb.values.collect {|f| RbConfig.expand(f, config)}, verbose: true)
+        FileUtils.rm_f(installrb.values.collect {|f| RbConfig.expand(f, config)}, :verbose => true)
       end
     end
     return false

In This Thread

Prev Next