From 131ddacaa88b33e4bb7e740c70a6f1707ab9c15d Mon Sep 17 00:00:00 2001 From: taca Date: Sat, 4 Dec 2010 04:01:54 +0000 Subject: Update ruby-mocha package to 0.9.10. = 0.9.10 () * Added Mocha::ObjectMethods#unstub method - https://github.com/floehopper/mocha/issues#issue/6 * Inherit Mocha::ExpectationError from Exception instead of StandardError to reduce the chances of a test passing by accident - thanks to James Sanders (jsanders) - https://github.com/floehopper/mocha/issues#issue/15 * Fixed bug - GitHub README page to link correctly to code examples - https://github.com/floehopper/mocha/issues/closed#issue/11 * Fixed bug - PASSTHROUGH_EXCEPTIONS are defined on MiniTest::Unit::TestCase not in Mocha - thanks to Brian Troutwine (blt) - https://github.com/floehopper/mocha/issues/closed#issue/14 = 0.9.9 (ee3a79db4d52c3339e8acf07505e01236a2b4810) * Avoid loading bits of the test-unit gem by accident. This is an attempt at a fix for the problem that James Adam reported [1]. By using 'load' instead of 'require' to detect the version of Test::Unit, we can avoid rubygems trying to load bits of the test-unit gem when it's not wanted. [1] http://floehopper.lighthouseapp.com/projects/22289-mocha/tickets/50#ticket-50-13 * Fix exception when running rake without test-unit gem. When test-unit gem >=v2.0.0 was installed but the "use_test_unit_gem" MOCHA_OPTIONS was not specified, a "comparison of Fixnum with Hash failed" exception was being raised when running the performance tests. This was because bits of the test-unit gem were being loaded accidentally and a Hash was being incorrectly supplied to the TestRunner.run method. * Explicitly require rubygems for running tests via rake using test-unit gem. * Handle newer versions of test-unit gem (v2.0.2 to v2.0.9) * Handle newer versions of minitest gem (v1.4.0 to v1.6.0) * Added warnings about monkey-patching test-unit and minitest to aid debugging. These are enabled by including "debug" in the MOCHA_OPTIONS environment variable. This is now a comma-separated list, so that we can specify multiple options e.g. MOCHA_OPTIONS=debug,use_test_unit_gem * Eloy Duran (alloy) made the unit tests run on 1.9.2dev r25249. * Eloy Duran (alloy) also improved some MiniTest TestResult code I'd written and got the acceptance tests running on Ruby 1.9 HEAD. There are still 4 failures because for some reason the backtrace line numbers are off by one. And the minitest_test test case does not run when the whole suite is run with MiniTest. These issues still need investigation. * Fixed some acceptance tests to run in Ruby 1.9.2 - it's no longer possible to subvert the protection of a method by calling it via Object#send. * Fixed "test:performance" rake task so it runs in Ruby 1.9.2. * Fix test incorrectly failing under Rubinius 1.0. This test imposed too many constraints. It appears that Object#inspect legitimately calls Object#object_id in Rubinius. But we're only interested in what 'id' methods Mocha::ObjectMethods#mocha_inspect calls. By stubbing Object#inspect we can relax the constraints imposed by the test. * Luke Redpath (lukeredpath) added new shorthand "any" and "all" composite parameter matchers using "&" and "|". This provides an alternative syntax for expecting any or all matchers to pass, e.g. foo.expects(:bar).with(equals(1) | equals(2)). * Improved documentation for Expectation#raises. A number of people have suggested an extension to the API to cope with custom exceptions that have extra constructor parameters. However, since the arguments supplied to Expectation#raises are just passed on to Kernel#raise, it's possible to pass in an instance of an exception. Thus no change to the API is required, but it does seem worthwhile pointing this out in the docs. * Corrected RDoc example for Expectation#never thanks to Red David (reddavis). * Improved RDoc including a change suggested by Rohit Arondekar (rohit). * Updated gemspec as requested by Sam Woodard (shwoodard). --- devel/ruby-mocha/Makefile | 4 ++-- devel/ruby-mocha/PLIST | 27 ++++++++++++++++++--------- devel/ruby-mocha/distinfo | 8 ++++---- 3 files changed, 24 insertions(+), 15 deletions(-) (limited to 'devel') diff --git a/devel/ruby-mocha/Makefile b/devel/ruby-mocha/Makefile index 9ea0cddc1e8..b5035778321 100644 --- a/devel/ruby-mocha/Makefile +++ b/devel/ruby-mocha/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.6 2010/09/10 05:59:28 taca Exp $ +# $NetBSD: Makefile,v 1.7 2010/12/04 04:01:54 taca Exp $ -DISTNAME= mocha-0.9.8 +DISTNAME= mocha-0.9.10 CATEGORIES= devel MAINTAINER= pkgsrc-users@NetBSD.org diff --git a/devel/ruby-mocha/PLIST b/devel/ruby-mocha/PLIST index 1bfc2326f5d..67f37e9c364 100644 --- a/devel/ruby-mocha/PLIST +++ b/devel/ruby-mocha/PLIST @@ -1,9 +1,9 @@ -@comment $NetBSD: PLIST,v 1.4 2010/08/03 02:56:32 obache Exp $ -${GEM_HOME}/cache/mocha-${PKGVERSION}.gem -${GEM_LIBDIR}/COPYING -${GEM_LIBDIR}/MIT-LICENSE -${GEM_LIBDIR}/README -${GEM_LIBDIR}/RELEASE +@comment $NetBSD: PLIST,v 1.5 2010/12/04 04:01:54 taca Exp $ +${GEM_HOME}/cache/${GEM_NAME}.gem +${GEM_LIBDIR}/COPYING.rdoc +${GEM_LIBDIR}/MIT-LICENSE.rdoc +${GEM_LIBDIR}/README.rdoc +${GEM_LIBDIR}/RELEASE.rdoc ${GEM_LIBDIR}/Rakefile ${GEM_LIBDIR}/examples/misc.rb ${GEM_LIBDIR}/examples/mocha.rb @@ -29,11 +29,16 @@ ${GEM_LIBDIR}/lib/mocha/instance_method.rb ${GEM_LIBDIR}/lib/mocha/integration.rb ${GEM_LIBDIR}/lib/mocha/integration/mini_test.rb ${GEM_LIBDIR}/lib/mocha/integration/mini_test/assertion_counter.rb -${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_131_and_above.rb +${GEM_LIBDIR}/lib/mocha/integration/mini_test/exception_translation.rb +${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_13.rb +${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_140.rb +${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_141.rb +${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_142_and_above.rb ${GEM_LIBDIR}/lib/mocha/integration/test_unit.rb ${GEM_LIBDIR}/lib/mocha/integration/test_unit/assertion_counter.rb ${GEM_LIBDIR}/lib/mocha/integration/test_unit/gem_version_200.rb -${GEM_LIBDIR}/lib/mocha/integration/test_unit/gem_version_201_and_above.rb +${GEM_LIBDIR}/lib/mocha/integration/test_unit/gem_version_201_to_202.rb +${GEM_LIBDIR}/lib/mocha/integration/test_unit/gem_version_203_to_209.rb ${GEM_LIBDIR}/lib/mocha/integration/test_unit/ruby_version_185_and_below.rb ${GEM_LIBDIR}/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb ${GEM_LIBDIR}/lib/mocha/is_a.rb @@ -47,6 +52,7 @@ ${GEM_LIBDIR}/lib/mocha/multiple_yields.rb ${GEM_LIBDIR}/lib/mocha/names.rb ${GEM_LIBDIR}/lib/mocha/no_yields.rb ${GEM_LIBDIR}/lib/mocha/object.rb +${GEM_LIBDIR}/lib/mocha/options.rb ${GEM_LIBDIR}/lib/mocha/parameter_matchers.rb ${GEM_LIBDIR}/lib/mocha/parameter_matchers/all_of.rb ${GEM_LIBDIR}/lib/mocha/parameter_matchers/any_of.rb @@ -86,6 +92,7 @@ ${GEM_LIBDIR}/test/acceptance/api_test.rb ${GEM_LIBDIR}/test/acceptance/bug_18914_test.rb ${GEM_LIBDIR}/test/acceptance/bug_21465_test.rb ${GEM_LIBDIR}/test/acceptance/bug_21563_test.rb +${GEM_LIBDIR}/test/acceptance/exception_rescue_test.rb ${GEM_LIBDIR}/test/acceptance/expected_invocation_count_test.rb ${GEM_LIBDIR}/test/acceptance/failure_messages_test.rb ${GEM_LIBDIR}/test/acceptance/minitest_test.rb @@ -118,9 +125,11 @@ ${GEM_LIBDIR}/test/acceptance/stubbing_non_public_any_instance_method_test.rb ${GEM_LIBDIR}/test/acceptance/stubbing_non_public_class_method_test.rb ${GEM_LIBDIR}/test/acceptance/stubbing_non_public_instance_method_test.rb ${GEM_LIBDIR}/test/acceptance/stubbing_on_non_mock_object_test.rb +${GEM_LIBDIR}/test/acceptance/unstubbing_test.rb ${GEM_LIBDIR}/test/deprecation_disabler.rb ${GEM_LIBDIR}/test/execution_point.rb ${GEM_LIBDIR}/test/method_definer.rb +${GEM_LIBDIR}/test/mini_test_result.rb ${GEM_LIBDIR}/test/simple_counter.rb ${GEM_LIBDIR}/test/test_helper.rb ${GEM_LIBDIR}/test/test_runner.rb @@ -171,4 +180,4 @@ ${GEM_LIBDIR}/test/unit/single_yield_test.rb ${GEM_LIBDIR}/test/unit/state_machine_test.rb ${GEM_LIBDIR}/test/unit/string_inspect_test.rb ${GEM_LIBDIR}/test/unit/yield_parameters_test.rb -${GEM_HOME}/specifications/mocha-${PKGVERSION}.gemspec +${GEM_HOME}/specifications/${GEM_NAME}.gemspec diff --git a/devel/ruby-mocha/distinfo b/devel/ruby-mocha/distinfo index 885328e71da..31df44447b2 100644 --- a/devel/ruby-mocha/distinfo +++ b/devel/ruby-mocha/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.5 2010/08/03 02:56:32 obache Exp $ +$NetBSD: distinfo,v 1.6 2010/12/04 04:01:54 taca Exp $ -SHA1 (mocha-0.9.8.gem) = b922bbb39caca6beeb76b5af81378143c3025b80 -RMD160 (mocha-0.9.8.gem) = 2d6cd5a48a4cb93e32ecf58d8d1354409f4246d7 -Size (mocha-0.9.8.gem) = 60930 bytes +SHA1 (mocha-0.9.10.gem) = d4800469173efb69183f2f5598f2ed528bafe8cd +RMD160 (mocha-0.9.10.gem) = 84e21fd238f0e6a768cef3cad5ddfebdb8ba5625 +Size (mocha-0.9.10.gem) = 66048 bytes -- cgit v1.2.3