diff options
author | Hans de Graaff <graaff@gentoo.org> | 2011-12-28 12:00:42 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2011-12-28 12:00:42 +0000 |
commit | 7ff7c1bd622b3f3f5d7ba21240fb2a1f3e3a3002 (patch) | |
tree | 3d747278043fe4bc053d6c2bbeef598cf4be3da9 | |
parent | version bump. (diff) | |
download | gentoo-2-7ff7c1bd622b3f3f5d7ba21240fb2a1f3e3a3002.tar.gz gentoo-2-7ff7c1bd622b3f3f5d7ba21240fb2a1f3e3a3002.tar.bz2 gentoo-2-7ff7c1bd622b3f3f5d7ba21240fb2a1f3e3a3002.zip |
Version bump. Add ruby19 and fix tests for it.
(Portage version: 2.1.10.41/cvs/Linux x86_64)
-rw-r--r-- | dev-ruby/multi_xml/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/multi_xml/files/multi_xml-0.4.1-ruby19.patch | 15 | ||||
-rw-r--r-- | dev-ruby/multi_xml/multi_xml-0.4.1.ebuild | 35 |
3 files changed, 57 insertions, 1 deletions
diff --git a/dev-ruby/multi_xml/ChangeLog b/dev-ruby/multi_xml/ChangeLog index e41e12f1b145..cf133025ed06 100644 --- a/dev-ruby/multi_xml/ChangeLog +++ b/dev-ruby/multi_xml/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/multi_xml # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/multi_xml/ChangeLog,v 1.4 2011/09/29 12:13:53 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/multi_xml/ChangeLog,v 1.5 2011/12/28 12:00:42 graaff Exp $ + +*multi_xml-0.4.1 (28 Dec 2011) + + 28 Dec 2011; Hans de Graaff <graaff@gentoo.org> +multi_xml-0.4.1.ebuild, + +files/multi_xml-0.4.1-ruby19.patch: + Version bump. Add ruby19 and fix tests for it. 29 Sep 2011; Hans de Graaff <graaff@gentoo.org> multi_xml-0.4.0.ebuild: Add ~x86 keyword. diff --git a/dev-ruby/multi_xml/files/multi_xml-0.4.1-ruby19.patch b/dev-ruby/multi_xml/files/multi_xml-0.4.1-ruby19.patch new file mode 100644 index 000000000000..1a556b630176 --- /dev/null +++ b/dev-ruby/multi_xml/files/multi_xml-0.4.1-ruby19.patch @@ -0,0 +1,15 @@ +Ruby 1.9.3 no longer makes a long number a BigDecimal, it seems. + +https://github.com/sferik/multi_xml/issues/18 + +--- spec/parser_shared_example.rb.~1~ 2011-12-28 12:54:08.770134726 +0100 ++++ spec/parser_shared_example.rb 2011-12-28 12:54:55.186385918 +0100 +@@ -302,7 +302,7 @@ + end + + it "should return the correct number" do +- MultiXml.parse(@xml)['tag'].should == 3.14159265358979323846264338327950288419716939937510 ++ MultiXml.parse(@xml)['tag'].should == BigDecimal.new('3.14159265358979323846264338327950288419716939937510') + end + end + diff --git a/dev-ruby/multi_xml/multi_xml-0.4.1.ebuild b/dev-ruby/multi_xml/multi_xml-0.4.1.ebuild new file mode 100644 index 000000000000..1d70eed39c0b --- /dev/null +++ b/dev-ruby/multi_xml/multi_xml-0.4.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/multi_xml/multi_xml-0.4.1.ebuild,v 1.1 2011/12/28 12:00:42 graaff Exp $ + +EAPI=4 + +# jruby is no longer supported by upstream starting with 0.3.0 +USE_RUBY="ruby18 ree18 ruby19" + +RUBY_FAKEGEM_TASK_DOC="doc:yard" +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_TASK_TEST="spec" + +inherit ruby-fakegem + +DESCRIPTION="A generic swappable back-end for XML parsing" +HOMEPAGE="http://rdoc.info/gems/multi_xml" +LICENSE="MIT" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="" + +ruby_add_bdepend "doc? ( dev-ruby/yard )" +ruby_add_bdepend "test? ( >=dev-ruby/rspec-2.5:2 )" + +all_ruby_prepare() { + rm Gemfile || die + sed -i -e '/[Bb]undler/d' Rakefile spec/helper.rb || die + sed -i -e '/[Ss]imple[Cc]ov/d' spec/helper.rb || die + + epatch "${FILESDIR}/${P}-ruby19.patch" +} |