pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/ruby-mocha Update ruby-mocha package to 0.9.1.
details: https://anonhg.NetBSD.org/pkgsrc/rev/a142452a5bcd
branches: trunk
changeset: 547306:a142452a5bcd
user: taca <taca%pkgsrc.org@localhost>
date: Mon Sep 15 08:49:50 2008 +0000
description:
Update ruby-mocha package to 0.9.1.
= 0.9.1 (r349)
* Fixed bug #21465 - expects & stubs should support method names as strings (as well as symbols) or fail fast. Convert all expectation method names to a symbol in case they were supplied as a string.
* By removing Mock#unexpected_method_called we reduce the number of methods vulnerable to the problem that surfaced in bug #21563.
* Fix bug #21563 - stubbing 'verified?' method is unsafe. Instance method names on the Mock class should be more obscure.
* Performance improvement. StubbaExampleTest goes twice as fast on my local machine.
* Added primitive performance test to default rake task.
* Fix format of case statements which don't work in Ruby 1.9 and make others consistent.
* There is no point in running (potentially expensive) checks if configuration is set to allow such checks to fail. This is a relatively quick fix in response to Chris McGrath's performance problems.
* Fix for bug #21161 - 'uninitialized constant Deprecation in stubba.rb'.
* It's more readable to talk about 'once' and 'twice' rather than '1 time' and '2 times'.
* Fix bug #20883 - never should raise when called to prevent follow up errors. Fail fast when there are no matching invokable expectations and handle the stub_everything case sensibly. This might not
be entirely backwards compatible, but I think the benefits outweigh the risks. The most likely change is that a test that was already failing will now fail faster, which doesn't seem so awful.
= 0.9.0 (r316)
* Configurable warnings or errors
* when a method on a non-public method is stubbed
* when a method on a non-existent method is stubbed
* when a method on a non-mock object is stubbed
* when a method is stubbed unnecessarily (i.e. the stubbed method is not called during the test)
* Improved error messages
* User-friendly list of unsatisfied expectations, satisfied expectations and state machines.
* Improved readability of cardinality description.
* Display sensible failure message for any_instance expectations e.g. "#<AnyInstance:Foo>.bar - expected calls: 1, actual calls: 0"
* Parameter matchers
* New to this release
* optionally (allows matching of optional parameters if available)
* yaml_equivalent (allows matching of YAML that represents the specified object)
* responds_with (tests the quack not the duck)
* Nesting of parameter matchers is now supported.
* Optional block passed into mock initializer is evaluated in the context of the new mock instance and can be used as a shortcut to set up expectations.
* Added JMock-style sequences for constraining the order of expected invocations. See Standalone#sequence and Expectation#in_sequence.
* Added JMock-style states for constraining the order of expected invocations. See Standalone#states, Expectation#then, Expectation#when and StateMachine.
* Compatibility with versions of Ruby
* Compatibility with Ruby v1.9. All test errors and warnings fixed.
* Nasty fix so that TestCaseAdaptor works consistently with earlier versions of Test::Unit as well as more recent versions.
* Added platform to gem specification to avoid bug in rubygems 0.9.5 - see http://www.dcmanges.com/blog/rubygems-0-9-5-platform-bug and http://rubygems.org/read/chapter/20#platform.
* Make ExpectationRaiser deal with subclasses of Interrupt which seem to need a message supplied in the raise statement in Ruby 1.8.6 (but not 1.8.4 or 1.9). Not sure this is really Mocha's
responsibility.
* Added deprecation warning in stubba.rb which is no longer needed and will be removed.
* Supply positioning information to evals to improve any error messages. See http://ola-bini.blogspot.com/2008/01/ruby-antipattern-using-eval-without.html
* Bug fixes
* 18914 in revision 296 - http://rubyforge.org/tracker/index.php?func=detail&aid=18914&group_id=1917&atid=7477
* 18917 in revision 295 - http://rubyforge.org/tracker/index.php?func=detail&aid=18917&group_id=1917&atid=7477
* 18336 in revision 287 - http://rubyforge.org/tracker/index.php?func=detail&aid=18336&group_id=1917&atid=7477
* 17835 in revision 255 - http://rubyforge.org/tracker/index.php?func=detail&aid=17835&group_id=1917&atid=7477
* 17412 in revision 242 - http://rubyforge.org/tracker/index.php?func=detail&aid=17412&group_id=1917&atid=7477
* 15977 in revision 198 - http://rubyforge.org/tracker/index.php?func=detail&aid=15977&group_id=1917&atid=7477
* 11885 in revision 156 - http://rubyforge.org/tracker/index.php?func=detail&aid=11885&group_id=1917&atid=7477
diffstat:
devel/ruby-mocha/Makefile | 8 +---
devel/ruby-mocha/PLIST | 91 ++++++++++++++++++++++++++++++++--------------
devel/ruby-mocha/distinfo | 8 ++--
3 files changed, 69 insertions(+), 38 deletions(-)
diffs (213 lines):
diff -r d70486929be0 -r a142452a5bcd devel/ruby-mocha/Makefile
--- a/devel/ruby-mocha/Makefile Mon Sep 15 08:47:52 2008 +0000
+++ b/devel/ruby-mocha/Makefile Mon Sep 15 08:49:50 2008 +0000
@@ -1,16 +1,12 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/04/07 00:32:28 seb Exp $
+# $NetBSD: Makefile,v 1.2 2008/09/15 08:49:50 taca Exp $
-DISTNAME= mocha-0.5.6
+DISTNAME= mocha-0.9.1
PKGNAME= ${RUBYGEM_PKGPREFIX}-${DISTNAME}
-#PKGREVISION= 1
CATEGORIES= devel
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= http://mocha.rubyforge.org/
COMMENT= Ruby library for mocking and stubbing
-#pre-build:
-# rm -f ${WRKSRC}/*.orig
-
.include "../../misc/rubygems/rubygem.mk"
.include "../../mk/bsd.pkg.mk"
diff -r d70486929be0 -r a142452a5bcd devel/ruby-mocha/PLIST
--- a/devel/ruby-mocha/PLIST Mon Sep 15 08:47:52 2008 +0000
+++ b/devel/ruby-mocha/PLIST Mon Sep 15 08:49:50 2008 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2008/04/07 00:32:28 seb Exp $
+@comment $NetBSD: PLIST,v 1.2 2008/09/15 08:49:50 taca Exp $
${GEM_HOME}/cache/mocha-${PKGVERSION}.gem
${GEM_LIBDIR}/COPYING
${GEM_LIBDIR}/MIT-LICENSE
@@ -10,23 +10,29 @@
${GEM_LIBDIR}/examples/stubba.rb
${GEM_LIBDIR}/lib/mocha.rb
${GEM_LIBDIR}/lib/mocha/any_instance_method.rb
-${GEM_LIBDIR}/lib/mocha/auto_verify.rb
+${GEM_LIBDIR}/lib/mocha/backtrace_filter.rb
+${GEM_LIBDIR}/lib/mocha/cardinality.rb
${GEM_LIBDIR}/lib/mocha/central.rb
+${GEM_LIBDIR}/lib/mocha/change_state_side_effect.rb
${GEM_LIBDIR}/lib/mocha/class_method.rb
+${GEM_LIBDIR}/lib/mocha/configuration.rb
${GEM_LIBDIR}/lib/mocha/deprecation.rb
${GEM_LIBDIR}/lib/mocha/exception_raiser.rb
${GEM_LIBDIR}/lib/mocha/expectation.rb
${GEM_LIBDIR}/lib/mocha/expectation_error.rb
${GEM_LIBDIR}/lib/mocha/expectation_list.rb
-${GEM_LIBDIR}/lib/mocha/infinite_range.rb
+${GEM_LIBDIR}/lib/mocha/in_state_ordering_constraint.rb
${GEM_LIBDIR}/lib/mocha/inspect.rb
${GEM_LIBDIR}/lib/mocha/instance_method.rb
${GEM_LIBDIR}/lib/mocha/is_a.rb
+${GEM_LIBDIR}/lib/mocha/logger.rb
${GEM_LIBDIR}/lib/mocha/metaclass.rb
${GEM_LIBDIR}/lib/mocha/method_matcher.rb
-${GEM_LIBDIR}/lib/mocha/missing_expectation.rb
${GEM_LIBDIR}/lib/mocha/mock.rb
+${GEM_LIBDIR}/lib/mocha/mockery.rb
+${GEM_LIBDIR}/lib/mocha/module_method.rb
${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/parameter_matchers.rb
@@ -48,61 +54,90 @@
${GEM_LIBDIR}/lib/mocha/parameter_matchers/object.rb
${GEM_LIBDIR}/lib/mocha/parameter_matchers/optionally.rb
${GEM_LIBDIR}/lib/mocha/parameter_matchers/regexp_matches.rb
+${GEM_LIBDIR}/lib/mocha/parameter_matchers/responds_with.rb
+${GEM_LIBDIR}/lib/mocha/parameter_matchers/yaml_equivalent.rb
${GEM_LIBDIR}/lib/mocha/parameters_matcher.rb
${GEM_LIBDIR}/lib/mocha/pretty_parameters.rb
${GEM_LIBDIR}/lib/mocha/return_values.rb
${GEM_LIBDIR}/lib/mocha/sequence.rb
-${GEM_LIBDIR}/lib/mocha/setup_and_teardown.rb
${GEM_LIBDIR}/lib/mocha/single_return_value.rb
${GEM_LIBDIR}/lib/mocha/single_yield.rb
${GEM_LIBDIR}/lib/mocha/standalone.rb
-${GEM_LIBDIR}/lib/mocha/stub.rb
+${GEM_LIBDIR}/lib/mocha/state_machine.rb
+${GEM_LIBDIR}/lib/mocha/stubbing_error.rb
${GEM_LIBDIR}/lib/mocha/test_case_adapter.rb
+${GEM_LIBDIR}/lib/mocha/unexpected_invocation.rb
${GEM_LIBDIR}/lib/mocha/yield_parameters.rb
${GEM_LIBDIR}/lib/mocha_standalone.rb
${GEM_LIBDIR}/lib/stubba.rb
-${GEM_LIBDIR}/test/acceptance/expected_invocation_count_acceptance_test.rb
-${GEM_LIBDIR}/test/acceptance/mocha_acceptance_test.rb
-${GEM_LIBDIR}/test/acceptance/mock_with_initializer_block_acceptance_test.rb
-${GEM_LIBDIR}/test/acceptance/mocked_methods_dispatch_acceptance_test.rb
-${GEM_LIBDIR}/test/acceptance/optional_parameters_acceptance_test.rb
-${GEM_LIBDIR}/test/acceptance/parameter_matcher_acceptance_test.rb
-${GEM_LIBDIR}/test/acceptance/partial_mocks_acceptance_test.rb
-${GEM_LIBDIR}/test/acceptance/sequence_acceptance_test.rb
-${GEM_LIBDIR}/test/acceptance/standalone_acceptance_test.rb
-${GEM_LIBDIR}/test/acceptance/stubba_acceptance_test.rb
+${GEM_LIBDIR}/test/acceptance/acceptance_test_helper.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/expected_invocation_count_test.rb
+${GEM_LIBDIR}/test/acceptance/failure_messages_test.rb
+${GEM_LIBDIR}/test/acceptance/mocha_example_test.rb
+${GEM_LIBDIR}/test/acceptance/mocha_test_result_test.rb
+${GEM_LIBDIR}/test/acceptance/mock_test.rb
+${GEM_LIBDIR}/test/acceptance/mock_with_initializer_block_test.rb
+${GEM_LIBDIR}/test/acceptance/mocked_methods_dispatch_test.rb
+${GEM_LIBDIR}/test/acceptance/optional_parameters_test.rb
+${GEM_LIBDIR}/test/acceptance/parameter_matcher_test.rb
+${GEM_LIBDIR}/test/acceptance/partial_mocks_test.rb
+${GEM_LIBDIR}/test/acceptance/return_value_test.rb
+${GEM_LIBDIR}/test/acceptance/sequence_test.rb
+${GEM_LIBDIR}/test/acceptance/standalone_test.rb
+${GEM_LIBDIR}/test/acceptance/states_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_any_instance_method_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_class_method_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_everything_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_instance_method_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_module_method_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_test.rb
+${GEM_LIBDIR}/test/acceptance/stubba_example_test.rb
+${GEM_LIBDIR}/test/acceptance/stubba_test.rb
+${GEM_LIBDIR}/test/acceptance/stubba_test_result_test.rb
+${GEM_LIBDIR}/test/acceptance/stubbing_error_backtrace_test.rb
+${GEM_LIBDIR}/test/acceptance/stubbing_method_unnecessarily_test.rb
+${GEM_LIBDIR}/test/acceptance/stubbing_non_existent_any_instance_method_test.rb
+${GEM_LIBDIR}/test/acceptance/stubbing_non_existent_class_method_test.rb
+${GEM_LIBDIR}/test/acceptance/stubbing_non_existent_instance_method_test.rb
+${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/active_record_test_case.rb
${GEM_LIBDIR}/test/deprecation_disabler.rb
${GEM_LIBDIR}/test/execution_point.rb
-${GEM_LIBDIR}/test/integration/mocha_test_result_integration_test.rb
-${GEM_LIBDIR}/test/integration/stubba_integration_test.rb
-${GEM_LIBDIR}/test/integration/stubba_test_result_integration_test.rb
${GEM_LIBDIR}/test/method_definer.rb
+${GEM_LIBDIR}/test/simple_counter.rb
${GEM_LIBDIR}/test/test_helper.rb
${GEM_LIBDIR}/test/test_runner.rb
${GEM_LIBDIR}/test/unit/any_instance_method_test.rb
${GEM_LIBDIR}/test/unit/array_inspect_test.rb
-${GEM_LIBDIR}/test/unit/auto_verify_test.rb
+${GEM_LIBDIR}/test/unit/backtrace_filter_test.rb
+${GEM_LIBDIR}/test/unit/cardinality_test.rb
${GEM_LIBDIR}/test/unit/central_test.rb
+${GEM_LIBDIR}/test/unit/change_state_side_effect_test.rb
${GEM_LIBDIR}/test/unit/class_method_test.rb
${GEM_LIBDIR}/test/unit/date_time_inspect_test.rb
-${GEM_LIBDIR}/test/unit/expectation_error_test.rb
+${GEM_LIBDIR}/test/unit/exception_raiser_test.rb
${GEM_LIBDIR}/test/unit/expectation_list_test.rb
-${GEM_LIBDIR}/test/unit/expectation_raiser_test.rb
${GEM_LIBDIR}/test/unit/expectation_test.rb
${GEM_LIBDIR}/test/unit/hash_inspect_test.rb
-${GEM_LIBDIR}/test/unit/infinite_range_test.rb
+${GEM_LIBDIR}/test/unit/in_state_ordering_constraint_test.rb
${GEM_LIBDIR}/test/unit/metaclass_test.rb
${GEM_LIBDIR}/test/unit/method_matcher_test.rb
-${GEM_LIBDIR}/test/unit/missing_expectation_test.rb
+${GEM_LIBDIR}/test/unit/mockery_test.rb
${GEM_LIBDIR}/test/unit/mock_test.rb
${GEM_LIBDIR}/test/unit/multiple_yields_test.rb
-${GEM_LIBDIR}/test/unit/no_yield_test.rb
+${GEM_LIBDIR}/test/unit/no_yields_test.rb
${GEM_LIBDIR}/test/unit/object_inspect_test.rb
${GEM_LIBDIR}/test/unit/object_test.rb
${GEM_LIBDIR}/test/unit/parameter_matchers/all_of_test.rb
${GEM_LIBDIR}/test/unit/parameter_matchers/any_of_test.rb
${GEM_LIBDIR}/test/unit/parameter_matchers/anything_test.rb
+${GEM_LIBDIR}/test/unit/parameter_matchers/equals_test.rb
${GEM_LIBDIR}/test/unit/parameter_matchers/has_entries_test.rb
${GEM_LIBDIR}/test/unit/parameter_matchers/has_entry_test.rb
${GEM_LIBDIR}/test/unit/parameter_matchers/has_key_test.rb
@@ -113,20 +148,20 @@
${GEM_LIBDIR}/test/unit/parameter_matchers/kind_of_test.rb
${GEM_LIBDIR}/test/unit/parameter_matchers/not_test.rb
${GEM_LIBDIR}/test/unit/parameter_matchers/regexp_matches_test.rb
+${GEM_LIBDIR}/test/unit/parameter_matchers/responds_with_test.rb
${GEM_LIBDIR}/test/unit/parameter_matchers/stub_matcher.rb
+${GEM_LIBDIR}/test/unit/parameter_matchers/yaml_equivalent_test.rb
${GEM_LIBDIR}/test/unit/parameters_matcher_test.rb
${GEM_LIBDIR}/test/unit/return_values_test.rb
${GEM_LIBDIR}/test/unit/sequence_test.rb
-${GEM_LIBDIR}/test/unit/setup_and_teardown_test.rb
${GEM_LIBDIR}/test/unit/single_return_value_test.rb
${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/stub_test.rb
${GEM_LIBDIR}/test/unit/yield_parameters_test.rb
${GEM_HOME}/specifications/mocha-${PKGVERSION}.gemspec
@dirrm ${GEM_LIBDIR}/test/unit/parameter_matchers
@dirrm ${GEM_LIBDIR}/test/unit
-@dirrm ${GEM_LIBDIR}/test/integration
@dirrm ${GEM_LIBDIR}/test/acceptance
@dirrm ${GEM_LIBDIR}/test
@dirrm ${GEM_LIBDIR}/lib/mocha/parameter_matchers
diff -r d70486929be0 -r a142452a5bcd devel/ruby-mocha/distinfo
--- a/devel/ruby-mocha/distinfo Mon Sep 15 08:47:52 2008 +0000
+++ b/devel/ruby-mocha/distinfo Mon Sep 15 08:49:50 2008 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/04/07 00:32:28 seb Exp $
+$NetBSD: distinfo,v 1.2 2008/09/15 08:49:50 taca Exp $
-SHA1 (mocha-0.5.6.gem) = 345e950cb57d393437c7ad67cd3c09a3142a24fd
-RMD160 (mocha-0.5.6.gem) = 301e95d46c363dc758a521ac109dbe43b07f21a6
-Size (mocha-0.5.6.gem) = 42498 bytes
+SHA1 (mocha-0.9.1.gem) = cfe81c1e94493269bc2b3b8909612933eefaa3a2
+RMD160 (mocha-0.9.1.gem) = 2ebfb22dd4423ca9b6da940f5c1752a704a69c30
+Size (mocha-0.9.1.gem) = 54274 bytes
Home |
Main Index |
Thread Index |
Old Index