From: | "Hans de Graaff (graaff)" <graaff@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-ruby/multi_xml/files: multi_xml-0.4.1-ruby19.patch |
Date: | Wed, 28 Dec 2011 12:00:55 |
Message-Id: | 20111228120042.BBACD2004C@flycatcher.gentoo.org |
1 | graaff 11/12/28 12:00:42 |
2 | |
3 | Added: multi_xml-0.4.1-ruby19.patch |
4 | Log: |
5 | Version bump. Add ruby19 and fix tests for it. |
6 | |
7 | (Portage version: 2.1.10.41/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-ruby/multi_xml/files/multi_xml-0.4.1-ruby19.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/multi_xml/files/multi_xml-0.4.1-ruby19.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/multi_xml/files/multi_xml-0.4.1-ruby19.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: multi_xml-0.4.1-ruby19.patch |
16 | =================================================================== |
17 | Ruby 1.9.3 no longer makes a long number a BigDecimal, it seems. |
18 | |
19 | https://github.com/sferik/multi_xml/issues/18 |
20 | |
21 | --- spec/parser_shared_example.rb.~1~ 2011-12-28 12:54:08.770134726 +0100 |
22 | +++ spec/parser_shared_example.rb 2011-12-28 12:54:55.186385918 +0100 |
23 | @@ -302,7 +302,7 @@ |
24 | end |
25 | |
26 | it "should return the correct number" do |
27 | - MultiXml.parse(@xml)['tag'].should == 3.14159265358979323846264338327950288419716939937510 |
28 | + MultiXml.parse(@xml)['tag'].should == BigDecimal.new('3.14159265358979323846264338327950288419716939937510') |
29 | end |
30 | end |