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

Fix Style/Encoding violations using auto-correct

a654d5657dfe703c4ac556ae7aed603a3bdc444e authored over 6 years ago
Tidy up MockTest::OBJECT_METHODS

aef1719f5d5e98e653fd083a5f178433c6e7f707 authored over 6 years ago
Fix Style/DefWithParentheses violations using auto-correct

dcc7ac8050c1bd43319668a7fb15733046fdafe5 authored over 6 years ago
Fix Style/EmptyMethod violations using auto-correct

fda0c4ed6634ace977c52a59b4ecab6b4fbbc81f authored over 6 years ago
Disable Style/EachWithObject cop for all files

I don't want to jeopardise support for older versions of Ruby.

d3688dd8967f5b9a65eefcbb8a40bf105feb9aa8 authored over 6 years ago
Fix Style/Alias violations by changing EnforcedStyle

Even the reference in the documentation [1] suggests that you should
prefer alias_method vs alia...

b486e9dfcaec207460284fa9be97e595d28f4d38 authored over 6 years ago
Fix Security/YAMLLoad violations using auto-correct

I disabled the cop for the YamlEquivalent matcher, because it's possible
that classes not allowe...

d5f1f07781c5dfa4646a3c558b9aaf1e17444206 authored over 6 years ago
Disable Security/Eval cop for specific lines

Since eval is only used in a test, I'm happy to disable the cop in this
case.

7f0ad95d3e90dbbe1106f200b6b66227484ce17d authored over 6 years ago
Disable Performance/RegexpMatch for all files

Regexp#match? has only been available since Ruby v2.4 and I don't want
to jeopardise support for...

f497034b7e246086a23829d72e064e4d6d1a145e authored over 6 years ago
Fix Performance/RedundantBlockCall violations manually

11f68fa61b40f2d531f97e19e58b5204829fd33d authored over 6 years ago
Fix Naming/VariableNumber violations manually

92378acb1d2b9c099f722994355aa1bbdd4c03a0 authored over 6 years ago
Fix Naming/UncommunicativeMethodParamName violations manually

211cd7eaf019febc05834100059b34a0a924b466 authored over 6 years ago
Disable Naming/PredicateName cop for specific lines

514c88cd335edac1689bfe26be9c28797d789148 authored over 6 years ago
Disable Naming/MethodName cop for specific lines

303c468eec997ff35eed87820f80958648f2427b authored over 6 years ago
Fix Naming/BinaryOperatorParameterName violations manually

bb0db3a2ddfa91966efd39462054ba5ac0d3486b authored over 6 years ago
Fix Lint/UselessAssignment violations manually

5f2e3d05e706e9406a2cb0701b2ef228d8dd9f03 authored over 6 years ago
Fix Lint/UnusedMethodArgument violations using auto-correct

df7b39f574dc61e8ee44fc289698cad96da37a79 authored over 6 years ago
Fix Lint/UnusedBlockArgument violations using auto-correct

d221a47265ffab4a3da8248d9e30fa0f5c7b7b92 authored over 6 years ago
Disable Lint/RescueException cop for specific lines

I've disabled the cop around monkey-patching code, because the whole
point is that this is copy-...

eff6ba8d16ef1ed82df72184ce324600e001bda8 authored over 6 years ago
Disable Lint/InheritException cop for specific lines

0a2e620e21b896a5ace7e1e068a93ee92d8d085a authored over 6 years ago
Disable Lint/HandleExceptions cop for specific lines

ea579c508de1965739062fa382e809292f438cf7 authored over 6 years ago
Fix Lint/EmptyEnsure violations manually

I've disabled the cop around monkey-patching code, because the whole
point is that this is copy-...

47a3a313555cea6e45b652ea269dcb6109fc2644 authored over 6 years ago
Fix Lint/AssignmentInCondition violations manually

098069c32d3c784bdb260aa3de870dcf1e222f92 authored over 6 years ago
Fix Lint/AmbiguousBlockAssociation violations manually

87cfcbeacd69ffe278d8d63b4ebd51cd83aa21d3 authored over 6 years ago
Fix one Layout/AccessModifierIndentation violation using auto-correct

The other violations result in a "Infinite loop detected" when running
rubocop, so I'm going to ...

246ef9965cb7b479989c6e655d6e27cf828ad02c authored over 6 years ago
Fix Layout/TrailingBlankLines violations using auto-correct

5913ff58493d77fdfddd9d4f97df8d93faa6f4b5 authored over 6 years ago
Fix Layout/SpaceInsideStringInterpolation violations using auto-correct

