[#7043] RUBYOPT versioning? — Caleb Tennis <caleb@...>
Matz, others:
[#7050] RDoc patches for BigDecimal in Ruby CVS — mathew <meta@...>
Now that 1.8.4 is out and the initial flurry of problem reports has died
[#7055] More on VC++ 2005 — Austin Ziegler <halostatue@...>
Okay. I've got Ruby compiling. I'm attempting to get everything in
Hi,
On 05/01/06, nobuyoshi nakada <nobuyoshi.nakada@ge.com> wrote:
On 06/01/06, Austin Ziegler <halostatue@gmail.com> wrote:
Hi,
On 09/01/06, nobuyoshi nakada <nobuyoshi.nakada@ge.com> wrote:
[#7057] 64-bit Solaris READ_DATA_PENDING Revisited — Steven Lumos <steven@...>
[#7078] CRC - a proof-of-concept Ruby compiler — Anders Hkersten <chucky@...>
Hello everyone,
[#7084] mathn: ugly warnings — hadmut@... (Hadmut Danisch)
Hi,
Hadmut Danisch wrote:
Daniel Berger wrote:
*Dean Wampler *<deanwampler gmail.com> writes:
On Fri, 13 Jan 2006, mathew wrote:
On Fri, 13 Jan 2006, Mathieu Bouchard wrote:
ara.t.howard@noaa.gov wrote:
On Fri, 13 Jan 2006, James Britt wrote:
Dean Wampler <deanwampler gmail.com> writes:
On Sat, 14 Jan 2006, mathew wrote:
[#7100] core dump with ruby 1.9.0 (2006-01-10) and bdb-0.5.8 — Tanaka Akira <akr@...17n.org>
I found following test script dumps core.
>>>>> "T" == Tanaka Akira <akr@m17n.org> writes:
In article <200601110905.k0B950Op001713@moulon.inra.fr>,
[#7109] Calling flock with block? — Bertram Scharpf <lists@...>
Hi,
On Thu, 12 Jan 2006, Bertram Scharpf wrote:
[#7129] YAML.load({[]=>""}.to_yaml) — Tanaka Akira <akr@...17n.org>
I found that current YAML doesn't round trip {[]=>""}.
Hi.
Hi.
In article <20060115202203.D3624CA0.ocean@m2.ccsnet.ne.jp>,
[#7162] FileUtils.mv does not unlink source file when moving over filesystem boundary — Pav Lucistnik <pav@...>
Hi,
On Mon, 16 Jan 2006, Pav Lucistnik wrote:
[#7178] Add XHTML 1.0 Output Support to Ruby CGI — Paul Duncan <pabs@...>
The attached patch against Ruby 1.8.4 adds XHTML 1.0 output support to
[#7186] Ruby 1.9 and FHS — "Kirill A. Shutemov" <k.shutemov@...>
Build and install system changes:
[#7195] trouble due ruby redefining posix function eaccess — noreply@...
Bugs item #3317, was opened at 2006-01-24 15:33
[#7197] SSL-enabled DRb fds on SSLError? — ctm@... (Clifford T. Matthews)
Howdy,
On Jan 24, 2006, at 12:46 PM, Clifford T. Matthews wrote:
Patch worked fine against HEAD.
[#7203] bcc32's memory manager bug — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Hi.
[#7211] Some troubles with an embedded ruby interpreter — Matt Mower <matt.mower@...>
Hi folks,
[#7216] String#scan loops forefever if scanned string is modified inside block. — noreply@...
Bugs item #3329, was opened at 2006-01-26 10:55
[#7226] Fwd: Re: Question about massive API changes — "Sean E. Russell" <ser@...>
Hello,
Sean E. Russell wrote:
>
On 1/28/06, Caleb Tennis <caleb@aei-tech.com> wrote:
On Saturday 28 January 2006 17:13, Wilson Bilkovich wrote:
Sean E. Russell wrote:
[#7249] PATCH: append option to sysread — Yohanes Santoso <ysantoso-rubycore@...>
[#7259] TCP/UDP server weird lags on 1.8.4 linux — "Bill Kelly" <billk@...>
Hi !
Re: 1.8.x, YAML, and release management
Hi.
Caleb Tennis <caleb@aei-tech.com> wrote:
(2005/12/31 03:57)
>On Saturday 17 December 2005 22:18, Ryan Davis wrote:
>> I'm concerned that 1.8.3's acceptance of non-backwards-compatible
>> changes to YAML is setting a bad precedence for ruby release
>> management. I don't think that point (read: bug-fix) releases should
>> accept and release anything that would break compatibility with
>> versions of the same major.minor value. Further, I don't think that
>> backwards incompatibility should be introduced on minor revs without
>> a minor rev in-between marking such a feature as deprecated.
>
>Note that there is still another unfixed-as-of-1.8.4 YAML change:
>
>http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/6115
>
>http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/6159 (Proposed
>patch)
>
>Caleb
This patch seems to be working. But I'm not familier with yaml, so can anyone
test this? (I found another problem on Numeric. Rational and Complex are not
treated properly)
If there is no objection, I want to commit this.
Index: lib/yaml/rubytypes.rb
===================================================================
RCS file: /src/ruby/lib/yaml/rubytypes.rb,v
retrieving revision 1.16.2.9
diff -u -p -r1.16.2.9 rubytypes.rb
--- lib/yaml/rubytypes.rb 20 Sep 2005 06:46:45 -0000 1.16.2.9
+++ lib/yaml/rubytypes.rb 3 Jan 2006 07:32:12 -0000
@@ -352,7 +352,17 @@ class Date
end
end
-class Numeric
+class Integer
+ yaml_as "tag:yaml.org,2002:int"
+ def to_yaml( opts = {} )
+ YAML::quick_emit( nil, opts ) do |out|
+ out.scalar( "tag:yaml.org,2002:int", self.to_s, :plain )
+ end
+ end
+end
+
+class Float
+ yaml_as "tag:yaml.org,2002:float"
def to_yaml( opts = {} )
YAML::quick_emit( nil, opts ) do |out|
str = self.to_s
@@ -363,19 +373,11 @@ class Numeric
elsif str == "NaN"
str = ".NaN"
end
- out.scalar( taguri, str, :plain )
+ out.scalar( "tag:yaml.org,2002:float", str, :plain )
end
end
end
-class Fixnum
- yaml_as "tag:yaml.org,2002:int"
-end
-
-class Float
- yaml_as "tag:yaml.org,2002:float"
-end
-
class TrueClass
yaml_as "tag:yaml.org,2002:bool#yes"
def to_yaml( opts = {} )
/////////////////////////////////
// test
require 'yaml'
def test(o)
y = YAML.dump(o)
o = YAML.load(y)
p [y, o, o.class]
end
test(1)
test(11111111111111111111111)
test(1.2)
require 'rational'
test(Rational(2, 3))
require 'complex'
test(Complex(1, 2))
test(Complex(1.2, 2.0 / 0.0))
/////////////////////////////////
// ruby 1.8.2
["--- 1", 1, Fixnum]
["--- 11111111111111111111111", 11111111111111111111111, Bignum]
["--- 1.2", 1.2, Float]
["--- 2/3", "2/3", String]
["--- 1+2i", "1+2i", String]
["--- 1.2+Infinityi", "1.2+Infinityi", String]
/////////////////////////////////
// ruby 1.8.4
["--- 1\n", 1, Fixnum]
# failed on bignum
["--- 1.2\n", 1.2, Float]
["--- !ruby/object:Rational 2/3\n", Rational(nil, nil), Rational]
["--- !ruby/object:Complex 1+2i\n", Complex(nil, nil), Complex]
["--- !ruby/object:Complex 1.2+Infinityi\n", Complex(nil, nil), Complex]
/////////////////////////////////
// ruby_1_8 + patch
["--- 1\n", 1, Fixnum]
["--- 11111111111111111111111\n", 11111111111111111111111, Bignum]
["--- 1.2\n", 1.2, Float]
["--- !ruby/object:Rational \ndenominator: 3\nnumerator: 2\n", Rational(2, 3), R
ational]
["--- !ruby/object:Complex \nimage: 2\nreal: 1\n", Complex(1, 2), Complex]
["--- !ruby/object:Complex \nimage: .Inf\nreal: 1.2\n", Complex(1.2, Infinity),
Complex]