Skip to content

Commit

Permalink
Update ruby-mocha to 0.13.1.
Browse files Browse the repository at this point in the history
## 0.13.1
* Fix #97 - `Mocha::ParameterMatchers#has_entry` does not work with an Array as the entry's value. Thanks to @ngokli.
* Allow deprecation `:debug` mode to be switched on from `MOCHA_OPTIONS` environment variable.

## 0.13.0
* Major overhaul of MiniTest & Test::Unit integration. Mocha now integrates with later versions of the two test libraries using documented hooks rather than monkey-patching. This should mean that Mocha will integrate with new versions of either library without the need to release a new version of Mocha each time, which was clearly bad and unsustainable. Many thanks to @tenderlove, @zenspider & @kou for their help, suggestions & patience.
* Temporarily deprecated `require 'mocha'`. Use `require 'mocha/setup'` instead. The plan is that eventually `require 'mocha'` will *not* automatically integrate with either of the two test libraries as it does at the moment, and you'll need to explicitly & separately trigger the integration. I think this will provide a lot more flexibility and will hopefully do away with the need for the `require: false` option in the `Gemfile` which has always confused people.
* Deprecated `require 'mocha_standalone'` and `require 'mocha/standalone'`. Use `require 'mocha/api` instead.
* Although these are not part of Mocha's public API, I thought I should mention that the MiniTest and Test::Unit assertion counter classes have been combined into a single class `Mocha::Integration::AssertionCounter`.
* Extracted Mocha::Hooks module from Mocha::API and added documentation for test library authors.
* Improvements to documentation. Much of it has been combined into the README file.
* Fix #101 - Mock#respond_to? doesn't work with a string argument - thanks to @urbanautomaton.
* Fix #105 - Travis link in README - thanks to @cknadler.
* Various improvements to automated testing of integration with test libraries.
* Make deprecation warnings more prominent.

= 0.12.7
* Officially support minitest v4.1.0 (still monkey-patching).

= 0.12.6
* Fixes #103.

= 0.12.5
* Officially support minitest v3.5.0 (still monkey-patching).
  • Loading branch information
taca committed Dec 16, 2012
1 parent b1e7fb1 commit 5581d54
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 23 deletions.
4 changes: 2 additions & 2 deletions devel/ruby-mocha/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.14 2012/09/15 12:28:00 taca Exp $
# $NetBSD: Makefile,v 1.15 2012/12/16 16:28:07 taca Exp $

DISTNAME= mocha-0.12.4
DISTNAME= mocha-0.13.1
CATEGORIES= devel

MAINTAINER= [email protected]
Expand Down
42 changes: 25 additions & 17 deletions devel/ruby-mocha/PLIST
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
@comment $NetBSD: PLIST,v 1.12 2012/09/15 12:28:00 taca Exp $
@comment $NetBSD: PLIST,v 1.13 2012/12/16 16:28:07 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/.gemtest
${GEM_LIBDIR}/COPYING.rdoc
${GEM_LIBDIR}/.yardopts
${GEM_LIBDIR}/COPYING.md
${GEM_LIBDIR}/Gemfile
${GEM_LIBDIR}/MIT-LICENSE.rdoc
${GEM_LIBDIR}/README.rdoc
${GEM_LIBDIR}/RELEASE.rdoc
${GEM_LIBDIR}/MIT-LICENSE.md
${GEM_LIBDIR}/README.md
${GEM_LIBDIR}/RELEASE.md
${GEM_LIBDIR}/Rakefile
${GEM_LIBDIR}/build-matrix.rb
${GEM_LIBDIR}/examples/misc.rb
${GEM_LIBDIR}/examples/mocha.rb
${GEM_LIBDIR}/examples/stubba.rb
${GEM_LIBDIR}/gemfiles/Gemfile.minitest.1.3.0
${GEM_LIBDIR}/gemfiles/Gemfile.minitest.1.4.0
${GEM_LIBDIR}/gemfiles/Gemfile.minitest.1.4.1
Expand All @@ -35,20 +33,25 @@ ${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/class_methods.rb
${GEM_LIBDIR}/lib/mocha/configuration.rb
${GEM_LIBDIR}/lib/mocha/debug.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_error_factory.rb
${GEM_LIBDIR}/lib/mocha/expectation_list.rb
${GEM_LIBDIR}/lib/mocha/hooks.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/integration.rb
${GEM_LIBDIR}/lib/mocha/integration/assertion_counter.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/adapter.rb
${GEM_LIBDIR}/lib/mocha/integration/mini_test/exception_translation.rb
${GEM_LIBDIR}/lib/mocha/integration/mini_test/nothing.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
Expand All @@ -58,13 +61,14 @@ ${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_201_to_222.rb
${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_2110_to_2111.rb
${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_2112_to_320.rb
${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_230_to_2101.rb
${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_340.rb
${GEM_LIBDIR}/lib/mocha/integration/monkey_patcher.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/adapter.rb
${GEM_LIBDIR}/lib/mocha/integration/test_unit/gem_version_200.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_220.rb
${GEM_LIBDIR}/lib/mocha/integration/test_unit/gem_version_230_to_252.rb
${GEM_LIBDIR}/lib/mocha/integration/test_unit/gem_version_230_to_250.rb
${GEM_LIBDIR}/lib/mocha/integration/test_unit/nothing.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
Expand All @@ -73,11 +77,11 @@ ${GEM_LIBDIR}/lib/mocha/method_matcher.rb
${GEM_LIBDIR}/lib/mocha/mock.rb
${GEM_LIBDIR}/lib/mocha/mockery.rb
${GEM_LIBDIR}/lib/mocha/module_method.rb
${GEM_LIBDIR}/lib/mocha/module_methods.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/options.rb
${GEM_LIBDIR}/lib/mocha/object_methods.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
Expand All @@ -104,6 +108,7 @@ ${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.rb
${GEM_LIBDIR}/lib/mocha/single_return_value.rb
${GEM_LIBDIR}/lib/mocha/single_yield.rb
${GEM_LIBDIR}/lib/mocha/standalone.rb
Expand All @@ -116,7 +121,6 @@ ${GEM_LIBDIR}/lib/mocha/yield_parameters.rb
${GEM_LIBDIR}/lib/mocha_standalone.rb
${GEM_LIBDIR}/mocha.gemspec
${GEM_LIBDIR}/test/acceptance/acceptance_test_helper.rb
${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
Expand All @@ -126,7 +130,6 @@ ${GEM_LIBDIR}/test/acceptance/expected_invocation_count_test.rb
${GEM_LIBDIR}/test/acceptance/failure_messages_test.rb
${GEM_LIBDIR}/test/acceptance/issue_65_test.rb
${GEM_LIBDIR}/test/acceptance/issue_70_test.rb
${GEM_LIBDIR}/test/acceptance/minitest_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
Expand Down Expand Up @@ -175,6 +178,9 @@ ${GEM_LIBDIR}/test/acceptance/throw_test.rb
${GEM_LIBDIR}/test/acceptance/unstubbing_test.rb
${GEM_LIBDIR}/test/deprecation_disabler.rb
${GEM_LIBDIR}/test/execution_point.rb
${GEM_LIBDIR}/test/integration/mini_test_test.rb
${GEM_LIBDIR}/test/integration/shared_tests.rb
${GEM_LIBDIR}/test/integration/test_unit_test.rb
${GEM_LIBDIR}/test/method_definer.rb
${GEM_LIBDIR}/test/mini_test_result.rb
${GEM_LIBDIR}/test/simple_counter.rb
Expand All @@ -188,6 +194,7 @@ ${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/class_methods_test.rb
${GEM_LIBDIR}/test/unit/configuration_test.rb
${GEM_LIBDIR}/test/unit/date_time_inspect_test.rb
${GEM_LIBDIR}/test/unit/exception_raiser_test.rb
Expand All @@ -198,10 +205,11 @@ ${GEM_LIBDIR}/test/unit/in_state_ordering_constraint_test.rb
${GEM_LIBDIR}/test/unit/method_matcher_test.rb
${GEM_LIBDIR}/test/unit/mock_test.rb
${GEM_LIBDIR}/test/unit/mockery_test.rb
${GEM_LIBDIR}/test/unit/module_methods_test.rb
${GEM_LIBDIR}/test/unit/multiple_yields_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/object_methods_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
Expand Down
8 changes: 4 additions & 4 deletions devel/ruby-mocha/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.13 2012/09/15 12:28:00 taca Exp $
$NetBSD: distinfo,v 1.14 2012/12/16 16:28:07 taca Exp $

SHA1 (mocha-0.12.4.gem) = 02a52753c30f0a1fe76504d96bc5a20633c63978
RMD160 (mocha-0.12.4.gem) = e810b5c143176b8364c8ca97b519f194bc765a94
Size (mocha-0.12.4.gem) = 76800 bytes
SHA1 (mocha-0.13.1.gem) = b02818d6975d6d64a95094bb4c78e67d58f0485d
RMD160 (mocha-0.13.1.gem) = 6d3fcdf62fe46ea7177755d8c7b47eeda678439c
Size (mocha-0.13.1.gem) = 79872 bytes

0 comments on commit 5581d54

Please sign in to comment.