b6301c553a2781b0abf38141bbb9c8ca19d08772 authored over 6 years ago
Fix Layout/SpaceInsidePercentLiteralDelimiters violations using auto-correct

I've disable the cop around monkey-patching code, because the whole
point is that this is copy-p...

925b7952a64857b2f9b0f7358400546605591186 authored over 6 years ago
Fix Layout/SpaceInsideParens violations using auto-correct

9df7178b54749f4d0276eae0377fa27c39217dec authored over 6 years ago
Fix Layout/SpaceInsideHashLiteralBraces violations using auto-correct

25e0b0e7b37795aa13c0eafd8a0f61a0e4d25f81 authored over 6 years ago
Fix Layout/SpaceInsideBlockBraces violations using auto-correct

0d0746be4cfb1f83ea852fa03038ade80a9ab875 authored over 6 years ago
Fix Layout/SpaceInsideArrayLiteralBrackets violations using auto-correct

5fec046fccc030b78970cfa95e9eed4d9168d8c7 authored over 6 years ago
Fix Layout/SpaceBeforeSemicolon violations using auto-correct

e5f1e62912ec6d063526b16b0d459407bc54813f authored over 6 years ago
Fix Layout/SpaceBeforeBlockBraces violations using auto-correct

38570b005c42575f2d3166953e126de81ff17365 authored over 6 years ago
Fix Layout/MultilineOperationIndentation violations using auto-correct

e88708ac79cc23ea59c05c4f34227dc5c0babcf2 authored over 6 years ago
Fix Layout/IndentationWidth violations using auto-correct

0875ff55e25c158765283cb49df6577a697ec20f authored over 6 years ago
Fix Layout/IndentationConsistency violations using auto-correct

bfc39c13d6d40b61f1307a4afdccfb6824120b30 authored over 6 years ago
Fix Layout/IndentArray violations using auto-correct

e3aff5d1b4dd8b424a55937ca618e641847fd946 authored over 6 years ago
Fix Layout/EndAlignment violation

Note that auto-correct didn't work, so I fixed this manually.

9994f565c262ef3bc936cfaaed2eb6c7fc21a430 authored over 6 years ago
Fix Layout/EmptyLinesAroundModuleBody violations using auto-correct

e1be3a4311358eaef1b7ae5ea80286cf56772d9a authored over 6 years ago
Fix Layout/EmptyLinesAroundMethodBody violations using auto-correct

5d07de3888f5b0f11d9907c4d14323fa32d3b237 authored over 6 years ago
Fix Layout/EmptyLinesAroundClassBody violations using auto-correct

781d2beab5d053c704af74ebd230570815c7d114 authored over 6 years ago
Fix Layout/EmptyLinesAroundBlockBody violations using auto-correct

99ed32c18d104a9d51c1c78e2a857ef029e0a1f0 authored over 6 years ago
Fix Layout/EmptyLinesAroundAccessModifier violations using auto-correct

6ffd3e0bc3a7e9ebacc868c032b9242ca77f50da authored over 6 years ago
Fix Layout/EmptyLines violations using auto-correct

52c54b7b7eb69be18c3e9a525b313441b2aa2759 authored over 6 years ago
Fix Layout/EmptyLineBetweenDefs violations using auto-correct

56c146b58204a741706ae1ad3f442b02adcc831e authored over 6 years ago
Fix Layout/EmptyLineAfterMagicComment violation using auto-correct

a13a1d80ccc932551c63a0bdc30613ff5c26aacd authored over 6 years ago
Fix Layout/CaseIndentation violations using auto-correct

e5a24ede065ccc6f43b6a2a7ef21c9776db60d63 authored over 6 years ago
Fix Layout/AlignArray violations using auto-correct

I've disable the cop around monkey-patching code, because the whole
point is that this is copy-p...

ddb973f0dfe4dadef2fca9b84efd499426b08d75 authored over 6 years ago
Fix Gemspec/OrderedDependencies violations using auto-correct

46c4e07c4248f5f202785e3d462b266128c65afb authored over 6 years ago
Exclude files with rubocop violations

For some reason the following violations were not automatically excluded
by the automatically ge...

3982c4c41857170d938ce6e841b03930c1654ca3 authored over 6 years ago
Generate rubocop todo list

I did this by running the following command:

rubocop --auto-gen-config

760605ca34eedcb92a9b8ab738e443114f560aa6 authored over 6 years ago
Add rubocop as development dependency

acda421f05a5b1c05cdaaf83fdb5cdce2cc6ecc9 authored over 6 years ago
Merge branch 'simplify-gemspec'

