Skip to content

Commit

Permalink
Update ruby-mocha to 0.11.3.
Browse files Browse the repository at this point in the history
= 0.11.3
* Fix for #78 i.e. alias Object#method as Object#_method, not Object#__method__ which already exists as another Ruby method.

= 0.11.2
* Rails has a Request class which defines its own #method method. This broke the new mechanism for stubbing a method. This release includes a slightly modified version of fix #77 provided by @sikachu. See rails/rails#5907 for further info.

= 0.11.1 ()
* In Ruby 1.8.7 methods accepting a block parameter were incorrectly restored without the block parameter after being stubbed. Fix for #76.

= 0.11.0 (fa601c89a7f5314dc3d258391a99c6a9e25cefb3)
* Store original method when stubbing rather than using alias_method. This fixes #41, #47, #74 and all tests now pass on both Ruby 1.8.7 and 1.9.3.
* Attempting to stub a method on a frozen object should fail fast. See #68.
* Prevent stubbing a method on nil by default. See #68.
* Generate documentation using YARD instead of Rdoc - removes dependency on Coderay.
* Publish documentation on Github pages instead of Rubyforge - uses rake task written by @tomafro.
* Remove agiledox which has outlived it's usefulness.
* Removed trailing whitespace throughout codebase.
* Add documentation for Mock#unstub.
* Improve documentation for ObjectMethods.
* Provide a way to run multiple tests within a single acceptance test method.
  • Loading branch information
taca committed Apr 28, 2012
1 parent f11b736 commit e29c934
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 7 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.10 2012/03/17 14:39:20 taca Exp $
# $NetBSD: Makefile,v 1.11 2012/04/28 15:55:03 taca Exp $

DISTNAME= mocha-0.10.5
DISTNAME= mocha-0.11.3
CATEGORIES= devel

MAINTAINER= [email protected]
Expand Down
62 changes: 61 additions & 1 deletion devel/ruby-mocha/PLIST
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.8 2012/03/17 14:39:20 taca Exp $
@comment $NetBSD: PLIST,v 1.9 2012/04/28 15:55:03 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/.gemtest
${GEM_LIBDIR}/COPYING.rdoc
Expand All @@ -7,6 +7,61 @@ ${GEM_LIBDIR}/MIT-LICENSE.rdoc
${GEM_LIBDIR}/README.rdoc
${GEM_LIBDIR}/RELEASE.rdoc
${GEM_LIBDIR}/Rakefile
${GEM_LIBDIR}/doc/.nojekyll
${GEM_LIBDIR}/doc/Mocha.html
${GEM_LIBDIR}/doc/Mocha/API.html
${GEM_LIBDIR}/doc/Mocha/ClassMethods.html
${GEM_LIBDIR}/doc/Mocha/Configuration.html
${GEM_LIBDIR}/doc/Mocha/Expectation.html
${GEM_LIBDIR}/doc/Mocha/Mock.html
${GEM_LIBDIR}/doc/Mocha/ObjectMethods.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/AllOf.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/AnyOf.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/AnyParameters.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/Anything.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/Base.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/Equals.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/HasEntries.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/HasEntry.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/HasKey.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/HasValue.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/Includes.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/InstanceOf.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/IsA.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/KindOf.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/Not.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/Optionally.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/QueryStringMatches.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/RegexpMatches.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/RespondsWith.html
${GEM_LIBDIR}/doc/Mocha/ParameterMatchers/YamlEquivalent.html
${GEM_LIBDIR}/doc/Mocha/Sequence.html
${GEM_LIBDIR}/doc/Mocha/StateMachine.html
${GEM_LIBDIR}/doc/Mocha/StateMachine/State.html
${GEM_LIBDIR}/doc/Mocha/StateMachine/StatePredicate.html
${GEM_LIBDIR}/doc/Mocha/StubbingError.html
${GEM_LIBDIR}/doc/Mocha/UnexpectedInvocation.html
${GEM_LIBDIR}/doc/_index.html
${GEM_LIBDIR}/doc/class_list.html
${GEM_LIBDIR}/doc/css/common.css
${GEM_LIBDIR}/doc/css/full_list.css
${GEM_LIBDIR}/doc/css/style.css
${GEM_LIBDIR}/doc/file.COPYING.html
${GEM_LIBDIR}/doc/file.MIT-LICENSE.html
${GEM_LIBDIR}/doc/file.README.html
${GEM_LIBDIR}/doc/file.RELEASE.html
${GEM_LIBDIR}/doc/file.misc.html
${GEM_LIBDIR}/doc/file.mocha.html
${GEM_LIBDIR}/doc/file.stubba.html
${GEM_LIBDIR}/doc/file_list.html
${GEM_LIBDIR}/doc/frames.html
${GEM_LIBDIR}/doc/index.html
${GEM_LIBDIR}/doc/js/app.js
${GEM_LIBDIR}/doc/js/full_list.js
${GEM_LIBDIR}/doc/js/jquery.js
${GEM_LIBDIR}/doc/method_list.html
${GEM_LIBDIR}/doc/top-level-namespace.html
${GEM_LIBDIR}/examples/misc.rb
${GEM_LIBDIR}/examples/mocha.rb
${GEM_LIBDIR}/examples/stubba.rb
Expand Down Expand Up @@ -154,14 +209,18 @@ ${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_frozen_object_test.rb
${GEM_LIBDIR}/test/acceptance/stubbing_method_accepting_block_parameter_test.rb
${GEM_LIBDIR}/test/acceptance/stubbing_method_unnecessarily_test.rb
${GEM_LIBDIR}/test/acceptance/stubbing_nil_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/acceptance/stubbing_same_class_method_on_parent_and_child_classes_test.rb
${GEM_LIBDIR}/test/acceptance/throw_test.rb
${GEM_LIBDIR}/test/acceptance/unstubbing_test.rb
${GEM_LIBDIR}/test/deprecation_disabler.rb
Expand All @@ -171,6 +230,7 @@ ${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
${GEM_LIBDIR}/test/test_unit_result.rb
${GEM_LIBDIR}/test/unit/any_instance_method_test.rb
${GEM_LIBDIR}/test/unit/array_inspect_test.rb
${GEM_LIBDIR}/test/unit/backtrace_filter_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.9 2012/03/17 14:39:20 taca Exp $
$NetBSD: distinfo,v 1.10 2012/04/28 15:55:03 taca Exp $

SHA1 (mocha-0.10.5.gem) = b3490deeb5a2e50b86df3cdacf27f19b67fc6f3f
RMD160 (mocha-0.10.5.gem) = 5e29c4701db4fdd90012cf3e1c4ebe46a254e972
Size (mocha-0.10.5.gem) = 73728 bytes
SHA1 (mocha-0.11.3.gem) = bb2daa794aa488c8c51c8106247e5ccaeae61e02
RMD160 (mocha-0.11.3.gem) = 7f16324f26a39bf4890d6b957fe56d0324478538
Size (mocha-0.11.3.gem) = 178176 bytes

0 comments on commit e29c934

Please sign in to comment.