Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/freerange/mocha

A mocking and stubbing library for Ruby
https://github.com/freerange/mocha

Remove more tests specific to Ruby v1.8 behaviour

These should've been removed in
ddb5d67246f8417402d02533f988720281cc0a34.

3b369e99d93102ccf33ee6b951a25d15773d3a5a authored over 2 years ago
Remove tests specific to Ruby v1.8 behaviour

These should've been removed in
ddb5d67246f8417402d02533f988720281cc0a34.

46fca7ac9d4eb7842eebdb744dd896399f80076d authored over 2 years ago
Separate linting from tests

In terms of Rake tasks & CircleCI jobs.

Closes #556.

21b1b5027fa06cba7fec46df6de8c6e723c46469 authored over 2 years ago
Separate require logic from lint task

This makes the "lint" task definition more readable.

The RUBY_VERSION check is now effectively ...

8b01fdc6e65e0b86c1091805018595d0904607e6 authored over 2 years ago
Separate lint from test jobs in CircleCI

This makes it easier to see whether the linting has passed or failed
when looking at CI results,...

099452e46cbdcce28c11f46debb7023943a54250 authored over 2 years ago
Separate linting from test tasks

Previously the "rubocop" task provided by the rubocop library was added
as a dependency of the "...

c55a247a711aebafa767cbfa8faae9bbd13b7174 authored over 2 years ago
[skip ci] Update documentation for v1.15.0 release

942ddadccfd1755fe27e92cba969f2ad31efc1c1 authored over 2 years ago
Bump version to 1.15.0 & prepare for release

bf6d2ab5fb90f7053b4bc3210456d53f1fc2703a authored over 2 years ago
Deprecate support for Ruby versions earlier than v2.0

This is long overdue. Extended maintenance of Ruby v1.9.3 ended on 23
Feb 2015 [1]. Actually dro...

d752f09482848345b9c786365f9ad5eb3a3c2ac7 authored over 2 years ago
Extract handle_method_call from method_missing

Continues the refactoring started in #549 on the road to better keyword
args matching. This is p...

6a09a373aaaee052bb5cd9735c2b1139df7d6aea authored over 2 years ago
Remove unnecessary splatting in Invocation

24d3cfbf820f84579f2f16d7c5f3d68d6ec8f25c authored over 2 years ago
Remove ParametersMatcher from Invocation#call_description