63744f8691e705f14939474560b63392333a2c6c authored over 6 years ago
Simplify implementation of add_development_dependency in gemspec

Given that the add_development_dependency method seems to have been a
method on Gem::Specificati...

cffb3545812f673873b1afbfec5547cfd0ed88d9 authored over 6 years ago
Remove redundant argument from call to add_development_dependency

The ">= 0" is the default constraint and I think it makes the code more
readable to omit it.

f439d50c0030eb6b10aadec0bc15152aaf4140c7 authored over 6 years ago
Fix gemspec for Rubygems < v1.3.2

The Gem::VERSION constant was only introduced in Rubygems v1.3.2 [1].
Prior to this, the version...

6fef074dd6097d330b4ad67ad3a39dc6f5ac11ca authored over 6 years ago
Remove rubyforge_project setting from gemspec

The Rubyforge website no longer exists, nor have any redirects been
setup, despite multiple requ...

88e664c9dfc00fb5cb048d516ff983e6c6bbb934 authored over 6 years ago
Remove pointless required_rubygems_version

Given that *any* version of Rubygems will satisfy the ">= 0"
requirement, this line seems redund...

64adb554c43318408f31a95a334d02ca7ddbbeb1 authored over 6 years ago
Add explanatory comments to gemspec

While this information is available in the following commits, this saves
us repeating the same g...

7bc5755df08f06ffdc5e19f84767c4b1d4afae0a authored over 6 years ago
DRY up development dependencies in gemspec

de0a2ecc816c85fccc52419a7c2f89cf3b923fca authored over 6 years ago
Remove superfluous then keyword

I think this is more idiomatic Ruby.

b7b702bf40cda353a006add26242ea7c751e3271 authored over 6 years ago
Remove setting of gemspec version

The current specification_version is 4. The only change from version 3
to version 4 appears to b...

d09d761a98321c6eee203e4d61f847ac7fa134d1 authored over 6 years ago
Use add_dependency when add_development_dependency not available

Looking back through the gemspec history it looks as if this was the
intention of these conditio...

8e962664f3b1d92c11792672ca17c8da539236fa authored over 6 years ago
Remove unused local variable from gemspec

I can't see that this has ever been used.

f1161dd1c07b5030dbe244e415eb594376b692a1 authored over 6 years ago
Revert change to Travis config for Ruby v2.1.x

It turns out that Travis CI doesn't support Ruby v2.1.11

3883af7ee10a8b33a87ffd3039079052158dc7d0 authored over 6 years ago
Update Ruby & JRuby versions in Travis config

9bf556313387aca71ded0291b723168d359a5f0c authored over 6 years ago
Prepare to release v1.6.0

dd6ffc543b1788fce8df5b6b5775160ca6d7ad78 authored over 6 years ago
Update release notes for v1.6.0

52871132c5c464e52352fe387166a59f9439c7a5 authored over 6 years ago
Improve documentation for Configuration

The content was mostly stolen from this blog post [1].

Closes #236.

[1]: http://jamesmead.org/...

6c22196776477f19f6bf4177d13b81ff6b92bceb authored over 6 years ago
Merge pull request #335 from greysteil/badges

Change gem version badge to svg and add SemVer stability badge

dc5c3cc5d411cbc7ca085e1c2ab4fdd1c437851f authored over 6 years ago
Add SemVer stability bdage

54d803512e188b6009b87c2022a9f71484b78867 authored over 6 years ago
Use svg for version badge

9b95fd299a1fc74e6eea13dc26b25bd82ce4fee2 authored over 6 years ago
Revert "Added backers and sponsors from OpenCollective"

This reverts commit 7a1a58d9b8760987f488e6404609e931e060f009.

We haven't got any backers or spo...

a283a0796759a48e345f8efc450af89157c2ab6a authored over 6 years ago
Merge pull request #331 from freerange/avoid-mocks-for-partial-mocking-leaking-into-subsequent-tests

Avoid mocks for partial mocking leaking into subsequent tests

183fefc8723959d952210808863618a840fb2edc authored almost 7 years ago
Avoid mocks for partial mocking leaking into subsequent tests

Previously ObjectMethods#mocha & ClassMethods::AnyInstance#mocha were
building mock objects for ...

953cebca98c9ed1746cc47d2dbf77bb27345de4e authored almost 7 years ago
Merge pull request #295 from freerange/remove-module-method-exists

Remove `ModuleMethod#method_exists?`

