pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/ruby-mocha



Module Name:    pkgsrc
Committed By:   taca
Date:           Thu Jan 16 15:37:57 UTC 2020

Modified Files:
        pkgsrc/devel/ruby-mocha: Makefile PLIST distinfo

Log Message:
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)


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 pkgsrc/devel/ruby-mocha/Makefile \
    pkgsrc/devel/ruby-mocha/distinfo
cvs rdiff -u -r1.25 -r1.26 pkgsrc/devel/ruby-mocha/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/ruby-mocha/Makefile
diff -u pkgsrc/devel/ruby-mocha/Makefile:1.27 pkgsrc/devel/ruby-mocha/Makefile:1.28
--- pkgsrc/devel/ruby-mocha/Makefile:1.27       Wed Oct 30 15:10:32 2019
+++ pkgsrc/devel/ruby-mocha/Makefile    Thu Jan 16 15:37:57 2020
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.27 2019/10/30 15:10:32 taca Exp $
+# $NetBSD: Makefile,v 1.28 2020/01/16 15:37:57 taca Exp $
 
-DISTNAME=      mocha-1.9.0
+DISTNAME=      mocha-1.11.2
 CATEGORIES=    devel
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
Index: pkgsrc/devel/ruby-mocha/distinfo
diff -u pkgsrc/devel/ruby-mocha/distinfo:1.27 pkgsrc/devel/ruby-mocha/distinfo:1.28
--- pkgsrc/devel/ruby-mocha/distinfo:1.27       Wed Oct 30 15:10:32 2019
+++ pkgsrc/devel/ruby-mocha/distinfo    Thu Jan 16 15:37:57 2020
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.27 2019/10/30 15:10:32 taca Exp $
+$NetBSD: distinfo,v 1.28 2020/01/16 15:37:57 taca Exp $
 
-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
+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

Index: pkgsrc/devel/ruby-mocha/PLIST
diff -u pkgsrc/devel/ruby-mocha/PLIST:1.25 pkgsrc/devel/ruby-mocha/PLIST:1.26
--- pkgsrc/devel/ruby-mocha/PLIST:1.25  Wed Oct 30 15:10:32 2019
+++ pkgsrc/devel/ruby-mocha/PLIST       Thu Jan 16 15:37:57 2020
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST,v 1.25 2019/10/30 15:10:32 taca Exp $
+@comment $NetBSD: PLIST,v 1.26 2020/01/16 15:37:57 taca Exp $
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_LIBDIR}/.gemtest
+${GEM_LIBDIR}/.github/FUNDING.yml
 ${GEM_LIBDIR}/.rubocop.yml
 ${GEM_LIBDIR}/.rubocop_todo.yml
 ${GEM_LIBDIR}/.yardopts
@@ -12,6 +13,7 @@ ${GEM_LIBDIR}/README.md
 ${GEM_LIBDIR}/RELEASE.md
 ${GEM_LIBDIR}/Rakefile
 ${GEM_LIBDIR}/bin/build-matrix
+${GEM_LIBDIR}/docs/CNAME
 ${GEM_LIBDIR}/docs/Mocha.html
 ${GEM_LIBDIR}/docs/Mocha/API.html
 ${GEM_LIBDIR}/docs/Mocha/ClassMethods.html
@@ -53,7 +55,6 @@ ${GEM_LIBDIR}/docs/Mocha/StateMachine.ht
 ${GEM_LIBDIR}/docs/Mocha/StateMachine/State.html
 ${GEM_LIBDIR}/docs/Mocha/StateMachine/StatePredicate.html
 ${GEM_LIBDIR}/docs/Mocha/StubbingError.html
-${GEM_LIBDIR}/docs/Mocha/UnexpectedInvocation.html
 ${GEM_LIBDIR}/docs/_index.html
 ${GEM_LIBDIR}/docs/class_list.html
 ${GEM_LIBDIR}/docs/css/common.css
@@ -80,6 +81,7 @@ ${GEM_LIBDIR}/gemfiles/Gemfile.minitest.
 ${GEM_LIBDIR}/gemfiles/Gemfile.minitest.2.11.0
 ${GEM_LIBDIR}/gemfiles/Gemfile.minitest.2.11.2
 ${GEM_LIBDIR}/gemfiles/Gemfile.minitest.2.3.0
+${GEM_LIBDIR}/gemfiles/Gemfile.minitest.5.11.3
 ${GEM_LIBDIR}/gemfiles/Gemfile.minitest.latest
 ${GEM_LIBDIR}/gemfiles/Gemfile.test-unit.2.0.0
 ${GEM_LIBDIR}/gemfiles/Gemfile.test-unit.2.0.1
@@ -91,10 +93,10 @@ ${GEM_LIBDIR}/lib/mocha/any_instance_met
 ${GEM_LIBDIR}/lib/mocha/api.rb
 ${GEM_LIBDIR}/lib/mocha/argument_iterator.rb
 ${GEM_LIBDIR}/lib/mocha/backtrace_filter.rb
+${GEM_LIBDIR}/lib/mocha/block_matcher.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/class_methods.rb
 ${GEM_LIBDIR}/lib/mocha/configuration.rb
 ${GEM_LIBDIR}/lib/mocha/debug.rb
