Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Remove proc_to_lambda. #85

Merged
merged 1 commit into from
Jun 21, 2014
Merged

Remove proc_to_lambda. #85

merged 1 commit into from
Jun 21, 2014

Conversation

myronmarston
Copy link
Member

There's a very odd ruby bug that makes this unsafe to use, as its
usage mutates the behavior of the block:

https://bugs.ruby-lang.org/issues/9967

Unfortunately, this un-fixes rspec/rspec-mocks#714, but we've got to do it.

There's a very odd ruby bug that makes this unsafe to use, as its
usage mutates the behavior of the block:

https://bugs.ruby-lang.org/issues/9967

Unfortunately, this un-fixes rspec/rspec-mocks#714, but we've got to do it.
@myronmarston
Copy link
Member Author

This is failing an rspec-mocks spec that depends upon the old behavior. The spec is made pending in rspec/rspec-mocks#721(which is green against this branch). There's a chicken-and-egg problem here so I'd like to go ahead and merge this branch even though it's red.

Can someone review this? I'd like to get rspec-support 3.0.2 out ASAP with this since 3.0.1 had a regression here.

@myronmarston
Copy link
Member Author

@JonRowe
Copy link
Member

JonRowe commented Jun 21, 2014

Can we not dup the block to avoid the mutation?

@myronmarston
Copy link
Member Author

I tried both dup and clone, and the bug remains.

JonRowe added a commit that referenced this pull request Jun 21, 2014
@JonRowe JonRowe merged commit 97b4556 into master Jun 21, 2014
@JonRowe JonRowe deleted the remove-proc-to-lambda branch June 21, 2014 00:50
@JonRowe
Copy link
Member

JonRowe commented Jun 21, 2014

Merging despite build failure after verifying this is a reversal of #83 and #84.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants