diff options
author | Hans de Graaff <graaff@gentoo.org> | 2011-07-22 07:36:16 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2011-07-22 07:36:16 +0000 |
commit | c6c5a38dcc5c4ac2612373369e50a47f41548e70 (patch) | |
tree | 451296380c5c241bc8c83e0be948f95d6cfb077c /dev-ruby/test-unit | |
parent | Version bump. (diff) | |
download | historical-c6c5a38dcc5c4ac2612373369e50a47f41548e70.tar.gz historical-c6c5a38dcc5c4ac2612373369e50a47f41548e70.tar.bz2 historical-c6c5a38dcc5c4ac2612373369e50a47f41548e70.zip |
Version bump.
Package-Manager: portage-2.1.10.3/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby/test-unit')
-rw-r--r-- | dev-ruby/test-unit/ChangeLog | 9 | ||||
-rw-r--r-- | dev-ruby/test-unit/Manifest | 16 | ||||
-rw-r--r-- | dev-ruby/test-unit/files/test-unit-2.3.0-jruby-tests.patch | 21 | ||||
-rw-r--r-- | dev-ruby/test-unit/files/test-unit-2.3.0-ree18-tests.patch | 21 | ||||
-rw-r--r-- | dev-ruby/test-unit/test-unit-2.3.0.ebuild | 46 |
5 files changed, 111 insertions, 2 deletions
diff --git a/dev-ruby/test-unit/ChangeLog b/dev-ruby/test-unit/ChangeLog index ebbd6a270636..d3281dfe9dc7 100644 --- a/dev-ruby/test-unit/ChangeLog +++ b/dev-ruby/test-unit/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-ruby/test-unit # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/test-unit/ChangeLog,v 1.41 2011/07/15 17:35:01 mattst88 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/test-unit/ChangeLog,v 1.42 2011/07/22 07:36:16 graaff Exp $ + +*test-unit-2.3.0 (22 Jul 2011) + + 22 Jul 2011; Hans de Graaff <graaff@gentoo.org> +test-unit-2.3.0.ebuild, + +files/test-unit-2.3.0-jruby-tests.patch, + +files/test-unit-2.3.0-ree18-tests.patch: + Version bump. 15 Jul 2011; Matt Turner <mattst88@gentoo.org> test-unit-1.2.3.ebuild: Added ~mips, bug 332593 diff --git a/dev-ruby/test-unit/Manifest b/dev-ruby/test-unit/Manifest index b0fdf3940289..aaa538f93bac 100644 --- a/dev-ruby/test-unit/Manifest +++ b/dev-ruby/test-unit/Manifest @@ -1,9 +1,23 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX test-unit-2.3.0-jruby-tests.patch 675 RMD160 1759ca37db4976ee640e2d43cb5a95f6baa438e0 SHA1 a749ff7064bb596b548ef0fbb1c325aedd4fa7f4 SHA256 3128e5ab63dc21e1b7b8c2984b256499b3ac9566a463dd4408b4cb55b9493f26 +AUX test-unit-2.3.0-ree18-tests.patch 791 RMD160 cf660bc7c5ee59100d35e855887db164a6332fcb SHA1 6986a26b686b70f480f28e53b1004017cf1d97b3 SHA256 05f9259acf4633033a56980852f039c2cc66002a2458561a3ea9a226bacd51b8 DIST test-unit-1.2.3.gem 40960 RMD160 c8926789f1f074b202142cd278d3d82fc041f6eb SHA1 9ad7eefe7d289713a072130d51312ebe0529d48b SHA256 a7551459c53b0d73ac8e3ad3624b88d211bc80bc41a8c1a57c9d4b422beea4b7 DIST test-unit-2.1.2.gem 196608 RMD160 d32b5e6bf8815060e57888d9bda63df58358c814 SHA1 f3d072c620adb165bb66881c94c91b0165d294dc SHA256 cd3ef4f121765c13a3a5c2ae7d316a2d575908b7ee6a157c2e584d05242cd329 DIST test-unit-2.2.0.gem 201216 RMD160 f3fc2884f956f1e27179392125063c7b11f6c7be SHA1 0d38a6d4fc6b3af1df5ec61c8745f47ce340c0db SHA256 d33eedcefe735f70a07fb0f8fa44ac0ae9cbf3ae098030bc66e74cda9b0ec66f +DIST test-unit-2.3.0.gem 209920 RMD160 52acf17e370b8a685dc35a5431854137bc850eaa SHA1 e0e3d2597e6a28a59f745dacb1d7b9f0011c7aa0 SHA256 b95c6df099b8ec5700fc0410adb008006c2c783898761fb5701bc417d6710a90 EBUILD test-unit-1.2.3.ebuild 809 RMD160 39b3d3a6940e7579697e765b4b947d2535fe639c SHA1 45a81f51b45a818c69c6a9d3765a7f0a5fb0449e SHA256 6769266ae7390d9f6b227e69b31a77557f67b9ec1e185308aa02ab50c2946c81 EBUILD test-unit-2.1.2-r1.ebuild 1279 RMD160 8f50738646ec2c866d820b40bfdab6cb59448022 SHA1 697f4392c567bf2395b28c71125f332cbef557c1 SHA256 d2d2708fdd953e6917b1f625576b3246b9099b219a98a1db48e142fbd685c3e9 EBUILD test-unit-2.1.2.ebuild 1266 RMD160 14a50f505d1092715d9e4e35299156dfd5877af5 SHA1 2a0664f264b61a12765fd1e736b81b659bc1c982 SHA256 ebc1ebd082f9900f64b866cb56548602e076e53e642146e56dd22bcfc1136f19 EBUILD test-unit-2.2.0.ebuild 1266 RMD160 91076f9df2bf431f301ec803db41e9e0e2a46f6e SHA1 fd17b8fb90f4f15c01120c078e6ad2be524d6bc8 SHA256 453993a64b2cf9a9915a1b6f7eaa0b427b04eb837ade64ced488bed2a94b698b -MISC ChangeLog 6461 RMD160 98ddacf71013159ad12b151a4e8d79f7c39bcec5 SHA1 51d9717bad89db9fffae786495d8012a3ef4b312 SHA256 30dc739163f98ceeb01a65b0edcb8d10d81a81ef5bc50bad22514375daa26d2c +EBUILD test-unit-2.3.0.ebuild 1348 RMD160 82eb0addf11ce472619877c03274a71d3125eef4 SHA1 3d47f40711e3b76eb82471c26a0f10b76890b428 SHA256 6e78d70fd73c9d88191fd7ec4443564a30a8d63169c89523d77b3eb4358dd4ad +MISC ChangeLog 6671 RMD160 f3dcdabbceed034edb42581c18180ab049eceb97 SHA1 8964920853fad210d1b2625fddd05ddefb7df7dc SHA256 2df27114b3e3a32fdad8f68ff0c029e41d80d9a329d9759b116edd5435f5da5b MISC metadata.xml 313 RMD160 64f35fe17cb231f17c18f4ace1656b2389eebd07 SHA1 b2de46ec2cf3be4a04d73fa7a43a704408e0d2be SHA256 70c196238b5e24846ee90d328200906af70156308716e4ec568ae3e148e43813 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iF4EAREIAAYFAk4pKHUACgkQiIP6VqMIqNeTUQD/UL9MJzz7+4P1yEuigCQ26g1z +MJ9hGxyXlIYooZi+isoA/Ri/lf+KFfbry8D4oY2J0GhWjj95rOyi7DqhsHWjOFug +=9muU +-----END PGP SIGNATURE----- diff --git a/dev-ruby/test-unit/files/test-unit-2.3.0-jruby-tests.patch b/dev-ruby/test-unit/files/test-unit-2.3.0-jruby-tests.patch new file mode 100644 index 000000000000..f873f7a1307d --- /dev/null +++ b/dev-ruby/test-unit/files/test-unit-2.3.0-jruby-tests.patch @@ -0,0 +1,21 @@ +commit 1dc3030678f79764d7e16496da44f5bcf01899f1 +Author: Kouhei Sutou <kou@clear-code.com> +Date: Thu Jul 21 23:59:41 2011 +0900 + + support JRuby. fixes #29326 + + Reported by Hans de Graaff. Thanks!!! + +diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb +index 762444b..df8c53b 100644 +--- a/lib/test/unit/assertions.rb ++++ b/lib/test/unit/assertions.rb +@@ -116,7 +116,7 @@ EOT + failure.inspected_expected = AssertionMessage.convert(expected) + failure.inspected_actual = AssertionMessage.convert(actual) + failure.user_message = message +- raise ++ raise failure # For JRuby. :< + end + end + diff --git a/dev-ruby/test-unit/files/test-unit-2.3.0-ree18-tests.patch b/dev-ruby/test-unit/files/test-unit-2.3.0-ree18-tests.patch new file mode 100644 index 000000000000..ba39a760f4cd --- /dev/null +++ b/dev-ruby/test-unit/files/test-unit-2.3.0-ree18-tests.patch @@ -0,0 +1,21 @@ +commit df3148f9cb843b68f4c65bb152c176eb201a99c8 +Author: Kouhei Sutou <kou@clear-code.com> +Date: Wed Jul 20 22:19:55 2011 +0900 + + support Ruby Enterprise Edition. fix #29325 + + Reported by Hans de Graaff. Thanks!!! + +diff --git a/lib/test/unit/attribute.rb b/lib/test/unit/attribute.rb +index c91fc32..13c794c 100644 +--- a/lib/test/unit/attribute.rb ++++ b/lib/test/unit/attribute.rb +@@ -36,7 +36,7 @@ module Test + return unless defined?(@current_attributes) + + attributes = {} +- kept_attributes = {} ++ kept_attributes = StringifyKeyHash.new + @current_attributes.each do |attribute_name, attribute| + attributes[attribute_name] = attribute[:value] + kept_attributes[attribute_name] = attribute if attribute[:keep] diff --git a/dev-ruby/test-unit/test-unit-2.3.0.ebuild b/dev-ruby/test-unit/test-unit-2.3.0.ebuild new file mode 100644 index 000000000000..34a815fa05e3 --- /dev/null +++ b/dev-ruby/test-unit/test-unit-2.3.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/test-unit/test-unit-2.3.0.ebuild,v 1.1 2011/07/22 07:36:16 graaff Exp $ + +EAPI=2 +USE_RUBY="ruby18 ruby19 ree18 jruby" + +RUBY_FAKEGEM_TASK_DOC="docs" +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="TODO README.txt History.txt" + +# Disable default binwraps +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +ruby_add_bdepend "doc? ( dev-ruby/rdoc dev-ruby/hoe )" + +DESCRIPTION="An improved version of the Test::Unit framework from Ruby 1.8" +HOMEPAGE="http://test-unit.rubyforge.org/" + +LICENSE="MIT" +SLOT="2" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" +IUSE="" + +RUBY_PATCHES=( "${P}-ree18-tests.patch" "${P}-jruby-tests.patch" ) + +each_ruby_test() { + # the rake audit using dev-ruby/zentest currently fails, and we + # just need to call the testsuite directly. + # rake audit || die "rake audit failed" + local rubyflags + + [[ $(basename ${RUBY}) == jruby ]] && rubyflags="-X+O" + + ${RUBY} ${rubyflags} test/run-test.rb || die "testsuite failed" +} + +all_ruby_install() { + all_fakegem_install + + # Create a testrb2 wrapper similarly to the rdoc2 wrapper for + # rdoc-2* series. + ruby_fakegem_binwrapper testrb /usr/bin/testrb-2 +} |