Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only dup InheritableValues, remove support for deep_dup #1048

Merged

Conversation

toddmazierski
Copy link
Contributor

Summary

To fix #891, settings managed with InheritableValues are now duped instead of deep_duped. This is a continuation of the change made in #1034 for StackableValues, and the same notes on impact and testing (ex. trying this out in real projects) likely apply!

Other Changes

Now that deep_dup is no longer used, support for it has been removed (lib/backports).

Related Issues

@dblock
Copy link
Member

dblock commented Jun 29, 2015

Thanks, can you please squash these commits?

Please also see ruby-grape#1034, where StackableValues are only dup'ed (not
deep_dup'ed).

Other changes:

* Add test to reproduce bug ruby-grape#891
* Remove support for deep_dup (no longer used)
* Add item to CHANGELOG
@toddmazierski toddmazierski force-pushed the only-dup-inheritable-values branch from e5cc168 to bdb334c Compare June 29, 2015 16:01
@toddmazierski
Copy link
Contributor Author

Thanks, can you please squash these commits?

Done (bdb334c)! The Travis build appears to be stuck, though.

dblock added a commit that referenced this pull request Jun 30, 2015
…lues

Only dup InheritableValues, remove support for deep_dup
@dblock dblock merged commit aa41c15 into ruby-grape:master Jun 30, 2015
@dblock
Copy link
Member

dblock commented Jun 30, 2015

Merged, thank you.

@toddmazierski
Copy link
Contributor Author

You're welcome. Thanks for your help, and all your hard work on Grape!

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

Successfully merging this pull request may close these issues.

Cloned InheritableSetting seems to clone unnecessary stuff
2 participants