This is a somewhat odd usage of `ParametersMatcher` which unnecessarily
couples it to `Invocatio...

c26be5f42485eb6b1f0b924faac669486c5fe133 authored over 2 years ago
Fix typo in assert_method_visibility arg name

5dfa49fb80bd59c464b5ed770e02dd7f24178e88 authored over 2 years ago
Remove redundant to_sym in Assertions

Reflection-related methods returning arrays of method names, e.g.
Object#public_methods, Module#...

6b678aef7fb833cff01e9a4ad8c8d3f6656fa26b authored over 2 years ago
Remove redundant to_sym in Mockery

- Object#respond_to? has always accepted either string or symbol
interchangeably (at least fro...

edb5f8d7d3ae88c90638014e2c1d709d67c8725a authored over 2 years ago
Remove hook method method_body no longer needed

9a22aa1f3569d1cd09ba0bc61b9cc7c84b727197 authored over 2 years ago
Merge pull request #539 from freerange/fix-performance-test

Fix test:performance Rake task

dc9e4e106fe618bdb40b7e00b0c4ca09db9915a5 authored over 2 years ago
Run test:performance rake task on CI

To ensure the task runs with no errors and to allow us to see any
trends in performance over time.

84453a1fdf2fc3655c8c0a4e1c04f277bc7369ca authored over 2 years ago
Set Minitest.seed for test:performance task

It looks like this may have been required since Minitest v5.16.0 [1].
Without it the following e...

9545cc42afe52a46baddc8084cd715c5c97827e1 authored over 2 years ago
Run test tasks before release tasks

The 'release' task provided by Rubygems relies on a number of
prerequisite tasks to actually do ...

92a1bc6e40008967cea3023be5e12562cd2096ff authored over 2 years ago
Remove support for Ruby v1.8

Extended maintenance of Ruby v1.8.7 ended on 31 Jul 2014 [1] and Mocha
support for Ruby v1.8 has...

ddb5d67246f8417402d02533f988720281cc0a34 authored over 2 years ago
Merge pull request #533 from freerange/consistent-definitions-for-respond-to

Consistent definitions for respond_to?

1ade3841f14a1c17abfe69e4b43acd8eac34d0f2 authored over 2 years ago
Add another example for API#sequence

Closes #59.

b7a7d23321e409c9ad77229f80033a55eb0d8a90 authored over 2 years ago
Fix examples using mock constructor with block

This functionality was deprecated in
9316807e5922ef1942160889dabdabb862d5107b and then removed i...

1cc176679eb92f57c0bf05d0181f581fd0d12376 authored over 2 years ago
include_private -> include_all for respond_to?

Since Ruby v2, the 2nd optional argument to Object#respond_to? has been
named include_all. Since...

514fc6c80b9937faeb6fe97c85538634d5954dba authored over 2 years ago
Make AnyInstance#respond_to? signature consistent

With Object#respond_to? which supports an optional 2nd argument called
include_private.

03e758f109289e07a191172d17aca6e55c4dac79 authored over 2 years ago
Consistent naming for 2nd arg to respond_to?

The argument name used for Object#respond_to? in earlier Ruby versions
is include_private and so...

0bb4a1de6def743148640c575c697f19cc0c79a3 authored over 2 years ago
Require both args for Mock#respond_to_missing?

This method delegates respond_to_missing? behaviour to the responder
object. As far as I can see...

2119a86cd1dacbc49bc8e5b22c349c120b97f92f authored over 2 years ago
Avoid arity check in Mock#respond_to_missing?

As far as I can see, Object#respond_to? has supported an optional 2nd
argument since at least Ru...

365a7348dbd8e8798584001e261d31a7355c19d8 authored over 2 years ago
Rely on Object#respond_to? in MockTest

Although this is a unit test, I think it's a bit simpler to rely on the
built-in implementation ...

20411294a61c4b526538e17666e122fb2024ce9f authored over 2 years ago
Update instructions for obtaining Rubygems API key

When OTP is enabled.

ed9c040a9550273e52e78c415de7f5bfbef992d4 authored over 2 years ago
Remove extraneous backtick in README

0df9258e342401ee704641cf4f05adaa299f2c68 authored over 2 years ago
Ignore .yardoc directory

1a35666f6f825a41be07b689fe5b4ade9d1497b9 authored over 2 years ago
[skip ci] Update documentation for v1.14.0 release

0947d5d9ba4f8c9259ec71641384536ad6504de1 authored over 2 years ago
Bump version to 1.14.0 & prepare for release

I've made this a minor version bump, because technically it does change
some published behaviour...

08b0dbf5fd2f2b04f87203bbf32ea8ba8532ed5e authored over 2 years ago
Move development dependencies from gemspec to Gemfile

Gemspec should not contain `RUBY_VERSION` as a condition to switch dependencies,
because it is m...

dd127f7bba4e0e58e96f687e352edc5e4f80f334 authored over 2 years ago
Add Ruby 3.0 to the CI matrix

65bc626e80e0b27219ed220de4f72dbed753bfaa authored over 2 years ago
Mock#expects,#stubs should return last expectation

Even when passed a hash of method names vs return values. This is the
same behaviour as for Obje...

b6b637db7326e92299d4622f9e6847f3c7d58d91 authored almost 3 years ago
Remove broken Dependabot badge from README

[ci skip]

GitHub support have told me this has probably been broken since Dependabot
Preview...

d446657a51f894deb5ea9685e214eba40a3aff99 authored about 3 years ago
Avoid breaking change in psych v4 in ruby v3.1

ruby 3.1 was shipped with psych v4 which included a breaking change [1]
that was mentioned in th...

08b9f4cafb9a92f78f89bb19c5625a519c6afe2a authored about 3 years ago
[skip ci] Update documentation for v1.13.0 release

191823e8696881ab8c72948165834eca18315cb3 authored over 3 years ago
Bump version to 1.13.0 & prepare for release

I've made this a minor version bump since it includes some new
functionality.

f59385efeea471302c11bbf9ffb70fae51d93a6e authored over 3 years ago
Check documentation can be generated as part of CircleCI build

The yardoc rake task will have a non-zero exit code if any errors or
warnings occur and thus the...

b30d9a9ae407319837a446634c1f9a0e425c1e50 authored over 3 years ago
Add --fail-on-warning option to yard rake task

See #422.

53a6ee393371cea814fc4709c8d49e5f5967d583 authored over 3 years ago
Add Ruby v1.8 to the CircleCI build matrix

Thanks to @mudge for his Docker image!

818ca037ff2f352950d6f24fd95efd041ad4ae53 authored over 3 years ago
Add a weekly scheduled build to the CircleCI build

This should run at 03:00 every Sunday.

fd2a4c6f21fbf547b7aeaafff49237697a3e548c authored over 3 years ago
Add API token to fix CircleCI badge in README

Apparently [1] you need this even for public projects despite what the CircleCI
docs say [2].
...

607c5aab541e58d668a8b674cf5f3a1b08bfa379 authored over 3 years ago
Provide wrapped option for #mocha_inspect on hashes & arrays

d8f44bcadabb67c47dc33eed8ca1e7010e083485 authored over 3 years ago
Add ParameterMatchers#has_keys

c.f. ParameterMatchers#has_entries

18d81047fde4800d907382d2ddd2f3fb52671fc9 authored over 3 years ago
Fix misleading exception message in ParameterMatchers#has_entry

PR: #513

Previously if has_entry was called without any arguments, it raised the
following exce...

9c4ef13197300d6edd1990dabd3df00385e40d98 authored over 3 years ago
Use CircleCI instead of TravisCI for automated builds

PR: #514

c98c6ec572efc823acf0d5ed0e0882192246088a authored over 3 years ago
Update documentation to replace refs to TravisCI with refs to CircleCI

c0719fdedeb081756344627079207efa6cecc933 authored over 3 years ago
Only add dependency on rubocop if we're actually going to use it

We only attempt to run rubocop from Ruby v2.0.0 onwards, so there's no
point in including it for...

f2f879fdec05b0c230675d5a4b1a08f5577b3712 authored over 3 years ago
Fix rake dependency constraints for older Ruby versions

7ce5f2912e38fbebce274bda7e7ac3618afe12ba authored over 3 years ago
Configure CircleCI builds

670da6d08dc9ada921f1bbaa4681e4f74c914120 authored over 3 years ago
Remove TravisCI config and associated files

08fca3774ae3dcb3c02e9348441e9df8190a00d6 authored over 3 years ago
Switch to newer default Travis CI build env

I think this should move us from a Trusty
container-based environment to the current Travis CI
...

c78f75cacf348386524d170300936eec4c1625ba authored over 3 years ago
Use latest Ruby versions in Travis CI builds

9e0043ac663f6de42da5d117f2ff7d86ae0c23ee authored over 3 years ago
Use latest JRuby v9.2.18 in Travis CI builds

8c99a1bb99f08ed1c9bc758990639cd485a2ff52 authored over 3 years ago
Use consistent JRuby versions in Travis CI builds

This should have been included in this commit [1].

[1]: 58653dbd5eee6921b176e27311936c3dc936dbff

0f849aa8318a6ec884579c4b3ad8ef1645c0ec0c authored over 3 years ago
Use more recent version of JRuby in Travis CI build matrix

58653dbd5eee6921b176e27311936c3dc936dbff authored about 4 years ago
[skip ci] Update documentation for v1.12.0 release

56c167e873e1d31704df17636a39103c962fd18d authored about 4 years ago
Bump version to 1.12.0 & prepare for release

This release only includes documentation changes, refactorings and a bug
fix for a regression in...

eebc6ce93cd5b306b3a470f18848d6da81415f41 authored about 4 years ago
Update docs to point to travis-ci.com instead of travis-ci.org

4e927435165a6e0ea025655d360a8b70b96f63be authored about 4 years ago
Remove docs & tests from gem to reduce its size by over 50%

I was looking through https://rubygems.org/gems/mocha/versions and
noticed the .gem's file size ...

a84ab9da9d0977d29e6dc56bf7522386eb68394e authored about 4 years ago
Temporarily ignore Ruby v1.8.7 build failures

There seems to be some kind of SSL certificate error [1] when installing
the bundler gem. This i...

e5b9feef3d1d68a774df0e729386748f4d11cf50 authored about 4 years ago
Improvements to docs for Expectation#yields & #multiple_yields

With a particular focus on clarifying the behaviour of
Expectation#yields with no arguments.

Cl...

1b6571c6c025d938fb92f16df997c8156f0739eb authored about 4 years ago
Patch app.js to work with jquery v1.9.0

Ideally this would be fixed in yard. I've opened a PR [1] with the fix,
but haven't yet had any ...

1b76e4d5c7665301fa2441e234733a520393eee5 authored over 4 years ago
Downgrade jquery from v1.9.0 -> v1.8.3

To fix a problem with the toggle source links. The problem seems to be
introduced in jquery v1.9...

dd5eeedbe417ea5c851d3d6bdc35d57064b0648c authored over 4 years ago
Remove reference to non-existent jquery source map

Hopefully this should fix the error I'm seeing in Chrome developer
tools.

2015655500b5db3e2880272c67272274ec8efb64 authored over 4 years ago
Manually upgrade jquery in docs from v1.7.1 -> v1.9.0

As per this commit [1] in this as yet unmerged PR [2].

Fixes CVE-2017-16011 security vulnerabil...

211098a5dc181c9535cce1e633dd9b4d7ba42525 authored over 4 years ago
Generate docs using newer version of yard (v0.9.25)

c619afac24b4bc30f15c630c100facef61ea5916 authored over 4 years ago
Update Travis CI badge to point to main vs master branch

bd8028f88cfa980a0976ddc8d7ed7b5edc8dbfa0 authored over 4 years ago
hide respond_to? from yard documentation

186f93f2122a2dea14e84d63b2bbb29f9586632e authored almost 5 years ago
Use code block in doc for Expectation#when state_predicate param

b4f59daa69a29b2ef1f9dae4160c4aa26898e4e4 authored almost 5 years ago
Merge pull request #474 from nitishr/remember-invocations

Fixes #473.

Earlier, whenever you qualified an Expectation with a cardinality, a new
Cardina...

729d43de83a69b0b1178268991bf14452c674c71 authored almost 5 years ago
Refactor: remove unnecessary return self

The at_{least,most}_once methods simply delegate to at_least, and
at_least returns self. So, end...

5c876f4429ff673caa3c61dc8df43082b93a93b2 authored almost 5 years ago
persist cardinality instance across updates

Fixes #473. Earlier, whenever you qualified an Expectation with a
cardinality, a new Cardinality...

f7d901ccf5e467d5ad143d1e4ae3e532eb3006c0 authored almost 5 years ago
Refactor: prep to turn class methods into instance

... in order to make a single Cardinality instance persist across
updates to expectation cardina...

9d0d37a0a9b73d1c15d63a2896d19787b894a2a9 authored almost 5 years ago
Simplify Mockery

Closes #449.

cc91b875f8d351512ca499272df60fa3025c06a2 authored almost 5 years ago
Remove redundant stubbing_method_unnecessarily conditional

The `if` statement is redundant, because the Mockery#check method
already returns early/does not...

c7db3f67e556f6784ae72fbd154edbc71e94d9a0 authored almost 5 years ago
Inline on_stubbing_method_unnecessarily

This method was only being called from one place.

0532ada9d9b8246ad223c540626b46b16283deb4 authored almost 5 years ago
Replace `unless empty?` with simpler `if any?`

365ce92f1da61be24457b08304602c0fdffc08e8 authored almost 5 years ago
Consistently terminate Mockery#mocha_inspect with newline

Previously the message only ended in a newline if any state machines
were defined.

adf704cffe4fddc5f10b38568f35467a07bc8d69 authored almost 5 years ago
Add test coverage for displaying state in error message

This asserts that the state is included in the error message when an
exception is not satisfied.

99d79acdc8a63ddc14238161b4356da6c2a06691 authored almost 5 years ago
Replace conditional next inside each block with call to Enumerable#reject

db61649a8536fe178a014c7fc19a07ddb5b333f5 authored almost 5 years ago
Move stubbing_method_unnecessarily check outside loop

There's no need to do this for each expectation since the configuration
should not change in the...

f2d53bcf2eb603d398d512e7e5d8a5bd75e0cc56 authored almost 5 years ago
Consistently use instances instance variable in Mockery

Previously we were using a mixture of the instance variable and the
Mockery.instance method.

No...

b615a4d0a640b0cbf24924fe6469fa1d27c71d69 authored almost 5 years ago
Remove redundant assignment of @instances in Mockery.setup

The instances method already initializes it to empty if it's nil.

5412d0a53f351c1a1731bb63643aba4ec010602e authored almost 5 years ago
Add Ruby 2.7 to Travis-CI matrix

Ruby 2.7 got released some time ago. Linux distributions start to ship
it so I think it makes se...

fc5ea2f2b9f83b89f531aff765bd1f097d17c01f authored almost 5 years ago
Remove redundant test

Closes #454.

I believe this test was intended to refer to the exception [1] raised in
`Mockery#...