@@ -136,18 +138,15 @@ ${GEM_LIBDIR}/lib/mocha/integration/test
 ${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/invocation.rb
 ${GEM_LIBDIR}/lib/mocha/is_a.rb
 ${GEM_LIBDIR}/lib/mocha/logger.rb
+${GEM_LIBDIR}/lib/mocha/macos_version.rb
 ${GEM_LIBDIR}/lib/mocha/method_matcher.rb
-${GEM_LIBDIR}/lib/mocha/mini_test.rb
 ${GEM_LIBDIR}/lib/mocha/minitest.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/not_initialized_error.rb
 ${GEM_LIBDIR}/lib/mocha/object_methods.rb
 ${GEM_LIBDIR}/lib/mocha/parameter_matchers.rb
@@ -163,51 +162,53 @@ ${GEM_LIBDIR}/lib/mocha/parameter_matche
 ${GEM_LIBDIR}/lib/mocha/parameter_matchers/has_key.rb
 ${GEM_LIBDIR}/lib/mocha/parameter_matchers/has_value.rb
 ${GEM_LIBDIR}/lib/mocha/parameter_matchers/includes.rb
+${GEM_LIBDIR}/lib/mocha/parameter_matchers/instance_methods.rb
 ${GEM_LIBDIR}/lib/mocha/parameter_matchers/instance_of.rb
 ${GEM_LIBDIR}/lib/mocha/parameter_matchers/is_a.rb
 ${GEM_LIBDIR}/lib/mocha/parameter_matchers/kind_of.rb
 ${GEM_LIBDIR}/lib/mocha/parameter_matchers/not.rb
-${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/raised_exception.rb
 ${GEM_LIBDIR}/lib/mocha/receivers.rb
 ${GEM_LIBDIR}/lib/mocha/return_values.rb
 ${GEM_LIBDIR}/lib/mocha/ruby_version.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
+${GEM_LIBDIR}/lib/mocha/singleton_class.rb
 ${GEM_LIBDIR}/lib/mocha/state_machine.rb
+${GEM_LIBDIR}/lib/mocha/stubbed_method.rb
 ${GEM_LIBDIR}/lib/mocha/stubbing_error.rb
 ${GEM_LIBDIR}/lib/mocha/test_unit.rb
 ${GEM_LIBDIR}/lib/mocha/thrower.rb
-${GEM_LIBDIR}/lib/mocha/unexpected_invocation.rb
+${GEM_LIBDIR}/lib/mocha/thrown_object.rb
 ${GEM_LIBDIR}/lib/mocha/version.rb
 ${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/bug_18914_test.rb
 ${GEM_LIBDIR}/test/acceptance/bug_21465_test.rb
 ${GEM_LIBDIR}/test/acceptance/bug_21563_test.rb
+${GEM_LIBDIR}/test/acceptance/display_matching_invocations_alongside_expectations_test.rb
 ${GEM_LIBDIR}/test/acceptance/exception_rescue_test.rb
 ${GEM_LIBDIR}/test/acceptance/expectations_on_multiple_methods_test.rb
 ${GEM_LIBDIR}/test/acceptance/expected_invocation_count_test.rb
 ${GEM_LIBDIR}/test/acceptance/failure_messages_test.rb
 ${GEM_LIBDIR}/test/acceptance/issue_272_test.rb
+${GEM_LIBDIR}/test/acceptance/issue_457_test.rb
 ${GEM_LIBDIR}/test/acceptance/issue_65_test.rb
 ${GEM_LIBDIR}/test/acceptance/issue_70_test.rb
 ${GEM_LIBDIR}/test/acceptance/mocha_example_test.rb
 ${GEM_LIBDIR}/test/acceptance/mocha_test_result_test.rb
+${GEM_LIBDIR}/test/acceptance/mock_built_with_first_argument_type_being_string_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/multiple_expectations_failure_message_test.rb
+${GEM_LIBDIR}/test/acceptance/multiple_yielding_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
@@ -253,6 +254,7 @@ ${GEM_LIBDIR}/test/acceptance/stubbing_s
 ${GEM_LIBDIR}/test/acceptance/throw_test.rb
 ${GEM_LIBDIR}/test/acceptance/unexpected_invocation_test.rb
 ${GEM_LIBDIR}/test/acceptance/unstubbing_test.rb
+${GEM_LIBDIR}/test/acceptance/yielding_test.rb
 ${GEM_LIBDIR}/test/assertions.rb
 ${GEM_LIBDIR}/test/deprecation_disabler.rb
 ${GEM_LIBDIR}/test/execution_point.rb
@@ -272,7 +274,6 @@ ${GEM_LIBDIR}/test/unit/backtrace_filter
 ${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
@@ -282,12 +283,11 @@ ${GEM_LIBDIR}/test/unit/expectation_test
 ${GEM_LIBDIR}/test/unit/hash_inspect_test.rb
 ${GEM_LIBDIR}/test/unit/hooks_test.rb
 ${GEM_LIBDIR}/test/unit/in_state_ordering_constraint_test.rb
+${GEM_LIBDIR}/test/unit/instance_method_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_methods_test.rb
 ${GEM_LIBDIR}/test/unit/parameter_matchers/all_of_test.rb
@@ -313,7 +313,6 @@ ${GEM_LIBDIR}/test/unit/receivers_test.r
 ${GEM_LIBDIR}/test/unit/return_values_test.rb
 ${GEM_LIBDIR}/test/unit/sequence_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/thrower_test.rb



Home | Main Index | Thread Index | Old Index