head 1.37; access; symbols pkgsrc-2023Q4:1.37.0.4 pkgsrc-2023Q4-base:1.37 pkgsrc-2023Q3:1.37.0.2 pkgsrc-2023Q3-base:1.37 pkgsrc-2023Q2:1.36.0.2 pkgsrc-2023Q2-base:1.36 pkgsrc-2023Q1:1.35.0.4 pkgsrc-2023Q1-base:1.35 pkgsrc-2022Q4:1.35.0.2 pkgsrc-2022Q4-base:1.35 pkgsrc-2022Q3:1.33.0.2 pkgsrc-2022Q3-base:1.33 pkgsrc-2022Q2:1.32.0.6 pkgsrc-2022Q2-base:1.32 pkgsrc-2022Q1:1.32.0.4 pkgsrc-2022Q1-base:1.32 pkgsrc-2021Q4:1.32.0.2 pkgsrc-2021Q4-base:1.32 pkgsrc-2021Q3:1.30.0.2 pkgsrc-2021Q3-base:1.30 pkgsrc-2021Q2:1.29.0.4 pkgsrc-2021Q2-base:1.29 pkgsrc-2021Q1:1.29.0.2 pkgsrc-2021Q1-base:1.29 pkgsrc-2020Q4:1.28.0.8 pkgsrc-2020Q4-base:1.28 pkgsrc-2020Q3:1.28.0.6 pkgsrc-2020Q3-base:1.28 pkgsrc-2020Q2:1.28.0.4 pkgsrc-2020Q2-base:1.28 pkgsrc-2020Q1:1.28.0.2 pkgsrc-2020Q1-base:1.28 pkgsrc-2019Q4:1.27.0.4 pkgsrc-2019Q4-base:1.27 pkgsrc-2019Q3:1.26.0.6 pkgsrc-2019Q3-base:1.26 pkgsrc-2019Q2:1.26.0.4 pkgsrc-2019Q2-base:1.26 pkgsrc-2019Q1:1.26.0.2 pkgsrc-2019Q1-base:1.26 pkgsrc-2018Q4:1.25.0.4 pkgsrc-2018Q4-base:1.25 pkgsrc-2018Q3:1.25.0.2 pkgsrc-2018Q3-base:1.25 pkgsrc-2018Q2:1.24.0.2 pkgsrc-2018Q2-base:1.24 pkgsrc-2018Q1:1.23.0.2 pkgsrc-2018Q1-base:1.23 pkgsrc-2017Q4:1.22.0.6 pkgsrc-2017Q4-base:1.22 pkgsrc-2017Q3:1.22.0.4 pkgsrc-2017Q3-base:1.22 pkgsrc-2017Q2:1.21.0.6 pkgsrc-2017Q2-base:1.21 pkgsrc-2017Q1:1.21.0.4 pkgsrc-2017Q1-base:1.21 pkgsrc-2016Q4:1.21.0.2 pkgsrc-2016Q4-base:1.21 pkgsrc-2016Q3:1.20.0.8 pkgsrc-2016Q3-base:1.20 pkgsrc-2016Q2:1.20.0.6 pkgsrc-2016Q2-base:1.20 pkgsrc-2016Q1:1.20.0.4 pkgsrc-2016Q1-base:1.20 pkgsrc-2015Q4:1.20.0.2 pkgsrc-2015Q4-base:1.20 pkgsrc-2015Q3:1.19.0.6 pkgsrc-2015Q3-base:1.19 pkgsrc-2015Q2:1.19.0.4 pkgsrc-2015Q2-base:1.19 pkgsrc-2015Q1:1.19.0.2 pkgsrc-2015Q1-base:1.19 pkgsrc-2014Q4:1.18.0.8 pkgsrc-2014Q4-base:1.18 pkgsrc-2014Q3:1.18.0.6 pkgsrc-2014Q3-base:1.18 pkgsrc-2014Q2:1.18.0.4 pkgsrc-2014Q2-base:1.18 pkgsrc-2014Q1:1.18.0.2 pkgsrc-2014Q1-base:1.18 pkgsrc-2013Q4:1.17.0.6 pkgsrc-2013Q4-base:1.17 pkgsrc-2013Q3:1.17.0.4 pkgsrc-2013Q3-base:1.17 pkgsrc-2013Q2:1.17.0.2 pkgsrc-2013Q2-base:1.17 pkgsrc-2013Q1:1.16.0.2 pkgsrc-2013Q1-base:1.16 pkgsrc-2012Q4:1.14.0.2 pkgsrc-2012Q4-base:1.14 pkgsrc-2012Q3:1.13.0.2 pkgsrc-2012Q3-base:1.13 pkgsrc-2012Q2:1.11.0.2 pkgsrc-2012Q2-base:1.11 pkgsrc-2012Q1:1.9.0.2 pkgsrc-2012Q1-base:1.9 pkgsrc-2011Q4:1.8.0.4 pkgsrc-2011Q4-base:1.8 pkgsrc-2011Q3:1.8.0.2 pkgsrc-2011Q3-base:1.8 pkgsrc-2011Q2:1.7.0.2 pkgsrc-2011Q2-base:1.7 pkgsrc-2011Q1:1.6.0.4 pkgsrc-2011Q1-base:1.6 pkgsrc-2010Q4:1.6.0.2 pkgsrc-2010Q4-base:1.6 pkgsrc-2010Q3:1.5.0.2 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.4.0.10 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.8 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.6 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.4 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.4.0.2 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.2.0.6 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.4 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.2 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.1.1.1.0.6 cube-native-xorg-base:1.1.1.1 pkgsrc-2008Q2:1.1.1.1.0.4 pkgsrc-2008Q2-base:1.1.1.1 cwrapper:1.1.1.1.0.2 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.37 date 2023.07.30.04.03.31; author taca; state Exp; branches; next 1.36; commitid Z5CbVOvZcqSrmMyE; 1.36 date 2023.06.11.14.28.04; author taca; state Exp; branches; next 1.35; commitid XfRDgdXxiyfmoxsE; 1.35 date 2022.11.29.13.04.17; author taca; state Exp; branches; next 1.34; commitid znsnGDCQ9DteaB3E; 1.34 date 2022.10.09.07.20.04; author taca; state Exp; branches; next 1.33; commitid eajPXcGOJNZMT0XD; 1.33 date 2022.08.11.14.03.25; author taca; state Exp; branches; next 1.32; commitid ddxRcmzPUfIJ1tPD; 1.32 date 2021.10.26.10.19.38; author nia; state Exp; branches; next 1.31; commitid XMBRkrafc79x2jeD; 1.31 date 2021.10.07.13.44.14; author nia; state Exp; branches; next 1.30; commitid TK9Y8OXA04EYMSbD; 1.30 date 2021.08.22.13.48.10; author taca; state Exp; branches; next 1.29; commitid CMulTAjeDfDYjY5D; 1.29 date 2021.01.10.15.15.39; author taca; state Exp; branches; next 1.28; commitid BCEJzIswS9Xp0cDC; 1.28 date 2020.01.16.15.37.57; author taca; state Exp; branches; next 1.27; commitid AoIUUPDi8WglHVSB; 1.27 date 2019.10.30.15.10.32; author taca; state Exp; branches; next 1.26; commitid 5lquHaqP3fnu3UIB; 1.26 date 2019.01.20.13.51.15; author taca; state Exp; branches; next 1.25; commitid 5QOc9MegN8qhIw8B; 1.25 date 2018.09.23.14.52.02; author taca; state Exp; branches; next 1.24; commitid SEr74LArhh7jSeTA; 1.24 date 2018.05.06.01.56.35; author taca; state Exp; branches; next 1.23; commitid GON2Yirprmdc5bBA; 1.23 date 2018.03.23.13.57.53; author taca; state Exp; branches; next 1.22; commitid YoqXMJ48mnLruAvA; 1.22 date 2017.08.31.15.18.09; author taca; state Exp; branches; next 1.21; commitid l3JQOO0G2oUgun5A; 1.21 date 2016.10.20.14.40.39; author taca; state Exp; branches; next 1.20; commitid ApzeXIJ2VKonpTqz; 1.20 date 2015.11.03.03.29.25; author agc; state Exp; branches; next 1.19; commitid XagoUgdES8g2ZAHy; 1.19 date 2015.02.01.14.50.43; author taca; state Exp; branches; next 1.18; commitid bAlCHch4dz5oCj8y; 1.18 date 2014.03.14.16.11.22; author taca; state Exp; branches; next 1.17; commitid J16otO86TxMMtGsx; 1.17 date 2013.06.16.16.17.41; author taca; state Exp; branches; next 1.16; commitid iGRScgMKCMYYdRTw; 1.16 date 2013.03.11.07.37.10; author taca; state Exp; branches; next 1.15; 1.15 date 2013.02.11.02.54.19; author taca; state Exp; branches; next 1.14; 1.14 date 2012.12.16.16.28.07; author taca; state Exp; branches; next 1.13; 1.13 date 2012.09.15.12.28.00; author taca; state Exp; branches; next 1.12; 1.12 date 2012.09.03.15.41.21; author taca; state Exp; branches; next 1.11; 1.11 date 2012.06.02.00.40.05; author taca; state Exp; branches; next 1.10; 1.10 date 2012.04.28.15.55.03; author taca; state Exp; branches; next 1.9; 1.9 date 2012.03.17.14.39.20; author taca; state Exp; branches; next 1.8; 1.8 date 2011.09.12.11.50.51; author taca; state Exp; branches; next 1.7; 1.7 date 2011.06.18.01.47.54; author taca; state Exp; branches; next 1.6; 1.6 date 2010.12.04.04.01.54; author taca; state Exp; branches; next 1.5; 1.5 date 2010.08.03.02.56.32; author obache; state Exp; branches; next 1.4; 1.4 date 2009.06.12.13.24.27; author taca; state Exp; branches; next 1.3; 1.3 date 2009.06.12.11.48.40; author taca; state Exp; branches; next 1.2; 1.2 date 2008.09.15.08.49.50; author taca; state Exp; branches; next 1.1; 1.1 date 2008.04.07.00.32.28; author seb; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.04.07.00.32.28; author seb; state Exp; branches; next ; desc @@ 1.37 log @devel/ruby-mocha: update to 2.1.0 2.1.0 (2023-07-27) External changes * Fix compatibility with Minitest (#614) - thanks to @@kyrofa & @@manewitz for reporting and to @@zenspider for his input Internal changes * Update URLs for links to Ruby & MIT licenses (d6470af4) @ text @$NetBSD: distinfo,v 1.36 2023/06/11 14:28:04 taca Exp $ BLAKE2s (mocha-2.1.0.gem) = cc6c189af8e7654bc2b4a2b47d0938dfbd35812c609b819cfaa9035368e0c472 SHA512 (mocha-2.1.0.gem) = e081ddc69cbe7a84bd4a16d4e9046cc4a0676446c5dc4e1020fa7c272693b2f80b811aa4e78956c35c6de54cd93fa36b2b53c062473ec6e1d37a263b7de19480 Size (mocha-2.1.0.gem) = 65536 bytes @ 1.36 log @devel/ruby-mocha: update to 2.0.4 2.0.3 (2023-06-10) External changes * Fix BacktraceFilter to handle special characters (e242033f, #592) - thanks to @@casperisfine Internal changes * Add Ruby v3.1 to the CircleCI build (3e460489) * DRY up regexp_matches test (ae9fed4a) * Fix regexp_matches tests in Ruby v3.2 (26b106a5, #590) * Use Ruby 1.9 hash syntax (8bc0ad2f, #598, #537) - thanks to @@herwinw * Simplify storage of MOCHA_OPTIONS (b70507a1, #600) - thanks to @@herwinw * Pin JRuby to v9.3.9.0 in CircleCI builds (b8e6d064, #591) * Rubocop: enable Style/FormatStringToken cop (089a688e, #603) - thanks to @@herwinw * Remove Ruby version check from RespondsLikeTest (21583129) * Add Ruby v3.2 to CircleCI build (f7e17636, #601) * Use Ruby v2.6 vs v2.2 to run lint CI job (af40b7db) * Pin yard version to v0.9.28 to avoid ArgumentError (12f1eef7) * Revert "Pin JRuby to v9.3.9.0 in CircleCI builds" (4f5bb2f0, #591) * Remove invalid CircleCI token from badge URL (7078e76a) * Revert "Pin yard version to v0.9.28 to avoid ArgumentError" (7c6c10c5, #609) * Remove Google Analytics tracking code (2279c49d, #612) * Update MIT-LICENSE.md (48162b4e) * Update COPYING.md (f3152376) 2.0.4 (2023-06-10) Internal changes * Update README.md @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.35 2022/11/29 13:04:17 taca Exp $ d3 3 a5 3 BLAKE2s (mocha-2.0.4.gem) = e6180899ea377eeaec324e433bcb1dbdc24dcfbbee404fc19ee6accb55e7c2d8 SHA512 (mocha-2.0.4.gem) = 93b321ff8159a3688004e850e44c68ecb438b9786dabece94e79df521ba7fc56d35f261b3b2adb1d99ee88a7d3a3c695a99147cfe3ebd99a6ec851499bb828d4 Size (mocha-2.0.4.gem) = 65536 bytes @ 1.35 log @devel/ruby-mocha: update to 2.0.2 2.0.0 (2022-11-01) External changes * Remove support for Ruby v1.9 - thanks to @@wasabigeek (#552) * Support strict keyword argument matching - see docs for Expectation#with & Configuration#strict_keyword_argument_matching= - thanks to @@wasabigeek (#446,#535,#544,#562) * Deprecate Hash args that don't strictly match (#563,981c31be) * Drop support for older versions of test-unit - gem versions of test-unit earlier than v2.5.1 and versions of test-unit from the Ruby v1.8 standard library are no longer supported (#540,969f4845) * Drop support for older versions of minitest - versions of minitest earlier than v3.3.0 are no longer supported (#541,ca69dc9e) * Remove deprecated mocha/setup.rb mechanism (642a0ff4) * Add missing docs for API#stub parameter (257b4cb4) * Remove optional reinstatement of v1.9 behaviour (#436,#438,#569,1473ee25) * Remove deprecated methods in Configuration (#421,e7ff7528) * Fail fast when mock receives invocations in another test (#440,#442,cb054d59) * Improve docs re using matchers in Expectation#with (da7237cd) * Expand Expectation#with docs re keyword arguments (fed6808d) * Improve docs for strict_keyword_argument_matching (8d8f881d) * Remove deprecated Rails plugin init.rb file (1c617175) * Improve strict keyword argument matching deprecation warning by including the source location of the stub definition (77c0d4cc) * Add README section re semantic versioning (00758246) Internal changes * Separate linting from tests in terms of Rake tasks & CircleCI jobs - thanks to @@wasabigeek (#556) * Remove tests specific to Ruby v1.8 behaviour (46fca7ac, 3b369e99) * Multi-line rubocop disable in Mock#method_missing (af2194c4) * Remove unused arg for HashMethods#mocha_inspect (4f59e27f) * Improve test runner assertions - failure vs error (eec7200a) * Improve test coverage of PositionalOrKeywordHash (c294fe70) * More consistent Test::Unit & Minitest integration (27dd3817) * Remove redundant require statements (d82218a8,fa17b114) * Add missing require statement (73493761) * Disable Style/Semicolon cop globally (8cd0b705) 2.0.1 (2022-11-03) External changes * Fix LoadError when using v2.0.0 with Ruby < v2.7 by moving declaration of runtime dependency on ruby2_keywords gem from Gemfile to mocha.gemspec - thanks to @@mishina2228 for reporting (#581, #582, cdeb0356) 2.0.2 (2022-11-07) External changes * Fix regression in Mock#responds_like behaviour - thanks to @@adrianna-chang-shopify for reporting (#580,#583,ba4d619e) @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.34 2022/10/09 07:20:04 taca Exp $ d3 3 a5 3 BLAKE2s (mocha-2.0.2.gem) = 0335cdeb94ef15de2ba9d79c854d5cfc6a00b60fe8a210f18cab5812442242bc SHA512 (mocha-2.0.2.gem) = d701f77ad839c68e4bac6760a58d35e92c78c5fe1c3cacce819037bcf57296085b0e681d1c4b9eabcbc1facc1c7530bead5ddbb1d80aacebe89854c3229eb24c Size (mocha-2.0.2.gem) = 65536 bytes @ 1.34 log @devel/ruby-mocha: update to 1.15.0 1.15.0 (2022-09-21) External changes * Fix examples using mock constructor with block (1cc17667) * Add another example for API#sequence (b7a7d233, #59) * Remove support for Ruby v1.8 (ddb5d672) * Deprecate support for Ruby versions earlier than v2.0 - thanks to @@wasabigeek (#553, #555) Internal changes * Update instructions for obtaining Rubygems API key (ed9c040a) * Consistent definitions for respond_to? methods (#533) * Run test tasks before release tasks (92a1bc6e, #447) * Fix test:performance Rake task (#538, #539) * Tidying following removal of support for Ruby v1.8 - thanks to @@nitishr (#542) * Remove ParametersMatcher from Invocation#call_description - thanks to @@wasabigeek (#543) * Remove unnecessary splatting in Invocation - thanks to @@wasabigeek (#549) * Extract handle_method_call from method_missing - thanks to @@wasabigeek (#550) @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.33 2022/08/11 14:03:25 taca Exp $ d3 3 a5 3 BLAKE2s (mocha-1.15.0.gem) = dd5e76f05f448a68c68071f6ec55e164aeab7d7e928347788e4be4be913204d4 SHA512 (mocha-1.15.0.gem) = f381d54a782961777d78fb836661077017e0aeaefa56b8a6e4591765fd95417d225c188cf558e960bfe962b0947ec7cab60de57dfb319c9abc74674e54d9bc2d Size (mocha-1.15.0.gem) = 68096 bytes @ 1.33 log @devel/ruby-mocha: update to 1.14.0 pkgsrc change: update HOMEPAGE. 1.14.0 External changes * Mock#expects,#stubs should return last expectation - thanks to @@vlad-pisanov for #524 (b6b637db) Internal changes * Avoid breaking change in psych v4 in ruby v3.1 (08b9f4ca) * Remove broken Dependabot badge from README (d446657a) * Add Ruby 3.0 to the CI matrix - thanks to @@mishina2228 for #526 (65bc626e) * Move development dependencies from gemspec to Gemfile - thanks to @@mishina2228 for #527 (dd127f7b) @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.32 2021/10/26 10:19:38 nia Exp $ d3 3 a5 3 BLAKE2s (mocha-1.14.0.gem) = 7acc8348b94acfc5262c32ecc7ea52ec4ddb3c9514e115064a638cb0094cc890 SHA512 (mocha-1.14.0.gem) = b6c384ebb847d9e3a8be27a9b4fe615baf4eee5f4b6cc7f8c5a1a398db8d5e866a9f69d229731eefe6293f33736ee0d7b6c9354ecb63497ff7948ec466c3e9b4 Size (mocha-1.14.0.gem) = 68096 bytes @ 1.32 log @archivers: Replace RMD160 checksums with BLAKE2s checksums All checksums have been double-checked against existing RMD160 and SHA512 hashes Could not be committed due to merge conflict: devel/py-traitlets/distinfo The following distfiles were unfetchable (note: some may be only fetched conditionally): ./devel/pvs/distinfo pvs-3.2-solaris.tgz ./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.31 2021/10/07 13:44:14 nia Exp $ d3 3 a5 3 BLAKE2s (mocha-1.13.0.gem) = 95d99765fbb11273931f47a89ac354613cb0d6ea71f747ebc18f9e74fd05a87a SHA512 (mocha-1.13.0.gem) = 9fade23a03a6e2fe3eba82fc44f55c4c36c796e573e9549c3c41a7a92fc479a8eeb61d8e3ea0d6fc3096e92855be19afc0daae7d81181f08f8de6b051e9cbcef Size (mocha-1.13.0.gem) = 68096 bytes @ 1.31 log @devel: Remove SHA1 hashes for distfiles @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.30 2021/08/22 13:48:10 taca Exp $ d3 1 a3 1 RMD160 (mocha-1.13.0.gem) = 9df3d24830a3fdb34993120f740a511fe0acc369 @ 1.30 log @devel/ruby-metasm: update to 1.0.5 1.13.0 (2021-06-25) External changes * Add ParameterMatchers#has_keys - thanks to @@cstyles for #512 (18d8104) * Fix misleading exception message in ParameterMatchers#has_entry - thanks to @@cstyles for #513 (9c4ef13) * Only add dependency on rubocop if we're actually going to use it (f2f879f) * Fix rake dependency constraints for older Ruby versions (7ce5f29) Internal changes * Check documentation can be generated as part of CircleCI build (b30d9a9) * Add --fail-on-warning option to yard rake task (53a6ee3) * Add a weekly scheduled build to the CircleCI build (fd2a4c6) * Add Ruby v1.8 to the CircleCI build matrix (818ca03) * Add API token to fix CircleCI badge in README (607c5aa) * Provide wrapped option for #mocha_inspect on hashes & arrays (d8f44bc) * Use CircleCI instead of TravisCI for automated builds (c98c6ec) * Switch to newer default Travis CI build env (c78f75c) * Use latest Ruby versions in Travis CI builds (9e0043a) * Use latest JRuby v9.2.18 in Travis CI builds (8c99a1b) * Use consistent JRuby versions in Travis CI builds (0f849aa) * Use more recent version of JRuby in Travis CI build matrix (58653db) @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.29 2021/01/10 15:15:39 taca Exp $ a2 1 SHA1 (mocha-1.13.0.gem) = 6f5af08b835f253774e049eccd102d5a5ea5849e @ 1.29 log @devel/ruby-mocha: update to 1.12.0 1.12.0 (2020-12-23) External changes * Various improvements to README inspired by #207 and #390 - thanks to @@nitishr for his work on #390 (fed0eee6) * Improve documentation related to StateMachine classes - thanks to @@nitishr (#425 & #427) * Fix regression in cardinality introduced in v1.10.0 (59454a8) and reported in #473 - thanks to @@srvance for reporting and @@nitishr for fixing (#474) * Fix documentation for Mocha::Expectation#when - thanks to @@olleolleolle (b4f59daa & #477) * Remove Mocha::Mock#respond_to? from documentation - thanks to @@nitishr (#480) * Improvements to documentation for Expectation#yields & #multiple_yields - thanks to @@andyw8 for reporting in #495 (1b6571c) * Remove documentation & tests from gem to reduce its size by over 50% - thanks to @@gabetax (#500) * Update documentation to point to travis-ci.com instead of travis-ci.org Internal changes * Refactor StateMachine-related classes - thanks to @@nitishr (#425 & #427) * Remove redundant test - thanks to @@nitishr (8e4f1a7c) * Add Ruby 2.7 to Travis CI matrix - thanks to @@bastelfreak (fc5ea2f2) * Simplify Mockery - thanks to @@nitishr (#449) * Update Travis CI badge to point to main vs master branch (bd8028f8) * Generate docs using newer version of yard (v0.9.25) (c619afac) * Manually upgrade jquery in docs from v1.7.1 -> v1.9.0 to fix CVE-2017-16011 (211098a5, dd5eeedb & 1b76e4d5; also see #492) * Remove reference to non-existent jquery source map to fix error in Chrome developer tools (20156555) * Temporarily ignore Ruby v1.8.7 build failures (e5b9feef) @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.28 2020/01/16 15:37:57 taca Exp $ d3 4 a6 4 SHA1 (mocha-1.12.0.gem) = a2f662a9265b938093ad839b26826364f3278033 RMD160 (mocha-1.12.0.gem) = 8e55cbae7b20118dca53d1ee1052f9b55ea09a4b SHA512 (mocha-1.12.0.gem) = d572907a9e1cc431e1e2882ee78d7d273d23e16c3461bed51833e7bfb9b0ef8b225c4bc0d5559f390fa6ea190cb3e57d58de9178d205155574253ba6f5b40931 Size (mocha-1.12.0.gem) = 69120 bytes @ 1.28 log @devel/ruby-mocha: update to 1.11.2 Update ruby-mocha to 1.11.2. ## 1.11.2 ### External changes * Fix regression introduced in v1.10.0 that meant `Object#inspect` was called unnecessarily (368abd98) * Warn when mock object receives invocations in another test - thanks to @@nitishr (#442) * Avoid rubocop comments appearing in YARD-generated docs (d8019eed) ### Internal changes * Replace `StubbedMethod#original_method` & `#original_visibility` attribute reader methods with instance variables - thanks to @@nitishr (d917f332) * Set up `MochaExampleTest` & `StubbaExampleTest` as acceptance tests - thanks to @@nitishr (4881cc58) * Delete unused `PrettyParameters` class - thanks to @@nitishr (314ea922) ## 1.11.1 ### External changes * The `reinstate_undocumented_behaviour_from_v1_9` configuration option is now enabled by default to give people a chance to see and fix the relevant deprecation warnings before the behaviour is removed in a future release (b91b1c9e) ## 1.11.0 ### External changes * Add `Expectation#with_block_given` & `Expectation#with_no_block_given` (#441). * Allows non-deprecated solution for #382. Thanks to @@yemartin for reporting and to @@techbelly & @@nitishr for feedback. * Fix issue with non-Array arguments passed to `Expectation#multiple_yields` (#444). * The undocumented behaviour is now properly supported and documented. ### Internal changes * Move static YARD options from Rake task to `.yardopts` file - thanks to @@nitishr (#429) * Simplify implementation of yielding functionality - thanks to @@nitishr (#439) * Add missing require statement to `acceptance_test_helper.rb` (1070fc02) * Add some baseline acceptance tests for yielding behaviour (c2cac911) * Display a sponsor button on GitHub repo page (9fc5911b) * Use new Deprecation.warning behaviour in `Invocation#call` (932d1166) ## 1.10.2 * Optionally reinstate undocumented behaviour from v1.9. This introduces a new configuration option (`reinstate_undocumented_behaviour_from_v1_9`) to reinstate a couple of bits of undocumented behaviour from v1.9 which were changed in v1.10 without any prior deprecation warning (#438): * The behaviour of `API#mock`, `API#stub` and `API#stub_everything` when called with a symbol as the first argument. * The behaviour of `Expectation#yields` and `Expectation#multiple_yields` when the stubbed method is called without a block. ## 1.10.1 * Ensure ObjectMethods & ClassMethods included when API extended (43778756) * Fix regression in `any_instance` stubbing of methods on object which has an implementation of `#respond_to?` that depends on the object's internal state - thanks to @@rafaelfranca for reporting & @@nitishr for fixing (#432, #434, 469d4b17) ## 1.10.0 * Improve deprecation warning when requiring 'mocha/setup' (388f44d7) * Add documentation for Cucumber integration (13ab797b) * Add documentation about an undocumented feature of `API#mock`, `API#stub` & `API#stub_everything` being changed (7ed2e4e7, d30c1717) ## 1.10.0.beta.1 * Hide `ClassMethods#method_visibility` & `#method_exists?` methods to avoid clash with Rails (#428) ## 1.10.0.alpha ### External changes * Remove dependency on metaclass gem (#49, #365) * Accept symbol (as well as a string) as mock/stub name - thanks to @@nitishr (#347, #353, #377) * More realistic examples in documentation for `Expectation#yields` and `#multiple_yields` - thanks to @@nitishr (#352, #383) * Improve documentation for `Mock#responds_like` & `#responds_like_instance_of` - thanks to @@nitishr (#337, #384) * Make `Expectation#yields` & `Expectation#multiple_yields` fail when the caller of the stubbed method does not provide a block. This is a change to an undocumented aspect of the public API's behaviour. If this causes your tests to fail, then fix it by removing the unnecessary call to `Expectation#yields` or `Expectation#multiple_yields` - thanks to @@nitishr (#382) * Document `MOCHA_OPTIONS` in README - thanks to @@nitishr (#311, #386) * Add documentation to explain how Mocha is intended to be used - thanks to @@nitishr (#330, #385) * Deprecation warning if integration using 'mocha/test_unit' or 'mocha/minitest' fails - thanks to @@nitishr (#229, #389, c6032d0b) * Require at least one specified sequence for `Expectation#in_sequence` - thanks to @@nitishr (#79, #396, 9020248a) * Make signatures of `Mock#unstub` & `ObjectMethods#unstub` consistent - thanks to @@nitishr (#397, f04d437) * Deprecate requiring 'mocha/setup' (36adf880) * Optionally display matching invocations alongside expectations - thanks to @@nitishr (#178, #394, 00f0540, #410) * Put deprecations into effect (#400, #418): * Remove deprecated 'mocha_standalone.rb' & 'mocha/standalone.rb' * Fail fast if no test library loaded * Removed optional block for `Mocha::API#mock`, `#stub` & `#stub_everything` * Remove deprecated `ParameterMatchers#has_equivalent_query_string` method * Remove deprecated 'mocha/mini_test.rb' * Fix typo in docs for `Mocha::Configuration.prevent` (266ce71c) * New-style configuration (see documentation for `Mocha::Configuration`) (#407, #421) * Deprecate support for Ruby versions earlier than v1.9 (#325, c5f8496d) * Deprecate support for versions of test-unit & minitest which need monkey-patching (a34e1a88) * Deprecate old-style Rails plugin (#403, 2df77134) * Documentation fixes & improvements which also fix YARD warnings (472d5416, a2c0d64a) ### Internal changes * Pin minitest to v5.11.3 for Ruby v1.8.7 to fix build; minitest no longer supports Ruby v1.8.7 (4a0a580) * Upgrade JRuby to v9.2.8.0 in Travis CI builds (aa29b3f) * Only run rubocop for MRI Ruby versions & non-integration test builds (8f1c6af) * Reduce duplication in any instance method class - thanks to @@nitishr (#378) * Simplify `AnyInstanceMethod`, `ClassMethod`, `InstanceMethod`, `ModuleMethod` class hierarchy - thanks to @@nitishr (#381) * Simplify `ClassMethods#method_exists?` & `ObjectMethods#method_exists?` making them consistent - thanks to @@nitishr (#270, #362, #370) * Don't override definition of `singleton_class` in `ClassMethods` - thanks to @@nitishr (#391, #392) * Do not include 'method_definer' methods into all objects (#268, #402) * Distinguish different `ObjectMethods` modules (#268, #404) * Pass invocation to expectation list methods - thanks to @@nitishr (#408, #409, #411) * Consistently use `assert_raises` - thanks to @@nitishr (#405, #412, a66b7bed) * Update Ruby & JRuby versions in Travis CI config (18cb1a93, eb061c53) * Rubocop improvements (aa16ea67...6f4db70b, 2a1240e6...e95716ae) * Fix inconsistency in CardinalityTest (aa10e0a8) * Fix test failures on Mac OSX Catalina - thanks to @@nitishr (#413, #417, #419, 8a0f2535) * Remove default argument in `Expectation#invoke` - thanks to @@nitishr (#414, #420) @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.27 2019/10/30 15:10:32 taca Exp $ d3 4 a6 4 SHA1 (mocha-1.11.2.gem) = 5080512f6d83c32c45a2d0d09f5ebb3c0fc9aacc RMD160 (mocha-1.11.2.gem) = d2dfb31db449047ee1a4682a8c4514b08d689448 SHA512 (mocha-1.11.2.gem) = 8408d7b4c4d979caebabb75b1b870e6473fb0a5abe6055bdf7b4c4679b92c963138ec9a2947e60b9741a2cb50ea7ddfe949544dc4b0bdac22242b2a7eb5fd54d Size (mocha-1.11.2.gem) = 242688 bytes @ 1.27 log @devel/ruby-mocha: update to 1.9.0 Update ruby-mocha to 1.9.0. ## 1.9.0 * Add TruffleRuby to Travis CI build matrix - thanks to @@deepj (#354) * Explicitly set Travis CI OS to Ubuntu Trusty 14.04 (ded1fa45) * Expand explanation of thread-safety concerns - thanks to @@techbelly (#357) * Refactor class method and any instance method - thanks to @@chrisroos (#358) * Rely on default bundler version in Travis CI builds (3352e9c5) * Fix local build-matrix script (11abe231) * No need to install latest bundler in build-matrix script (8247a894) @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.26 2019/01/20 13:51:15 taca Exp $ d3 4 a6 4 SHA1 (mocha-1.9.0.gem) = 3f14d2142b1693ad9e38e4672aaffc7c29f622c3 RMD160 (mocha-1.9.0.gem) = 71336a221fe1a16933f7e8c523e7ce80a51bec61 SHA512 (mocha-1.9.0.gem) = 76aa6c1a59d98cf2e592b94785f102fae7d46923cd30494df944a322a6286fb854867ccb32c396f522008b8a0e368ff115693ec6dc63d7cbe84fa26a3a42d9e6 Size (mocha-1.9.0.gem) = 224768 bytes @ 1.26 log @devel/ruby-mocha: update to 1.8.0 ## 1.8.0 * Constrain rubocop version to avoid breaking Travis CI builds (05e507f5) * Avoid calling Kernel#format from ObjectMethods#mocha_inspect - thanks to @@hoffmanilya (#345) * Fix build matrix script (#346) * Avoid deprecation warning in gemspec (4976e0bc) * Removed link to documentation translation (ef428ea2) * Don't use the new bundler v2 in builds (683ded9b) * Moved documentation from https://gofreerange.com/mocha/docs to https://mocha.jamesmead.org/ [683ded...a17fde](https://github.com/freerange/mocha/compare/683ded...a17fde) @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.25 2018/09/23 14:52:02 taca Exp $ d3 4 a6 4 SHA1 (mocha-1.8.0.gem) = ca935501ed99aa4239003f038d2479e78d93f190 RMD160 (mocha-1.8.0.gem) = cc1a4e1414d31e1d533203715f96fe756b47bb91 SHA512 (mocha-1.8.0.gem) = b0abd6234f34dfd92d44019001e97914dff80ece5fbe2b53ccc91192f99f06a79f9c96cdb136b2a389a1a1b7038076fce688d8d8ee8645538d3c58f73e345fe4 Size (mocha-1.8.0.gem) = 223744 bytes @ 1.25 log @devel/ruby-mocha: update to 1.7.0 ## 1.7.0 * Update Ruby & JRuby versions in Travis CI config (9bf55631 & 3883af7e) * Simplify gemspec (63744f86) * Add rubocop and fix most cop violations (#341) * Use Kernel#warn for deprecations - thanks to @@etiennebarrie (#333, 196970a) ## 1.6.0 * Fix subtle bug in setting correct visibility of stubbed module methods on `Kernel` or `Object` - thanks to @@chrisroos (#295) * Avoid mocks for partial mocking leaking into subsequent tests - thanks to @@skliew for reporting (#331) * Remove OpenCollective badge, backers & sponsors (a283a079) * Change gem version badge to SVG format and add SemVer stability badge - thanks to @@greysteil (#335) * Improve documentation for Configuration (#236) @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.24 2018/05/06 01:56:35 taca Exp $ d3 4 a6 4 SHA1 (mocha-1.7.0.gem) = 026801e150be8df2ce7e7312eaa7638dcb73a651 RMD160 (mocha-1.7.0.gem) = 7685be20b63159dc3e1c1ee2cc7a409f5e8489f7 SHA512 (mocha-1.7.0.gem) = b3fd656523e6ec1eb81e941cd43fe402254b6b15a00cdb459a900c94df02bd20f7ca8aafc796e418c6ba3e3b71c5bdc74a97e380f1c106e2831e78d9aaa7887e Size (mocha-1.7.0.gem) = 96768 bytes @ 1.24 log @devel/ruby-mocha: update to 1.5.0 ## 1.5.0 * Prevent use of Mocha outside the context of a test/example - thanks to @@andyw8 & @@lzap (#327) @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.23 2018/03/23 13:57:53 taca Exp $ d3 4 a6 4 SHA1 (mocha-1.5.0.gem) = 91e5df3e6a4a78a573bb75a6802f788b803ffe08 RMD160 (mocha-1.5.0.gem) = 49055342394e2f3e4dc02f5f27395b1f441820a7 SHA512 (mocha-1.5.0.gem) = dd4e37f2d3e65fbaafb9bad345419a042682c5db33ee1787b65db1d0889418463d32c87deeddd2b953e0024ea55a5a36b816712e94b4ca740a6163c6ee51dc85 Size (mocha-1.5.0.gem) = 93184 bytes @ 1.23 log @devel/ruby-mocha: update to 1.4.0 1.4.0 (2018/03/20) * Fix deprecation warning for assert_nil in ClassMethodTest (#308 & #309) * Display file and line number in deprecation warning - thanks to @@chrisarcand (#310, #312 & #313) * Rename mocha/mini_test.rb to mocha/minitest.rb - thanks to @@grosser (#320 & #322) * Fix warning when delegating to mock in Ruby 2.4 - thanks to @@tjvc (#321 & #323) * Updates to Travis CI configuration (73af600..9732726 & 0426e5e) @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.22 2017/08/31 15:18:09 taca Exp $ d3 4 a6 4 SHA1 (mocha-1.4.0.gem) = c60850e2b719337054789afb7c72dbde1246f5b2 RMD160 (mocha-1.4.0.gem) = 2d24e9cac2d8bfacd847a062533d7bb6539911c9 SHA512 (mocha-1.4.0.gem) = 54953d815cddf52deccdddcebc9a9880fa2f14cab9f4ee1e164bfa3afe095d56b409312149341d1bf84fb336ed23512e7acce371135f8a2a1bb16f1de7acff1d Size (mocha-1.4.0.gem) = 92672 bytes @ 1.22 log @Update ruby-mocha to 1.3.0. ## 1.3.0 * Ensure all tests run individually - thanks to @@chrisroos (#267) * Update Travis CI build status badge to show master branch status (#264) * Correct RSpec section of the README - thanks to @@myronmarston (0cc039c8) * Fix pretty printing of quotes in `String#mocha_inspect` (#215 & #223) * Add release instructions to README - thanks to @@chrisroos (70a5febd & 3c664df7) * Require at least Ruby v1.8.7 in gemspec - thanks to @@knappe (3e20be8e) * Remove redundant InstanceMethod#method_exists? - thanks to @@chrisroos (8f58eddf) * Reduce risk of hitting bug 12832 in Ruby v2.3 - thanks to @@chrisroos (#277 & eca7560c) * Fix JRuby build - thanks to @@headius (jruby/jruby#4250) & @@chrisroos (#274) * Add latest stable version of JRuby to Travis CI build matrix (#288) * Fix Ruby v1.8.7 builds on Travis CI (928b5a40 & 460dce5b) * Deprecate passing block to mock object constructor (#290) * Add a known issue to README for Ruby bug 12876 (#276) * Add Ruby 2.4 and ruby-head to Travis CI build matrix - thanks to @@junaruga (#297) * Fix `Mocha::ParameterMatchers#includes` for `Array` values - thanks to @@timcraft (#302) * Use faster container-based virtual environments for Travis CI builds (#305) * Rename `Mocha::ParameterMatchers::QueryStringMatches` to `QueryString` (#306) * Handle blank parameter value for query string matcher - thanks to @@weynsee (#303 & #304) * Rename `Mocha::ParameterMatchers::QueryString` -> `EquivalentUri` (#307) * Use `do ... end` instead of `{ ... }` in acceptance tests - thanks to @@chrisroos (#294) @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.21 2016/10/20 14:40:39 taca Exp $ d3 4 a6 4 SHA1 (mocha-1.3.0.gem) = 9a87ac94de925c4d873a7a5bf24b93737462a420 RMD160 (mocha-1.3.0.gem) = 9656cbb8aa0eda7c3fade83b5ba5781bec3d28f5 SHA512 (mocha-1.3.0.gem) = a24de9129da65f6b37f06ad888fdb80ae987f51594980991a6ac3ffd23e9dafeedd7a2e758835f33f4de59e07b7c39449e3a49228159710bd87a3de7d3df6a3c Size (mocha-1.3.0.gem) = 92160 bytes @ 1.21 log @Update ruby-mocha to 1.2.1. ## 1.2.1 * Fixed #272. Workaround Ruby bug 12832 which caused interpreter to hang. See https://bugs.ruby-lang.org/issues/12832. Thanks to @@chrisroos & @@petems (6f1c8b9b, #273). ## 1.2.0 * Always use prepended module to stub class & instance methods for Ruby v2+ - thanks to @@grosser & @@chrisroos (43d56671, #244) * Always use prepended module to stub AnyInstance methods in Ruby v2+ - thanks to @@chrisroos (#262) * Always set visibility of stub method to match stubbed method on included module - thanks to @@grosser & @@chrisroos (e87c03b0, #248) * Always set visibility to stub method to match stubbed method on superclass - thanks to @@chrisroos (38d902ad) * Allow stubbing of method to which any instance responds (#200) * Allow `includes` matcher to take matcher arguments - thanks to @@lazyatom (#217) * Avoid exception in older version of Rubygems - thanks to @@chrisroos (78d930a7) * Add licenses to gemspec as requested by @@coreyhaines (#201) * Fix typo in README - thanks to @@jaredbeck (6119460d) * Added section about using Mocha with RSpec & Rails to README (#221) * Fix documentation for Mocha::API#stub method - thanks to @@raeno (599b1dcd) * Added backers and sponsors from OpenCollective - thanks to @@piamancini (#253) * Fix typo in docs for equals - thanks to @@alexcoco (#254) * Add known issue for Ruby v1.8 to README - thanks to @@chrisroos (2c642096) @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.20 2015/11/03 03:29:25 agc Exp $ d3 4 a6 4 SHA1 (mocha-1.2.1.gem) = abbd8d08e590f82b539192f10426a298364b3c71 RMD160 (mocha-1.2.1.gem) = e0512d548bc0fcf41d0e80651e752018335b2e2e SHA512 (mocha-1.2.1.gem) = 318fc7275b7ef14b6839ce68beb4a6dcd2a06325bcc5e69d82bd6842dc39c78b8a09d6d06d36dbf0f43e59bbcf441be9a6b1d3037f0cbde25be9d04ae44b2aed Size (mocha-1.2.1.gem) = 90624 bytes @ 1.20 log @Add SHA512 digests for distfiles for devel category Issues found with existing distfiles: distfiles/eclipse-sourceBuild-srcIncluded-3.0.1.zip distfiles/fortran-utils-1.1.tar.gz distfiles/ivykis-0.39.tar.gz distfiles/enum-1.11.tar.gz distfiles/pvs-3.2-libraries.tgz distfiles/pvs-3.2-linux.tgz distfiles/pvs-3.2-solaris.tgz distfiles/pvs-3.2-system.tgz No changes made to these distinfo files. Otherwise, existing SHA1 digests verified and found to be the same on the machine holding the existing distfiles (morden). All existing SHA1 digests retained for now as an audit trail. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.19 2015/02/01 14:50:43 taca Exp $ d3 4 a6 4 SHA1 (mocha-1.1.0.gem) = 688b422198a9115993ec24cb3349248e520a709c RMD160 (mocha-1.1.0.gem) = 8ab48d756f89cbc1ca187dba2b33aa73bc2fd338 SHA512 (mocha-1.1.0.gem) = 5a07c8364ae649a6be821c4b61c349d79e1dbf1e574ed95b07848f5dae3a2860e2f2e06499fc15b8352ec2146f273cc40ee8e65e670214f0f0669b6eedf698bb Size (mocha-1.1.0.gem) = 87552 bytes @ 1.19 log @Update ruby-mocha to 1.1.0. # Release Notes ## 1.1.0 * Set visibility of any instance stub method. * Stub methods with a prepended method if there are other prepended methods. Thanks to @@mrsimo. * Improve docs for `Mock#responds_like` & `#responds_like_instance_of`. * Use GitHub convention for instructions on contributing to Mocha. * Fix typos in docs. Thanks to @@10io @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.18 2014/03/14 16:11:22 taca Exp $ d5 1 @ 1.18 log @Update ruby-mocha t 1.0.0. # Release Notes ## 1.0.0 ### External changes * Assume 'mocha' has been required when requiring 'mocha/setup'. * Provide shortcuts for integrating with specific test library i.e. `require 'mocha/test_unit'` or `require 'mocha/mini_test'` as alternatives to `require 'mocha/setup'`. * Do not automatically try to integrate with test libraries. Since the automatic test library integration functionality requires the test library to be loaded and this doesn't usually happen until *after* the bundle is loaded, it makes things simpler if we use `require 'mocha/setup'` to explicitly setup Mocha when we know the test library has been loaded. Fixes #146 & #155. * Consider stubs on superclasses if none exist on primary receiver. Largely based on changes suggested by @@ccutrer in #145. Note: this may break existing tests which rely on the old behaviour. Stubbing a superclass method and then invoking that method on a child class would previously cause an unexpected invocation error. By searching up through the inheritance hierarchy for each of the delegate mock objects, we can provide more intuitive behaviour. Instead of an unexpected invocation error, invoking the method on the child class will cause the stubbed method on the superclass to be used. * Avoid recursion when constructing unexpected invocation message. Fixes #168. * Add explanation of method dispatch. Heavily based on the relevant jMock v1 documentation. Fixes #172. * Make class_eval line number more accurate. This sets the line number as the line number of the `def` statement. Closes #169. * Allow nesting of `responds_with` parameter matcher. Closes #166. * Define `Mocha` module before it's referenced. The test helper defines a class `TestCase` within the `Mocha` module. When running the tests inside the bundle, the `Mocha` module happens to be defined at this point. However when running the tests outside the bundle, it is not defined and so an exception is raised: `uninitialized constant Mocha (NameError)`. Fixes #163. * Document lack of thread-safety. Fixes #154. * Document how to use the build-matrix script. Fixes #160. * Stubbing non-public method should use same visibility. This will probably break some existing tests that were somehow relying on the stubbed method being public while the original method was protected or private. Fixes #150. ### Internal changes * Use lastest Rubygems in Travis CI builds. * Run the standard test suite against Ruby 2.1.0 in the build matrix. * Run integration tests against Ruby 2.0.0 with latest Test::Unit gem in the build matrix. * Test::Unit is not available in Ruby v1.9.3 standard library, so remove it from the build matrix. * Force use of Test::Unit runner, etc in relevant integration tests. Prior to this, I don't think we were really testing the Mocha integration with Test::Unit much, because, although `TestUnitTest` was a subclass of `Test::Unit::TestCase`, the important test case instances are the temporary ones built by `TestRunner#run_as_test` et al. Prior to this change, these would only have used Test::Unit where MiniTest was not available *at all* i.e. only in early versions of Ruby and when the MiniTest gem was not loaded. * Reset environment variables between build matrix builds. * Only activate integration with relevant test library for each of the integration tests. * Include standard build combinations from Travis CI config i.e. builds using standard library versions of test libraries. * Fix `build-matrix.rb` script. Also use `.travis.yml` to decide what combinations to run. This means we can now simulate the Travis CI build locally and avoid duplication. Fixes #157. * Remove Ruby version map from build matrix script. I'm using the `rbenv-aliases` plugin to alias minor versions to the relevant patch version. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.17 2013/06/16 16:17:41 taca Exp $ d3 3 a5 3 SHA1 (mocha-1.0.0.gem) = c680c151394c61d2a1a1f7d9e1d1c8d190751d7a RMD160 (mocha-1.0.0.gem) = 7dbf1a025d3188b18532b7946c026bbebcb1c240 Size (mocha-1.0.0.gem) = 87040 bytes @ 1.17 log @Update ruby-mocha to 0.14.0. ## 0.14.0 * Official support for MiniTest v5. All tests now pass on the continuous integration build. ## 0.14.0.alpha * Add speculative support for Minitest v5. Due to incompatibilities it has not yet been possible to run the Mocha test suite against Minitest v5. However, @@zenspider (author of Minitest) provided the patch and he has tested it against Rails v4. Fixes #156. Thanks to @@zenspider. * Documentation updates. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.16 2013/03/11 07:37:10 taca Exp $ d3 3 a5 3 SHA1 (mocha-0.14.0.gem) = 0fe4d1b38844b4bd3e2ba8d138264ea7b3eaa0de RMD160 (mocha-0.14.0.gem) = 2357a8469b116715b2a3f235a6cdd85297d353b0 Size (mocha-0.14.0.gem) = 82944 bytes @ 1.16 log @Update ruby-mocha to to 0.13.3. # Release Notes ## 0.13.3 * Allow `Mocha::ParameterMatchers#includes` to accept multiple items. Thanks to @@simao. * Allow stubbing of *private* `Kernel` methods. Fixes #134. Thanks to @@camski for reporting. * Avoid a warning when `test/unit/version` is required by other libraries in the same project. Fixes #140. Thanks to @@tmiller. * Make auto-activation of Test::Unit integration more resilient. This change is specifically to cope with the nasty re-defining of classes that is done by the `minitest-spec-rails` gem. Fixes #143. Thanks to @@tubaxenor for reporting. * Safer restoration of stubbed method visibility. Fixes #141. Thanks to @@tmm1. * Ensure `Mockery` instance gets reset even if exception raised. Fixes #144. * Adapt Mocha acceptance tests to cope with changes in output from latest (v4.6.2) of MiniTest. * Updates to README about Rails compatibility. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.15 2013/02/11 02:54:19 taca Exp $ d3 3 a5 3 SHA1 (mocha-0.13.3.gem) = 4096a434f5c1519226e3e3908934d8e45097b7b9 RMD160 (mocha-0.13.3.gem) = dbf1d39557595ca36788350c94939addda98999c Size (mocha-0.13.3.gem) = 82432 bytes @ 1.15 log @Update ruby-mocha to 0.13.2. # Release Notes ## 0.13.2 * Stubbing of methods re-declared with different visibilty. Fixes #109. * Add `Mock#responds_like_instance_of`. Fixes #119. * Make `Expectation#inspect` less verbose and more useful. Fixes #122. * Make unit tests more robust to changes in environment. Fixes #121. * Update README in an attempt to head Rails-related issues off at the pass. * Add a Gem Badge to provide a link to Mocha on Rubygems. * Make documentation example consistent with other examples. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.14 2012/12/16 16:28:07 taca Exp $ d3 3 a5 3 SHA1 (mocha-0.13.2.gem) = da112555fcd51f61fded424de771ae111f13df03 RMD160 (mocha-0.13.2.gem) = c9f31a110c61f247754e3ff4a8082807b1c1a3cd Size (mocha-0.13.2.gem) = 81408 bytes @ 1.14 log @Update ruby-mocha to 0.13.1. ## 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). @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.13 2012/09/15 12:28:00 taca Exp $ d3 3 a5 3 SHA1 (mocha-0.13.1.gem) = b02818d6975d6d64a95094bb4c78e67d58f0485d RMD160 (mocha-0.13.1.gem) = 6d3fcdf62fe46ea7177755d8c7b47eeda678439c Size (mocha-0.13.1.gem) = 79872 bytes @ 1.13 log @Update ruby-mocha to 0.12.4. = 0.12.4 * Officially support minitest v3.4.0 & test-unit v2.5.2 (still monkey-patching). @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.12 2012/09/03 15:41:21 taca Exp $ d3 3 a5 3 SHA1 (mocha-0.12.4.gem) = 02a52753c30f0a1fe76504d96bc5a20633c63978 RMD160 (mocha-0.12.4.gem) = e810b5c143176b8364c8ca97b519f194bc765a94 Size (mocha-0.12.4.gem) = 76800 bytes @ 1.12 log @Update ruby-mocha to 0.12.3. = 0.12.3 * Revert rename of undocumented internal module since it turns out Rails/ActiveSupport is relying on its existence. = 0.12.2 * Officially support minitest v3.3.0 (still monkey-patching) = 0.12.1 * Deprecation warning (instead of fail fast) if neither Test::Unit nor MiniTest is loaded. Fixes #88. * Remove deprecated access to `Mocha::Standalone`. * Remove the deprecated file `stubba.rb`. * Officially support test-unit v2.5.1 (still monkey-patching). * Improve the API acceptance test. = 0.12.0 * Fail fast if neither Test::Unit nor MiniTest is loaded. Fixes #40. * Officially support MiniTest up to v3.2.0 (still monkey-patching). * Officially support test-unit v2.5.0 (still monkey-patching). * Do not monkey-patch Test::Unit or MiniTest unless we *know* it's ok. * Add acceptance tests to demonstrate using a block as a custom parameter matcher. * Update Travis CI build status image to use the new build under the freerange account. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.11 2012/06/02 00:40:05 taca Exp $ d3 3 a5 3 SHA1 (mocha-0.12.3.gem) = 6bb30dc20a076aa7914fcf9b00739679d69ca1f2 RMD160 (mocha-0.12.3.gem) = 22b83f0ad64163396650270c1a3b7aa41b0ce110 Size (mocha-0.12.3.gem) = 76800 bytes @ 1.11 log @Update ruby-mocha to 0.11.4. = 0.11.4 * Homepage has moved to http://gofreerange.com/mocha/docs. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.10 2012/04/28 15:55:03 taca Exp $ d3 3 a5 3 SHA1 (mocha-0.11.4.gem) = 9890bf985e62e92c7b2fdf61771f0f6f451a80e8 RMD160 (mocha-0.11.4.gem) = 9d316ce200f56483829d14f30f420364151e1add Size (mocha-0.11.4.gem) = 75776 bytes @ 1.10 log @Update ruby-mocha to 0.11.3. = 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 https://github.com/rails/rails/pull/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. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.9 2012/03/17 14:39:20 taca Exp $ d3 3 a5 3 SHA1 (mocha-0.11.3.gem) = bb2daa794aa488c8c51c8106247e5ccaeae61e02 RMD160 (mocha-0.11.3.gem) = 7f16324f26a39bf4890d6b957fe56d0324478538 Size (mocha-0.11.3.gem) = 178176 bytes @ 1.9 log @Update ruby-mocha to 0.10.5. = 0.10.5 (a5a64cf9755b21d4a30e446232654d1c0fc6f151) * Fix for issue #66 (hopefully without regressing on issue #63) - Mocha::Mock has Mocha::Mockery as a dependency. Stop trying to pretend otherwise. Thanks to @@kennyj for reporting. * Fix a bunch of warnings in Ruby 1.9. There are still the 6 test failures mentioned in issue #41 which I suspect are due to the introspection gem not being Ruby 1.9-compatible. * Add links to README for source code & issue tracker. * Fix for issue #67 - Make the travis-ci badge visible in the README. Thanks to Diego Plentz for pull request. * Fix for issue #70 - Rename Mock#expectations to Mock#__expectations__ to avoid conflicts. Thanks to Jeremy Stephens for pull request. = 0.10.4 () * Fix for issue #65 - expectations not being verified in subsequent tests * Fix for issue #63 - require Mocha::Mockery at Mocha::Mock class load time and not on invocation of Mock#method_missing. * Fix for issue #45 - raise ArgumentError if Mocha::ParameterMatchers#has_entry is given Hash with wrong number of entries. * Make global variable name more obscure to avoid clashes with other libraries. * Move travis-ci-related gemfiles into their own directory. = 0.10.3 (e7f88af8e7c3396bc85fe9f9cb9e5f5fef04bea2) * Fix for issue #57. Gem::Requirement#=~ was only added in rubygems v1.8.0, but Object#=~ means the result of various monkey-patching checks is always false/nil for earlier versions of rubygems. However, the method it aliases #satisfied_by? has existed since Gem::Dependency was extracted from Gem::Version in rubygems v0.9.4.4, so it's much safer to use that. Thanks to fguillen for reporting and helping with diagnosis. = 0.10.2 (e05d9a555f1cf97c5961900dab0d884e9753257b) * Merge pull request #53. Unstubbing a method should not remove expectations for other stubbed methods. Fixes #52. Thanks to saikat. = 0.10.1 (f631a4ba22c6ed4929c52b0520311a9a84034a20) * Merge pull request #51. Use Gem::Requirement & Gem::Version for version comparison. Fixes issue #50. Thanks to meineerde. * Fixed typo in rdoc for Mocha::ObjectMethods. * Improve README as suggested in issue #46. Explain that Mocha must be loaded after test libraries and how to achieve this using Bundler. * Merge pull request #43 - nobody expects the spanish inquisition! Thanks to cairo140. * Fix for issue #39 - improve documentation for Expectation#multiple_yields. * Fix for issue #38 where a subtle change in test-unit v2.3.0 had been missed - only visible in verbose mode. * Support for MiniTest up to v2.6.2 has been verified. * Add explicit development dependency on coderay for generating syntax-highlighted code examples. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.8 2011/09/12 11:50:51 taca Exp $ d3 3 a5 3 SHA1 (mocha-0.10.5.gem) = b3490deeb5a2e50b86df3cdacf27f19b67fc6f3f RMD160 (mocha-0.10.5.gem) = 5e29c4701db4fdd90012cf3e1c4ebe46a254e972 Size (mocha-0.10.5.gem) = 73728 bytes @ 1.8 log @Update ruby-mocha package to 0.10.0. = 0.10.0 () * Add Expectation#throws to allow a stubbed method to use Kernel#throw. * Updates for versions of Test::Unit up to and including v2.3.3 (including patch by Jens Fahnenbruck). * Updates for versions of MiniTest up to and including v2.5.1. * Since the singleton method added by Mocha masks the underlying instance method, there's no need to move it out the way and then back again. This fixes Github issue #20, because the original method is left unchanged - https://github.com/floehopper/mocha/issues/20 (thanks to Nick Lewis). * Handle stubbing of a singleton method, leaving the original method unchanged after the test. * When stubbing an instance method that was originally defined as a singleton method, the original method should still exist after the test. * Fixed mis-print in Mocha::ObjectMethods#unstub documentation (patch by Gleb Pomykalov). * Improved test coverage around stubbing of methods defined in different ways - this makes use of the newly extracted introspection gem (although this means some tests are now failing in Ruby v1.9.2). * Added configuration for Travis continuous integration. * Make the gemspec the canonical reference and stop generating it from the Rakefile. * Use the built-in Bundler rake tasks for packaging the gem. * Use the "release" rake task provided by Bundler instead of using the Rake::XForge::Release functionality. * Extract Object#__metaclass__ into a new metaclass gem. * Run rake tasks without `bundle exec`. * Avoid deprecation warning for rdoc rake task. * Remove the `use_test_unit_gem` MOCHA_OPTION which hasn't worked since we switched to bundler - we can now run the tests specifying a different Gemfile instead. * Use multiple Gemfiles seems to run Travis CI builds against multiple version of test-unit & minitest. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.7 2011/06/18 01:47:54 taca Exp $ d3 3 a5 3 SHA1 (mocha-0.10.0.gem) = 9fe4c957e1eb1634d97e8621ce62e3e8330b7ec7 RMD160 (mocha-0.10.0.gem) = 96075a586c50e8fdadd3017ef72b2b4bc48c5e27 Size (mocha-0.10.0.gem) = 71168 bytes @ 1.7 log @Update ruby-mocha package to 0.9.12. = 0.9.12 () * Make Mocha's tests pass under Ruby 1.9.2 i.e. using MiniTest. One of the main issues was that we were not parsing stacktraces on MiniTest errors comprehensively enough. * Avoid 'circular require considered harmful' warning when running Mocha's tests in Ruby 1.9.2 * Make performance tests work on Ruby 1.9.2 i.e. using MiniTest. * Declare rake as a *development* dependency with newer versions of Rubygems since it's only needed to carry out developer-related tasks. = 0.9.11 (1613ed2267fef5927ea06adfdbcf512b89eadaad) * Added explicit support for minitest v1.5.0 to v2.0.2. * Make testable by rubygems-test. * Update links to my blog and make other links consistent. * Added a URI parameter matcher that ignores the order of query parameters so that tests can be independent of undefined hash ordering (patch by Paul Battley). * Include unexpected invocation in failure message and change the language slightly to make the failure message less confusing. See http://floehopper.lighthouseapp.com/projects/22289/tickets/52. * No need to create regular expression every time the BacktraceFilter#filtered method is called. See http://floehopper.lighthouseapp.com/projects/22289-mocha/tickets/66. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.6 2010/12/04 04:01:54 taca Exp $ d3 3 a5 3 SHA1 (mocha-0.9.12.gem) = 9608f143af20514be95ac4385f693f9fe865acb6 RMD160 (mocha-0.9.12.gem) = e15617c7074d1e7fea24f5344341a805bbbbc3df Size (mocha-0.9.12.gem) = 67584 bytes @ 1.6 log @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). @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.5 2010/08/03 02:56:32 obache Exp $ d3 3 a5 3 SHA1 (mocha-0.9.10.gem) = d4800469173efb69183f2f5598f2ed528bafe8cd RMD160 (mocha-0.9.10.gem) = 84e21fd238f0e6a768cef3cad5ddfebdb8ba5625 Size (mocha-0.9.10.gem) = 66048 bytes @ 1.5 log @Update mocha to 0.9.8. = 0.9.8 (645024765b2d92018efc511652e1174163844e39) * Fixed bug "NameError raised when using Mocha as a Rails plug-in" - http://floehopper.lighthouseapp.com/projects/22289/tickets/53. Since 0.9.6 the Rails plugin has been broken. See bug report for details. You will need to explicitly load Mocha *after* the test framework has been loaded, e.g. by adding "require 'mocha'" at the bottom of test/test_helper.rb. * Make Mocha::ParameterMatchers#regexp_matches, #includes, #has_value, #has_key more robust. Thanks to Sander Hartlage. * Allow passing a block to Mocha::Configuration methods to only change configuration for the duration of the block. Thanks to Dan Manges. * Fixed bug "doc generation fails in 0.9.7 gem" - http://floehopper.lighthouseapp.com/projects/22289/tickets/51. * Remove rdoc template incorporating google analytics from source control. The file just needs to exist locally and be ignored by source control. This should stop the warning showing up on e.g. RunCodeRun build results. = 0.9.7 (80d816f250dc13aaf856f3f9cbd97ebe9c371839) * Although I had provided a deprecation warning for people using Mocha::Standalone, I had assumed people wouldn't be explicitly loading the mocha/standalone.rb file. It turns out this assumption was incorrect at least in the case of Rspec. This is now fixed. = 0.9.6 (57f8f77d715b7f1d9efee2e1a9438f7905c0006b) * Version 2.0.1 of the test-unit gem introduced a private 'run_test' method on TestCase which clashed with the public TestRunner#run_test method. So this latter method has been renamed to 'run_as_test'. * Stop requiring rubygems - this should be an environmental choice for the user. http://gist.github.com/54177 - describes why requiring rubygems in your library code is a bad idea. * It seems like overkill to vendorize coderay and meta_project when they're only needed to generate the examples for documentation and for publishing files on RubyForge. So I'm removing them and installing them locally as gems when I need them. * Added support for 'test-unit' gem (version >= 2.0). Note that as with other versions of Test::Unit I'm completely replacing the TestCase#run method. Unfortunately in version 2.0.0 this method differs slightly from the same method in version 2.0.1 & 2.0.2, so we have to provide different implementations to ensure that the internal working of Test::Unit are not compromised by Mocha. Note also that unless the 'test-unit' gem is loaded, requiring 'test/unit' leads to a mixture of stdlib and gem classes being loaded causing errors. To avoid a dependency on rubygems, the gem is loaded only if MOCHA_OPTIONS is set to 'use_test_unit_gem' - this option is only intended for use in running Mocha's own tests. It might be worthwhile to create a shim gem like minitest_tu_shim to allow the test-unit gem to completely replace the stdlib, but that's a job for another day. The changes in the Rakefile are to make the default task run with the 'test-unit' gem (version >= 2.0). * Renamed Mocha::Standalone to Mocha::API to better reflect its purpose. Added a deprecation warning for those who are referencing Mocha::Standalone. * Fix exception raised by HasEntry#matches? if first param is not a Hash (thanks to Taylor Barstow). * Ken Collins reported [1] that Mocha is always loading MiniTest if it is available and loading it causes some Rails/ActionPack tests to break. I've removed the loading of MiniTest, but this now means the user has to ensure that if they want to use MiniTest in conjunction with Mocha, he must load MiniTest before loading Mocha. [1] http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2060 * Implemented Bacon integration (thanks to Ubiratan Pires Alberton), but this was then removed after deciding only to maintain integration with Test::Unit and MiniTest which are both Ruby standard libraries. See mailing list for details. * Don't monkey-patch MiniTest if it's already been monkey-patched by Mocha. * Fixed bug: MiniTest integration was counting ExpectationErrors as errors not failures. http://floehopper.lighthouseapp.com/projects/22289-mocha/tickets/41. * Fixed bug: Some Bacon tests were failing in Ruby 1.9.1. http://floehopper.lighthouseapp.com/projects/22289-mocha/tickets/43. * Chad Humphries pointed out that in Ruby 1.9.1, if you are not using Test::Unit or MiniTest, Mocha will attempt to load and monkey-patch Test::Unit. Mocha will now only monkey-patch Test::Unit and/or MiniTest if they have already been loaded. MiniTest tests will now run in both Ruby 1.8.6 (with MiniTest gem) and in Ruby 1.9.1 (with MiniTest std lib). See Ligthouse ticket - http://floehopper.lighthouseapp.com/projects/22289/tickets/49. * Made Mocha compatible with minitest 1.4.0 and above (thanks to Denis Defreyne). = 0.9.5 (93cad010345ce5d68f31422cfc32ed9dd6de13ec) * Fixed Lighthouse bug #32 - stub_everything should mean mock responds to anything. * Added Expectation#twice to improve readability. Thanks to pull request from Celestino Gomes. * In Ruby 1.9.1, requiring 'test/unit' loads a thin wrapper around MiniTest and Test::Unit::TestCase ends up inheriting from MiniTest::Unit::TestCase. So we need to avoid including the Mocha modules more than once to avoid nasty consequences. Thanks to Matthias Hennemeyer for help with this. * Ruby 1.9 includes rake, but not rake/contrib. For the moment I've moved the sshpublisher require into the only rake task that needs it, so that I can at least run the tests in Ruby 1.9. It looks like I will need to build a rake/contrib gem or similar to get this working properly - http://intertwingly.net/blog/2008/01/07/Rake-Contrib-for-1-9 = 0.9.4 (8a59c6ff0f99f34b02bd99f19536a7893be2b340) * Added mocha.gemspec file generated with Chad Woolley's new rake task, so that a floehopper-mocha gem will get built on GitHub. * Add rake task to update mocha.gemspec with unique version, which will cause gem to be auto-built on github * As Tobias Crawley correctly pointed out in feature request #23055 "stubs(with_hash) not working with existing object" [1], following the principle of least surprise, it should be possible to call ObjectMethods#expects & ObjectMethods#stubs with a Hash of method_names vs return_values like you can with Mock#expects & Mock#stubs. I've also updated & improved the docs to reflect the changes. [1] http://rubyforge.org/tracker/index.php?func=detail&aid=23055&group_id=1917&atid=7480 * Removed deprecated gem autorequire. = 0.9.3 (8219bb2d2881c8529c93fc21e97a11d01203c759) * Added support for MiniTest thanks to Jeff Smick. * Fixed a possible bug with some of the non-default Configuration options relating to the argument to Object#respond_to? * As per Jay Fields recommendations [1] and with further impetus from a talk at Ruby Manor, any methods added to core classes are now added by including a module. This means that Mocha is a better citizen of the Ruby world and it's behaviour is more easily extended. [1] http://blog.jayfields.com/2008/07/ruby-underuse-of-modules.html & http://blog.jayfields.com/2008/07/ruby-redefine-method-behavior.html * Removed deprecated gem autorequire. = 0.9.2 (r355) * Improved documentation to address [#22530] 'Mock methods with multiple return values not possible?' * respond_with parameter matcher was not available in tests. * Patch [#22630] Fix for a bug in running Rails tests with Ruby 1.8.7. Array#flatten was being called which in turn was checking whether each element responded to #to_ary. This check was using the two parameter version of #respond_to?, but Mock was only defining a one parameter version. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.4 2009/06/12 13:24:27 taca Exp $ d3 3 a5 3 SHA1 (mocha-0.9.8.gem) = b922bbb39caca6beeb76b5af81378143c3025b80 RMD160 (mocha-0.9.8.gem) = 2d6cd5a48a4cb93e32ecf58d8d1354409f4246d7 Size (mocha-0.9.8.gem) = 60930 bytes @ 1.4 log @Add a comment to last patch. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.3 2009/06/12 11:48:40 taca Exp $ d3 3 a5 4 SHA1 (mocha-0.9.1.gem) = cfe81c1e94493269bc2b3b8909612933eefaa3a2 RMD160 (mocha-0.9.1.gem) = 2ebfb22dd4423ca9b6da940f5c1752a704a69c30 Size (mocha-0.9.1.gem) = 54274 bytes SHA1 (patch-aa) = 0a37858e817ff167da365f0a30d1fef7f037a95f @ 1.3 log @* Fix build problem with new Rubygems by removing an obsolete method call. * Add LICENSE. No PKGREVISION bump since there is no change with built package. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.2 2008/09/15 08:49:50 taca Exp $ d6 1 a6 1 SHA1 (patch-aa) = 39e49cc17b70dc675d732c54bce15634d5d487ea @ 1.2 log @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. "#.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 @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.1.1.1 2008/04/07 00:32:28 seb Exp $ d6 1 @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 SHA1 (mocha-0.5.6.gem) = 345e950cb57d393437c7ad67cd3c09a3142a24fd RMD160 (mocha-0.5.6.gem) = 301e95d46c363dc758a521ac109dbe43b07f21a6 Size (mocha-0.5.6.gem) = 42498 bytes @ 1.1.1.1 log @Initial import of ruby-mocha as version 0.5.6 into the NetBSD Packages Collection. Mocha is a Ruby library for mocking and stubbing using a syntax like that of JMock, and SchMock. Most commonly Mocha is used in conjunction with Test::Unit, but it can be used in other contexts. One of its main advantages is that it allows you to mock and stub methods on real (non-mock) classes and instances. You can for example stub ActiveRecord instance methods like create, save, destroy and even class methods like find to avoid hitting the database in unit tests. Mocha provides a unified, simple and readable syntax for both traditional mocking and for mocking with real objects. @ text @@