Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
mocha
We are on a mission to develop & maintain a mock object library for Ruby.
Collective -
Host: rubytogether-user -
https://opencollective.com/mocha-deleted
- Code: https://github.com/freerange/mocha
It was originally extracted to please rubocop, as it complained about cyclomatic
complexity bein...
on_stubbing_method_unnecessarily differs only in how the method_signature and
backtrace are comp...
github.com/freerange/mocha - 3c4e94f74a29a74e9319dd8b430b7e45712d4e81 authored over 5 years ago
Since original_method_owner is a class, it can already provide method_visibility
(through ClassM...
github.com/freerange/mocha - 48070db7f49231efe41d4c5359def8c9f9100027 authored over 5 years ago
Boolean expressions are declarative, while conditional returns are imperative.
This makes method...
Makes AnyInstance#method_exists? more similar to ClassMethod#method_visibility
github.com/freerange/mocha - 3c9f60f3df4c5a714377ed54d86aae0504731b62 authored over 5 years ago
Since a method exists (or not) on a class, and an object responds (or not) to a
message, Mockery...
Makes AnyInstance#method_exists? more similar to ObjectMethods#method_exists?
github.com/freerange/mocha - 5de8e6bbd49ecd803002890ec41bce9e3f2d4451 authored over 5 years agogithub.com/freerange/mocha - d041cdc25c068115166069b4bfbaf0975ea8debb authored over 5 years ago
github.com/freerange/mocha - c8b4441acdb1cc918c550991514ff040299af0e2 authored over 5 years ago
respond_to? was called only in the if include_public_methods conditional, and
this is the only...
Boolean expressions are declarative while conditional returns are imperative
github.com/freerange/mocha - 06f79d3c34193fee32887121d3bc203cfe3321db authored over 5 years agogithub.com/freerange/mocha - 948b8b81e5c9aeefe028890624adff795d04fd13 authored over 5 years ago
github.com/freerange/mocha - d2ed1a84e090f46b21435d87ad1359de117ddf8b authored over 5 years ago
github.com/freerange/mocha - 6e50d3818607066d2158a8a6d8313d49dd875f97 authored over 5 years ago
Since a method exists (or not) on a class, and an object responds (or not) to a
message, Mockery...
github.com/freerange/mocha - 848bea9719982a20162d32fbb4584531d89eef8e authored over 5 years ago
Makes ObjectMethods#method_exists? more similar to ClassMethods#method_exists?
github.com/freerange/mocha - 55b3395c9df679dfcc00a7e06e660fbabb5d56dd authored over 5 years ago
We don't really do this (anymore) so I've removed it from the "working
together" section.
github.com/freerange/site - 65cadad20e8aa9fbe186d19bdc253de89d153fff authored over 5 years ago
I wanted a little bit of whitespace between the second h3 in this
sidebar (the new "we are a coo...
I downloaded the logo[1] that co-ops uk sent us, converted it to a PNG
in preview and cut out th...
github.com/freerange/site - a4f576e9dd4cb6c1ec5597357a15eed14e38c33d authored over 5 years ago
I want to add another snip to this "sidebar". As a first step I'm
moving the div (that is floate...
Make the chainability to #mock and #stub clearer
github.com/freerange/mocha - 54dd07521110caa4647b7bb11efc7e49c670f23a authored over 5 years agogithub.com/freerange/mocha - c16848348213a911d923892a2831d5bef7594955 authored over 5 years ago
Simplify {AnyInstance,Class,Instance,Module}Methods Hierarchy
github.com/freerange/mocha - 706effdd7a45b6684f4d7a87e81b7313a13f46bc authored over 5 years ago
Parameterizing (& generalizing) the methods allows us to reduce the implicit
dependency/contract...
github.com/freerange/mocha - ec8ab787cd42217047be43e117d704435814a1f3 authored over 5 years ago
This reduces duplication in InstanceMethod & AnyInstanceMethod (assignment to
ivar), and shrinks...
Since original_method_owner returns stubbee anyway. This makes it similar in
InstanceMethod and ...
Since there're only two subclasses of StubbedMethod, I didn't see a reason to
privilege methods ...
ObjectMethods#stubba_method is identical, and is already included in Object.
Since a Class is an...
ClassMethod is/was being used solely as a superclass of InstanceMethod and
AnyInstanceMethod, an...
ObjectMethods provides everything that ModuleMethods did, and is already
included in Object. Sin...
github.com/freerange/site - 720d4cd97fa6f0204b7f79ab5b350bc4826d072b authored over 5 years ago
github.com/freerange/site - f53bca6f74483a1699bccfc1fd93cf6de5d2f06c authored over 5 years ago
github.com/freerange/site - 95d0878f023c419d9ea5b5c6dc4eb2bfaf630d15 authored over 5 years ago
github.com/freerange/site - f012dc07c6aa93784acffcb514e4da3aeabd72f7 authored over 5 years ago
github.com/freerange/site - d3cf8e444a5246020264ee1a79e35862bd1a26ee authored over 5 years ago
github.com/freerange/mission-patch-game - 90d895dea0680521112b83e56c1fee58a45bc726 authored over 5 years ago
github.com/freerange/mission-patch-game - dc3f614efc5bb365c458aa720029a72e83fc734b authored over 5 years ago
Some post launch polish
github.com/freerange/mission-patch-game - 35e1643a830bc518fab53e19db6abf4526916512 authored over 5 years agogithub.com/freerange/mission-patch-game - 46fce2898270031cc1a69f150f10d387d99bdc0e authored over 5 years ago
github.com/freerange/mission-patch-game - f50f088da73eb8875f2bfc4b6495cbdfb21b25d0 authored over 5 years ago
github.com/freerange/mission-patch-game - 5943fecfc7768f0292396dd10b0b9aaef2f8765d authored over 5 years ago
github.com/freerange/mission-patch-game - bf2b2b37bd87e4a8d2c867d266968c2b9bed47fc authored over 5 years ago
Since the two aren't different from each other or from ModuleMethod
github.com/freerange/mocha - 6d9417e3fcfbed848b29a7fdd2a6af638983d19c authored over 5 years agoSince the two aren't any different from each other or from ClassMethod
github.com/freerange/mocha - 87ee1777dc174c7b1b548eebe58d30e62c81c3f4 authored over 5 years agogithub.com/freerange/mission-patch-game - 842df8f2cce93a65d177ee8399f81f93462d80a6 authored over 5 years ago
github.com/freerange/mission-patch-game - 9d694711f702145bd0977f4370d09368de25f4a6 authored over 5 years ago
github.com/freerange/mission-patch-game - b779c28a993d2f4021b852e8073ac13a87190bc2 authored over 5 years ago
These were updated when they were published in
fc4e8c6bf5e3dcc38f7b11b9d5e31d8e81efac36. I was c...
github.com/freerange/site - 7046443fd0d397044cfce66e21bcf01065d27ae0 authored over 5 years ago
Reduce duplication in AnyInstanceMethod class
github.com/freerange/mocha - 6f36b5b04c3101c77c84bcfc4bde9becff10a1c0 authored over 5 years agoThe following methods are overridden in AnyInstanceMethod:
* mock_owner
* original_method_body
...
Now there's only a single implementation and it's only a few lines long,
it makes more sense to ...
The implementation is now identical to that in ClassMethod and so we can
safely remove this and ...
It's simplier to obtain the mock underlying the stubbed method from the
instance of ClassMethod ...
The implementations of AnyInstanceMethod#mock & #reset_mocha are now identical
to those of Class...
Reduce duplication by extracting ClassMethod#mock_owner and
AnyInstanceMethod#mock_owner.
Co-au...
github.com/freerange/mocha - 033ee48faf8721228a7eabcf2d4b041fed8b0aaa authored over 5 years agoCo-authored-by: James Mead <[email protected]>
github.com/freerange/mocha - 6a16ccf02f0b538a461b44c61c1d6f89c7d471e7 authored over 5 years ago
Using define_method is safer than class_eval and it has the side effect
of making it easier to s...
This is now identical to ClassMethod#restore_original_method and so in
AnyInstanceMethod we can ...
This means that ClassMethod#restore_original_method and
AnyInstanceMethod#restore_original_metho...
Co-authored-by: James Mead <[email protected]>
github.com/freerange/mocha - 220c5d61ec3a59865fe66ccbf373b0311579e0bc authored over 5 years ago
This fixes a bug in AnyInstanceMethod where it would fail to restore the
visibility of a stubbed...
This also has the benefit of making
AnyInstanceMethod#restore_original_method more similar to
Cl...
This also has the benefit of making ClassMethod#restore_original_method
more similar to AnyInsta...
Accept symbol as mock/stub name
github.com/freerange/mocha - b97766000a176bd5c98f91ea1e709b49cab579ee authored over 5 years agogithub.com/freerange/mocha - 4e2f77598c37e2e439962d51954c7f703324a130 authored over 5 years ago
github.com/freerange/mocha - 7ed2e4e76f364be13f8d8b7fe618e569b3e98562 authored over 5 years ago
There's no need to run rubocop in so many of the CI matrix builds.
Running rubocop on Truffle Ru...
Release: https://www.jruby.org/2019/08/12/jruby-9-2-8-0.html
Note that there was a problem with...
github.com/freerange/mocha - aa29b3f169a9591e20aa60a39e8797d35713abb8 authored over 5 years ago
This is because minitest > v5.11.3 uses look-behind assertions in regular
expressions which are ...
Some small fixes
github.com/freerange/mission-patch-game - 771057e471688ef1f490401ed9c6567d1e6f678e authored over 5 years agogithub.com/freerange/mission-patch-game - 4c435f38712156153336528b1ef6b45ed94ae4ce authored over 5 years ago
github.com/freerange/mission-patch-game - 46c0fbb2c90106cefebceca8fa76f12419a47b89 authored over 5 years ago
This is the default, so no need to add it.
github.com/freerange/site - 0c5fe9d8af31e7543042bfb71c9f5440eb0b80ec authored over 5 years ago
This means we don't need to download and execute any Typekit JavaScript
and should improve page ...
We no longer have any JavaScript worth putting in the asset
pipeline-ified application.js, so I'...
As per https://trello.com/c/0wdDiRBZ.
We don't ask users permission to set a tracking cookie an...
github.com/freerange/site - 7ca0c80659666ba82a01030d8a05315dd627be54 authored over 5 years ago
This _should_ prevent the SIGTERM exceptions sent by Heroku to restart
dynos from being re-raise...
github.com/freerange/mission-patch-game - 324d38f56ef86769c338a5ef03cf9fa27cbc118e authored over 5 years ago
github.com/freerange/mission-patch-game - d7f091d8d850dec1fe8fe3397b70102cedcdd9ea authored over 5 years ago
Some Minor Changes
github.com/freerange/mission-patch-game - 76ae700292e5a0a330e1611f93c45608feba68c9 authored over 5 years agogithub.com/freerange/mission-patch-game - 82036b9d9eb977f779117d7c9268e08b77d8089f authored over 5 years ago
github.com/freerange/mission-patch-game - 5a37e6962618c01dd4f66da5686847dfd9a58e20 authored over 5 years ago
Formula was also added for indicator side padding
github.com/freerange/mission-patch-game - 580988b19a6eb4ed6573b2a6bfbab39065d3709a authored over 5 years agogithub.com/freerange/mission-patch-game - 8e66e66c6b80a66e13d66f8ca292c8c233917c1c authored over 5 years ago
github.com/freerange/mission-patch-game - 7446ef5bbefec6d2ba2c21a757d4def859049858 authored over 5 years ago
github.com/freerange/mission-patch-game - 83ed0e937e4eef260a1f8387780edaeeca9c57c0 authored over 5 years ago
Initial build ready for deployment
github.com/freerange/mission-patch-game - c4628c0b7e82ad59bd8ba2b1dc6fc19d4c1da56c authored over 5 years agogithub.com/freerange/mission-patch-game - e1fd3d188c641d4f4bae857e7007a821d0810ee1 authored over 5 years ago
github.com/freerange/mission-patch-game - 18719443d80f1545777a1e50db979609e740eb3a authored over 5 years ago
github.com/freerange/mission-patch-game - 60a14d9e42681f55882d4ffa9c78ae3fee7131d5 authored over 5 years ago
github.com/freerange/mission-patch-game - 65dbd40a686a3dd9bec0df920847a7645a0a6a38 authored over 5 years ago
It looks as if when you specify list-style-image, there is no need to
specify list-style as well...
We were only using it for a couple of minor things which didn't seem
worthwhile and have been re...