8e4f1a7c052dc027d44ce7ecd031565ae42cef6c authored about 5 years ago
Refactor StateMachine-related classes & improve related documentation

Closes #427.

Closes #425.

I'm not 100% convinced about making StatePredicate a superclass of
S...

8751dcbda08650a339932d86c9f24d076c167300 authored about 5 years ago
DRY up StateMachine#mocha_inspect

4d70b7e80906ef30451e65628aae37ec1c754334 authored about 5 years ago
Improvements to docs for StateMachine#is & #is_not

Although strictly speaking StateMachine#is is not really "overloaded",
I've used the YARD overlo...

c2c0877c8f17072a6b460401601b1df648670100 authored about 5 years ago
Make signature of Expectation#then more explicit & simplify impl

cebed27b9bcef0dd1c90a9df5c81ae3ab047c43c authored about 5 years ago
Update documentation referring to states in Expectation

6ba9020cb5733d4c70839a24ad8a6742f91c4a82 authored about 5 years ago
DRY up by subclassing State from StatePredicate

ca83014bedf05b80aea6e3ce44ae4caa54ce7ad0 authored about 5 years ago
Move StatePredicate definition above State definition

We're about to change the State class to inherit from the StatePredicate
class and this will mak...

e3be26cb1c009758fbfd32e666fb7c7a444fa831 authored about 5 years ago
Prepare to make StatePredicate into superclass by passing active_check

e09deddd9b69349f038f924641de9f7099c032f9 authored about 5 years ago
Prepare to make StatePredicate into superclass by passing description

90b0e61fb9f9ebc79fee7d910f242e6551ae2e73 authored about 5 years ago