Comment 8 for bug 22937

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 4 Oct 2005 10:31:15 +0200
From: Michael Ablassmeier <email address hidden>
To: <email address hidden>
Cc: <email address hidden>
Subject: patch

--pWyiEgJYm5f9v55/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

tags 331050 + patch
thanks

hi,

attached patch fixes this issue, i dont know if its a clean solution, it
seems to work:

 root@pbuilderchroot:/# ruby -ryaml -e 'puts YAML.load(YAML.dump(1234567890))'
 1234567890

bye,
    - michael

--pWyiEgJYm5f9v55/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="bignum.diff"

--- ruby1.8-1.8.3/ruby-1.8.3/lib/yaml/rubytypes.rb 2005-09-20 06:46:45.000000000 +0000
+++ /usr/lib/ruby/1.8/yaml/rubytypes.rb 2005-10-04 08:28:37.000000000 +0000
@@ -372,6 +372,10 @@
     yaml_as "tag:yaml.org,2002:int"
 end

+class Bignum
+ yaml_as "tag:yaml.org,2002:int#yes"
+end
+
 class Float
     yaml_as "tag:yaml.org,2002:float"
 end

--pWyiEgJYm5f9v55/--