The NetBSD Project

CVS log for pkgsrc/devel/ruby-flexmock/Makefile

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / devel / ruby-flexmock

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Aug 24 13:57:32 2025 UTC (14 months, 3 weeks ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, HEAD
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -2 lines
devel/ruby-flexmock: update to 3.0.2

3.0.2 (2025-08-11)

What's Changed

* fix: explicitly forward keyword arguments when calling {#initialize} for
  new_instances support by @doudou in #28

* chore: compatibility with ActiveSupport's Object#with by @doudou in #31

Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Sep 18 15:09:33 2024 UTC (2 years, 1 month ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -2 lines
devel/ruby-flexmock: update to 3.0.1

3.0.0 (2024-07-18)

* Added keyword argument and explicit proc support.  Keyword argument
  support is Ruby 3.0+ only, getting the support to work on Ruby 2.7 deemed
  to be too complicated.  See the release notes for 2.4 below for
  information about how migration can be done smoothly

* with now expects all expected keyword arguments to be explicitly given in
  a natural way, for instance:

	mock.should_receive(:m).with("some", "args", with: 42)

  The values given to the arguments can be any matcher valid for the
  positional arguments

* note that not giving any keyword arguments to with is interpreted as a
  negative (no keyword arguments are expected), and will fail if some
  arguments are given.  Call with_any_kw_args after the with if you do not
  desire validation of keyword arguments:

	mock.should_receive(:m).with("some", "args").with_any_kw_args

* for more complex matches, pass a match object to the with_kw_args method.
  For instance, to match only some keyword arguments, do

	mock.should_receive(:m).with("some", "args").with_kw_args(hsh(with: 42))

* this release also makes matching procs explicit.  Instead of passing Proc
  at the end of with as in 2.x, call with_block or with_no_block.  If
  neither are called, flexmock won't validate either way (ignore whether or
  not a block was given).  The default is to not match blocks, that is
  working

* The default is to assume that blocks are optional (i.e. flexmock will
  match either way).  Nonetheless, the method with_optional_block is
  implemented to help migration from flexmock 2.4.0 (but is a no-op).

3.0.1 (2024-09-09)

* fix: handling of blocks in pass_thru (v3.0)

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Aug 26 13:29:48 2023 UTC (3 years, 2 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines
devel/ruby-flexmock: update to 2.3.8

2.3.8 (2023-08-13)

* remove executable flag on all lib ruby files
* in partial mocks, find the original method through metaprogramming
* CI: Drop unused Travis sudo: false directive
* Gemfile: use https for RubyGems.org
* update required ruby version to 2.2, and update Travis ruby versions
* CI: Use JRuby in the matrix
* update the links in doc/
* README: Use SVG badges
* fix: spelling of Minitest
* chore: run tests through GitHub actions
* Fixes support for minitest >= 5.19

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Feb 28 16:46:02 2018 UTC (8 years, 8 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
devel/ruby-flexmock: update to 2.3.6

* fix interaction between based partials, signature matching and 'explicitly'

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Mar 13 16:24:36 2017 UTC (9 years, 8 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3 lines
Update ruby-flexmock to 2.3.5.

2.3.2

* Make test-unit make_assertion compatible with new code.

2.3.3

* Define should_expect on partial mocks as well.
* Fix unused variable

2.3.4

* Workaround Ruby 2.0.x brokenness w.r.t. singletons of classes

2.3.5

* Avoid deprecated Fixnum warnings on Ruby 2.4.0.
* Add a LICENSE.txt file.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Nov 1 16:49:22 2016 UTC (10 years ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2016Q4-base, pkgsrc-2016Q4
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
Update ruby-flexmock to 2.3.1.

* fix mocking methods that are defined as private on Object
* remove test of experimental stuff I can't understand
* allow to stack verification contexts recursively using FlexMock.use
* add some missing tests
* fix stubbing the same method multiple times on a partial mock when
  partials_verify_signatures is set
* fix signature validation when the last positional argument of a call is
  a hash
* fix signature validation in presence of both keywords and blocks

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Oct 20 14:36:17 2016 UTC (10 years ago) by taca
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
Update ruby-flexmock to 2.3.0.

2.3.0:
 - implemented validation of call arity for partial mocks. By setting
     FlexMock.partials_verify_signatures = true
   flexmock will verify on partials that the number of arguments, and the
   keyword arguments passed to the mocked call match the existing method's
   signature

2.2.0:

 - #new_instances now mocks the #initialize method instead of mocking after the
   allocation was done. This allows to do mock methods called by #initialize
   itself. Behaviour when the allocator is explicitely provided is left
   unchanged, which means that the old behaviour is still available by passing
   :new to new_instances.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Oct 9 14:08:19 2016 UTC (10 years, 1 month ago) by taca
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -2 lines
Update ruby-flexmock to 2.2.1.

2.2.0:

 - #new_instances now mocks the #initialize method instead of mocking after the
   allocation was done. This allows to do mock methods called by #initialize
   itself. Behaviour when the allocator is explicitely provided is left
   unchanged, which means that the old behaviour is still available by passing
   :new to new_instances.

2.1.0:

 - added `#and_iterates` to fix some shortcomings of `#and_yield` without
   breaking backward compatibility
 - strict partial mocks (and "based mocks" if `FlexMock.partials_are_based` is
   set to true) are now based on the object's singleton class, instead of its
   class.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Mar 3 19:42:29 2016 UTC (10 years, 8 months ago) by shattered
Branches: MAIN
CVS tags: pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
Avoid build failures when chmod respects umask, and 'chmod -x' thus does
not clear all bits.  (Can happen on Linux --
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/67583)

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Feb 16 15:02:45 2016 UTC (10 years, 9 months ago) by taca
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
Update ruby-flexmock to 2.0.4.

* auto-mock #kind_of? as well as #class on strict mocks.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Dec 12 14:26:38 2015 UTC (10 years, 11 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2015Q4-base, pkgsrc-2015Q4
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -4 lines
Update ruby-flexmock to 2.0.3.

* Fixed infinite recursive call for rspec check
* fix strict mocks of BasicObject
* minitest: do filter assertion backtraces
* auto-mock #kind_of? as well as #class on strict mocks

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Nov 29 13:58:32 2015 UTC (10 years, 11 months ago) by taca
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
Update ruby-flexmock to 2.0.2.

* Avoid infinite recursion when a mocked method is called within #inspect.
* Remove duplicate method SpyDescribers.call_description / FlexMock.format_call.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Oct 7 23:16:09 2015 UTC (11 years, 1 month ago) by joerg
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -1 lines
Needs Ruby 2.0+

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Oct 4 12:12:53 2015 UTC (11 years, 1 month ago) by taca
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 lines
Update ruby-flexmock to 2.0.1.

pkgsrc change: update HOMEPAGE.


Version 2.0.1

* A few bug fixes.

Version 2.0.0

* bump to 2.0 to mark the change of maintainership. I hope I won't disappoint.
* require 'flexmock' no longer pulls test_unit_integration. Require the latter
  explicitely
* dropped support for pre-2.0 Rubies
* added explicit minitest support. This makes the minitest integration much
  nicer to work with (in particular, the flexmock_teardown is now executed "just
  at the right place"), and fixes issues with minitest 5. Just require
  flexmock/minitest to get it.
* partial mocks now supports prepended modules
* validation errors that happen when a method is called (i.e. unexpected
  arguments, wrong call count) are reported with the backtrace of the call
  instead of with the backtrace of the expectation definition.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Mar 14 15:36:16 2014 UTC (12 years, 8 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
Update ruby-flexmock to 1.9.3.

Exact changes aren't available.  Please refer commit log
<https://github.com/jimweirich/flexmock>.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Jun 16 15:36:25 2013 UTC (13 years, 5 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3 lines
Update ruby-flexmock to 1.3.2.

No exact changes aren't available, please refer github:
https://github.com/jimweirich/flexmock/commits/master.

Update HOMEPAGE, too.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Mar 11 07:33:57 2013 UTC (13 years, 8 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2013Q1-base, pkgsrc-2013Q1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
Update ruby-flexmock to 1.3.1.

== Changes in 1.3.1

* Removed use of assert_block (which is deprecated in MiniTest).
* Documentation fixes.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Feb 11 02:51:43 2013 UTC (13 years, 9 months ago) by taca
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
Update ruby-flexmock to 1.3.0.

= FlexMock 1.3.0 Released

FlexMock is a flexible mocking library for use in unit testing and
behavior specification in Ruby. This release is a minor release with a
few bug fixes and some simple features.

== Changes in 1.3.0

=== Features

* Add 'and' and 'on' modifiers for the RSpec spy matcher.

* Add 'and' and 'on' options to the assert_spy_called test method.

* General documentation improvement.

=== Bug Fixes

* Fix bug in should_fail test helper that was not detecting failed
  failures.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Dec 16 16:19:51 2012 UTC (13 years, 11 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2012Q4-base, pkgsrc-2012Q4
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
Update ruby-flexmock to 1.2.0.

Exact changes aren't avaiable, please refer github:
	https://github.com/jimweirich/flexmock/commits/master.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Sep 16 06:18:57 2012 UTC (14 years, 2 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
Update ruby-flexmock to 1.0.2.

Changes are unavailable.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Sep 3 15:39:05 2012 UTC (14 years, 2 months ago) by taca
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
Update ruby-flexmock to 1.0.0.

== Version 1.0.0

* Added spy support.
* Added base class mocking restrictions.
* Using singleton_methods to get list of singleton methods (rather
  than methods(false))
* Correctly handling mocking methods that were meta-programmed with
  method_missing.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Jun 17 15:31:39 2011 UTC (15 years, 5 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
Update ruby-flexmock package to 0.9.0.

= FlexMock 0.9.0 Released

FlexMock is a flexible mocking library for use in unit testing and
behavior specification in Ruby.  Release 0.8.5 is a minor release with
a few bug fixes.

== Ruby 1.9.3 Compatibility

* Fixed a number of minor warnings reported by the 1.9.3 version of Ruby.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Dec 4 03:58:30 2010 UTC (15 years, 11 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
Update ruby-flexmoc to 0.8.11.

Changes are unknown.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Sep 10 05:38:02 2010 UTC (16 years, 2 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2010Q3-base, pkgsrc-2010Q3
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +7 -4 lines
Update devel/ruby-flexmock to 0.8.7.

* Use lang/ruby/gem.mk instead of misc/rubygems/rubygem.mk.
* Add LICENSE.

Changes for 0.8.6 and 0.8.7 are unknown.

== Version 0.8.5

* Fixed warning about a void context.
* hsh() argument matcher now reports its matching constraints in error
  messages.

== Version 0.8.4

* Added support for rails 2.2.x in should_render_view.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Sep 15 08:55:18 2008 UTC (18 years, 2 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
Update ruby-flexmock package to 0.8.3.


= Changes for FlexMock

== Version 0.8.2

* Added workaround for compatibility issues with RSpec on Rails.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jun 22 16:00:58 2008 UTC (18 years, 4 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2008Q2-base, pkgsrc-2008Q2, cwrapper, cube-native-xorg-base, cube-native-xorg
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
Update ruby-flexmock package to 0.8.2.

= Changes for FlexMock

* FlexMock partial mocks will now override any preexisting definitions
  for "should_receive".  Previously, FlexMock would honor preexisting
  defintions, but an RSpec on Rails bug loads the RSpec mocks, even
  when other mock libraries are configured.  This allows flexmock to
  correctly use partial mocks in the presence of an ill-behaved mock
  library.

== Pre-Version 0.8.1

* Added Joe O'Brien's patch to allow view stubbing in Rails 2.0
* Added Evan Phoenix's patch to remove allocate from default
  allocators in new_instances (for Rubinius compatibility).

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Fri Apr 4 15:17:02 2008 UTC (18 years, 7 months ago) by jlam
Branches: TNF
CVS tags: pkgsrc-base
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
Initial import of ruby18-flexmock-0.8.0 as devel/ruby-flexmock.

FlexMock is a flexible mocking library for use in unit testing and
behavior specification.  Mocks are defined with a fluent API that
makes mock specifications easy to read and easy to remember.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Apr 4 15:17:02 2008 UTC (18 years, 7 months ago) by jlam
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>