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
a654d5657dfe703c4ac556ae7aed603a3bdc444e authored over 6 years ago
aef1719f5d5e98e653fd083a5f178433c6e7f707 authored over 6 years ago
dcc7ac8050c1bd43319668a7fb15733046fdafe5 authored over 6 years ago
fda0c4ed6634ace977c52a59b4ecab6b4fbbc81f authored over 6 years ago
I don't want to jeopardise support for older versions of Ruby.
d3688dd8967f5b9a65eefcbb8a40bf105feb9aa8 authored over 6 years ago
Even the reference in the documentation [1] suggests that you should
prefer alias_method vs alia...
I disabled the cop for the YamlEquivalent matcher, because it's possible
that classes not allowe...
Since eval is only used in a test, I'm happy to disable the cop in this
case.
Regexp#match? has only been available since Ruby v2.4 and I don't want
to jeopardise support for...
11f68fa61b40f2d531f97e19e58b5204829fd33d authored over 6 years ago
92378acb1d2b9c099f722994355aa1bbdd4c03a0 authored over 6 years ago
211cd7eaf019febc05834100059b34a0a924b466 authored over 6 years ago
514c88cd335edac1689bfe26be9c28797d789148 authored over 6 years ago
303c468eec997ff35eed87820f80958648f2427b authored over 6 years ago
bb0db3a2ddfa91966efd39462054ba5ac0d3486b authored over 6 years ago
5f2e3d05e706e9406a2cb0701b2ef228d8dd9f03 authored over 6 years ago
df7b39f574dc61e8ee44fc289698cad96da37a79 authored over 6 years ago
d221a47265ffab4a3da8248d9e30fa0f5c7b7b92 authored over 6 years ago
I've disabled the cop around monkey-patching code, because the whole
point is that this is copy-...
0a2e620e21b896a5ace7e1e068a93ee92d8d085a authored over 6 years ago
ea579c508de1965739062fa382e809292f438cf7 authored over 6 years ago
I've disabled the cop around monkey-patching code, because the whole
point is that this is copy-...
098069c32d3c784bdb260aa3de870dcf1e222f92 authored over 6 years ago
87cfcbeacd69ffe278d8d63b4ebd51cd83aa21d3 authored over 6 years ago
The other violations result in a "Infinite loop detected" when running
rubocop, so I'm going to ...
5913ff58493d77fdfddd9d4f97df8d93faa6f4b5 authored over 6 years ago
b6301c553a2781b0abf38141bbb9c8ca19d08772 authored over 6 years ago
I've disable the cop around monkey-patching code, because the whole
point is that this is copy-p...
9df7178b54749f4d0276eae0377fa27c39217dec authored over 6 years ago
25e0b0e7b37795aa13c0eafd8a0f61a0e4d25f81 authored over 6 years ago
0d0746be4cfb1f83ea852fa03038ade80a9ab875 authored over 6 years ago
5fec046fccc030b78970cfa95e9eed4d9168d8c7 authored over 6 years ago
e5f1e62912ec6d063526b16b0d459407bc54813f authored over 6 years ago
38570b005c42575f2d3166953e126de81ff17365 authored over 6 years ago
e88708ac79cc23ea59c05c4f34227dc5c0babcf2 authored over 6 years ago
0875ff55e25c158765283cb49df6577a697ec20f authored over 6 years ago
bfc39c13d6d40b61f1307a4afdccfb6824120b30 authored over 6 years ago
e3aff5d1b4dd8b424a55937ca618e641847fd946 authored over 6 years ago
Note that auto-correct didn't work, so I fixed this manually.
9994f565c262ef3bc936cfaaed2eb6c7fc21a430 authored over 6 years agoe1be3a4311358eaef1b7ae5ea80286cf56772d9a authored over 6 years ago
5d07de3888f5b0f11d9907c4d14323fa32d3b237 authored over 6 years ago
781d2beab5d053c704af74ebd230570815c7d114 authored over 6 years ago
99ed32c18d104a9d51c1c78e2a857ef029e0a1f0 authored over 6 years ago
6ffd3e0bc3a7e9ebacc868c032b9242ca77f50da authored over 6 years ago
52c54b7b7eb69be18c3e9a525b313441b2aa2759 authored over 6 years ago
56c146b58204a741706ae1ad3f442b02adcc831e authored over 6 years ago
a13a1d80ccc932551c63a0bdc30613ff5c26aacd authored over 6 years ago
e5a24ede065ccc6f43b6a2a7ef21c9776db60d63 authored over 6 years ago
I've disable the cop around monkey-patching code, because the whole
point is that this is copy-p...
46c4e07c4248f5f202785e3d462b266128c65afb authored over 6 years ago
For some reason the following violations were not automatically excluded
by the automatically ge...
I did this by running the following command:
rubocop --auto-gen-config
760605ca34eedcb92a9b8ab738e443114f560aa6 authored over 6 years agoacda421f05a5b1c05cdaaf83fdb5cdce2cc6ecc9 authored over 6 years ago
63744f8691e705f14939474560b63392333a2c6c authored over 6 years ago
Given that the add_development_dependency method seems to have been a
method on Gem::Specificati...
The ">= 0" is the default constraint and I think it makes the code more
readable to omit it.
The Gem::VERSION constant was only introduced in Rubygems v1.3.2 [1].
Prior to this, the version...
The Rubyforge website no longer exists, nor have any redirects been
setup, despite multiple requ...
Given that *any* version of Rubygems will satisfy the ">= 0"
requirement, this line seems redund...
While this information is available in the following commits, this saves
us repeating the same g...
de0a2ecc816c85fccc52419a7c2f89cf3b923fca authored over 6 years ago
I think this is more idiomatic Ruby.
b7b702bf40cda353a006add26242ea7c751e3271 authored over 6 years ago
The current specification_version is 4. The only change from version 3
to version 4 appears to b...
Looking back through the gemspec history it looks as if this was the
intention of these conditio...
I can't see that this has ever been used.
f1161dd1c07b5030dbe244e415eb594376b692a1 authored over 6 years agoIt turns out that Travis CI doesn't support Ruby v2.1.11
3883af7ee10a8b33a87ffd3039079052158dc7d0 authored over 6 years ago9bf556313387aca71ded0291b723168d359a5f0c authored over 6 years ago
dd6ffc543b1788fce8df5b6b5775160ca6d7ad78 authored over 6 years ago
52871132c5c464e52352fe387166a59f9439c7a5 authored over 6 years ago
The content was mostly stolen from this blog post [1].
Closes #236.
[1]: http://jamesmead.org/...
6c22196776477f19f6bf4177d13b81ff6b92bceb authored over 6 years agoChange gem version badge to svg and add SemVer stability badge
dc5c3cc5d411cbc7ca085e1c2ab4fdd1c437851f authored over 6 years ago54d803512e188b6009b87c2022a9f71484b78867 authored over 6 years ago
9b95fd299a1fc74e6eea13dc26b25bd82ce4fee2 authored over 6 years ago
This reverts commit 7a1a58d9b8760987f488e6404609e931e060f009.
We haven't got any backers or spo...
a283a0796759a48e345f8efc450af89157c2ab6a authored over 6 years agoAvoid mocks for partial mocking leaking into subsequent tests
183fefc8723959d952210808863618a840fb2edc authored almost 7 years ago
Previously ObjectMethods#mocha & ClassMethods::AnyInstance#mocha were
building mock objects for ...
Remove `ModuleMethod#method_exists?`
82c9e562245f96d584d665f533045220aaaec7d4 authored almost 7 years ago
This is similar to the change in commit
8f58eddf0ff658ad255cf60cedab3c767bbb15c7.
Commit e87c03...
fe1d49d124ac4af15e5f4fa0670f0f43be1fed4d authored almost 7 years ago12d9ce7eb61339d3acaf4e3896e84d706f539f81 authored almost 7 years ago
44a37b9987dbaf8d6b766c067924b19634c27f1a authored almost 7 years ago
Prevent use of Mocha outside the context of a test/example
d6c6c820ac218b6f5ad8684a58d0a83b02040386 authored almost 7 years ago89eeb1c1373cf32f038bc74f51500a0d5c4a2f11 authored almost 7 years ago
b57c38682538b5dbd4b2808e930153c02d0fcbcd authored almost 7 years ago
Hopefully this addresses #292.
If no Mockery has been instantiated when a call is made to any m...
5bda7c4561ef4917eb5df3f5dc39bbc86bb113a2 authored almost 7 years ago
Now that the Mockery instance is being explicitly instantiated and
destroyed, I think this resto...
Previously the Mockery singleton instance was lazily instantiated the
first time it was needed. ...
Both Mocha::Integration::MiniTest::Adapter and
Mocha::Integration::TestUnit::Adapter were alread...
This is a minor release, not just a patch release, because it introduces
at least one new deprec...
602fa7b24cf735b83677b8999f68db941f68df71 authored almost 7 years ago
Define respond_to_missing? on Mocha::Mock
983545462ef07bfbb4af0643c1531bcd85550208 authored almost 7 years agoFixes #321.
As of Ruby 2.4, Forwardable warns when delegating to a private method.
Warnings are...
Rename mocha/mini_test.rb to mocha/minitest.rb
76aad9c2a9620afd0925dba381a12a3b3658745b authored almost 7 years ago
* Deprecate requiring 'mocha/mini_test'
* Update documentation in README
As suggested in #289.
0426e5ec119bc6a6c0ab256c2b3a8273d798a6c0 authored about 7 years agoDisplay file and line number in deprecation warning
582ec7eb153e2dd2e6f742744be8b10d69b74abc authored about 7 years ago
The newlines before and after each deprecation warning and
the multiple leading asterisks make t...
ef24a3e78614e8873d0a0b1b18fa05b08bdfa6e0 authored about 7 years ago
Fixes #312.
I've also removed the code which displayed the backtrace for
deprecation warnings i...
This is now redundant.
6e404877c1607e95a4a1c666ae88cdee8a19f4d6 authored about 7 years agoJRuby v9.1.15.0 was released on 07 Dec 2017 [1].
[1]: http://jruby.org/2017/12/07/jruby-9-1-15-...
9732726e24943cecbca2e01befca04e713cd7a00 authored about 7 years ago