pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/ruby-rspec-mocks Update ruby-rspec-mocks to 3.2.0.
details: https://anonhg.NetBSD.org/pkgsrc/rev/7f6f2af45400
branches: trunk
changeset: 646298:7f6f2af45400
user: taca <taca%pkgsrc.org@localhost>
date: Sat Feb 07 14:42:31 2015 +0000
description:
Update ruby-rspec-mocks to 3.2.0.
### 3.2.0 / 2015-02-03
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.3...v3.2.0)
Enhancements:
* Treat `any_args` as an arg splat, allowing it to match an arbitrary
number of args at any point in an arg list. (Myron Marston, #786)
* Print diffs when arguments in mock expectations are mismatched.
(Sam Phippen, #751)
* Support names for verified doubles (`instance_double`, `instance_spy`,
`class_double`, `class_spy`, `object_double`, `object_spy`). (Cezary
Baginski, #826)
* Make `array_including` and `hash_including` argument matchers composable.
(Sam Phippen, #819)
* Make `allow_any_instance_of(...).to receive(...).and_wrap_original`
work. (Ryan Fitzgerald, #869)
Bug Fixes:
* Provide a clear error when users wrongly combine `no_args` with
additional arguments (e.g. `expect().to receive().with(no_args, 1)`).
(Myron Marston, #786)
* Provide a clear error when users wrongly use `any_args` multiple times in the
same argument list (e.g. `expect().to receive().with(any_args, 1, any_args)`.
(Myron Marston, #786)
* Prevent the error generator from using user object #description methods.
See [#685](https://github.com/rspec/rspec-mocks/issues/685).
(Sam Phippen, #751)
* Make verified doubles declared as `(instance|class)_double(SomeConst)`
work properly when `SomeConst` has previously been stubbed.
`(instance|class)_double("SomeClass")` already worked properly.
(Myron Marston, #824)
* Add a matcher description for `receive`, `receive_messages` and
`receive_message_chain`. (Myron Marston, #828)
* Validate invocation args for null object verified doubles.
(Myron Marston, #829)
* Fix `RSpec::Mocks::Constant.original` when called with an invalid
constant to return an object indicating the constant name is invalid,
rather than blowing up. (Myron Marston, #833)
* Make `extend RSpec::Mocks::ExampleMethods` on any object work properly
to add the rspec-mocks API to that object. Previously, `expect` would
be undefined. (Myron Marston, #846)
* Fix `require 'rspec/mocks/standalone'` so that it only affects `main`
and not every object. It's really only intended to be used in a REPL
like IRB, but some gems have loaded it, thinking it needs to be loaded
when using rspec-mocks outside the context of rspec-core.
(Myron Marston, #846)
* Prevent message expectations from being modified by customization methods
(e.g. `with`) after they have been invoked. (Sam Phippen and Melanie Gilman, #837)
* Handle cases where a method stub cannot be removed due to something
external to RSpec monkeying with the method definition. This can
happen, for example, when you `file.reopen(io)` after previously
stubbing a method on the `file` object. (Myron Marston, #853)
* Provide a clear error when received message args are mutated before
a `have_received(...).with(...)` expectation. (Myron Marston, #868)
diffstat:
devel/ruby-rspec-mocks/Makefile | 7 ++++---
devel/ruby-rspec-mocks/distinfo | 8 ++++----
2 files changed, 8 insertions(+), 7 deletions(-)
diffs (35 lines):
diff -r 8173066594f8 -r 7f6f2af45400 devel/ruby-rspec-mocks/Makefile
--- a/devel/ruby-rspec-mocks/Makefile Sat Feb 07 14:41:07 2015 +0000
+++ b/devel/ruby-rspec-mocks/Makefile Sat Feb 07 14:42:31 2015 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.14 2015/02/02 14:22:28 taca Exp $
+# $NetBSD: Makefile,v 1.15 2015/02/07 14:42:31 taca Exp $
-DISTNAME= rspec-mocks-3.1.3
+DISTNAME= rspec-mocks-3.2.0
CATEGORIES= devel
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
@@ -8,7 +8,8 @@
COMMENT= This is test-double framework for rspec
LICENSE= mit
-DEPENDS+= ${RUBY_PKGPREFIX}-rspec-support>=3.1.0<3.2:../../devel/ruby-rspec-support
+DEPENDS+= ${RUBY_PKGPREFIX}-rspec-support>=3.2.0<3.3:../../devel/ruby-rspec-support
+DEPENDS+= ${RUBY_PKGPREFIX}-diff-lcs<2:../../textproc/ruby-diff-lcs
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 8173066594f8 -r 7f6f2af45400 devel/ruby-rspec-mocks/distinfo
--- a/devel/ruby-rspec-mocks/distinfo Sat Feb 07 14:41:07 2015 +0000
+++ b/devel/ruby-rspec-mocks/distinfo Sat Feb 07 14:42:31 2015 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.14 2015/02/02 14:22:29 taca Exp $
+$NetBSD: distinfo,v 1.15 2015/02/07 14:42:31 taca Exp $
-SHA1 (rspec-mocks-3.1.3.gem) = acdb61c52085711891fc8720a2abbd9378d22196
-RMD160 (rspec-mocks-3.1.3.gem) = d5fce979acd0a9ba1bf6fb5d39747211fbc02188
-Size (rspec-mocks-3.1.3.gem) = 64512 bytes
+SHA1 (rspec-mocks-3.2.0.gem) = 083d5bee63d0ce7876a33e3772202c5b928fe01f
+RMD160 (rspec-mocks-3.2.0.gem) = 0c6d776aa9ae10f5d374b3d2cd9d60f03d8378f9
+Size (rspec-mocks-3.2.0.gem) = 71168 bytes
Home |
Main Index |
Thread Index |
Old Index