82c9e562245f96d584d665f533045220aaaec7d4 authored almost 7 years ago
Remove `ModuleMethod#method_exists?`

This is similar to the change in commit
8f58eddf0ff658ad255cf60cedab3c767bbb15c7.

Commit e87c03...

fe1d49d124ac4af15e5f4fa0670f0f43be1fed4d authored almost 7 years ago
Prepare to release v1.5.0

12d9ce7eb61339d3acaf4e3896e84d706f539f81 authored almost 7 years ago
Update release notes

44a37b9987dbaf8d6b766c067924b19634c27f1a authored almost 7 years ago
Merge pull request #327 from freerange/prevent-use-of-mocha-outside-test

Prevent use of Mocha outside the context of a test/example

d6c6c820ac218b6f5ad8684a58d0a83b02040386 authored almost 7 years ago
Inline Mockery.reset_instance into Mockery.teardown

89eeb1c1373cf32f038bc74f51500a0d5c4a2f11 authored almost 7 years ago
Extract ErrorWithFilteredBacktrace to reduce duplication

b57c38682538b5dbd4b2808e930153c02d0fcbcd authored almost 7 years ago
Raise NotInitializedError if Mocha used outside context of a test

Hopefully this addresses #292.

If no Mockery has been instantiated when a call is made to any m...

5bda7c4561ef4917eb5df3f5dc39bbc86bb113a2 authored almost 7 years ago
Remove unnecessary restoration of Mockery.logger in acceptance tests

Now that the Mockery instance is being explicitly instantiated and
destroyed, I think this resto...

8ea0c63e95eaf75405149ac17fad575f7c9618df authored almost 7 years ago
Explicitly instantiate Mockery from Hooks#mocha_setup

Previously the Mockery singleton instance was lazily instantiated the
first time it was needed. ...

03b20538bf121ed3102e90d8e063d6c35a9d4b6b authored almost 7 years ago
Call Mocha::Hooks#mocha_setup from legacy integration modules

Both Mocha::Integration::MiniTest::Adapter and
Mocha::Integration::TestUnit::Adapter were alread...

9c449d7a58923e52c835533fbf244cf2eb474971 authored almost 7 years ago
Prepare to release v1.4.0

This is a minor release, not just a patch release, because it introduces
at least one new deprec...

c0f7b9d57d63733d9cf4b9caf5fc9edfc6f65518 authored almost 7 years ago
Update release notes

602fa7b24cf735b83677b8999f68db941f68df71 authored almost 7 years ago
Merge pull request #323 from tjvc/fix-delegation-warnings

Define respond_to_missing? on Mocha::Mock

983545462ef07bfbb4af0643c1531bcd85550208 authored almost 7 years ago
Define respond_to_missing? on Mocha::Mock

Fixes #321.

As of Ruby 2.4, Forwardable warns when delegating to a private method.
Warnings are...

befb416021b08d663b78024e6537680d93c64ac3 authored almost 7 years ago
Merge pull request #322 from freerange/rename-mini-test-to-minitest

Rename mocha/mini_test.rb to mocha/minitest.rb

76aad9c2a9620afd0925dba381a12a3b3658745b authored almost 7 years ago
Rename mocha/mini_test.rb to mocha/minitest.rb

* Deprecate requiring 'mocha/mini_test'
* Update documentation in README

55d66ed4f5e6cad95e1605341ec3c608be2c6833 authored almost 7 years ago
Add jruby-head to Travis CI build matrix

As suggested in #289.

0426e5ec119bc6a6c0ab256c2b3a8273d798a6c0 authored about 7 years ago
Merge pull request #313 from freerange/display-file-and-line-number-in-deprecation-warning

Display file and line number in deprecation warning

582ec7eb153e2dd2e6f742744be8b10d69b74abc authored about 7 years ago
Make deprecation warnings less needy

The newlines before and after each deprecation warning and
the multiple leading asterisks make t...

302b2c321e5b537bb33b7ccbccb4d12e1950e6d5 authored about 7 years ago
Convert single line conditionals into multiple lines

ef24a3e78614e8873d0a0b1b18fa05b08bdfa6e0 authored about 7 years ago
Include file & line number in deprecation warnings by default

Fixes #312.

I've also removed the code which displayed the backtrace for
deprecation warnings i...

b91f26fd31a73f275e90841239f9006e400538ea authored about 7 years ago
Remove debug mode for Mocha::Deprecation

This is now redundant.

6e404877c1607e95a4a1c666ae88cdee8a19f4d6 authored about 7 years ago
Use latest JRuby release in Travis CI build matrix

JRuby 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