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

add Response#pretty_print | Restore documented behavior #570

Merged
merged 1 commit into from
Feb 7, 2018

Conversation

skrobul
Copy link
Contributor

@skrobul skrobul commented Feb 5, 2018

As discussed in #567, the changes introduced 5a78a14 resulted in change of
behavior when viewing the Response objects using command line version of the
HTTParty or tools like pry.

This changs adds minimal version of the #pretty_print method that behaves the
same as code before, when response was inheriting from BasicObject rather than
Object. This is because PP::ObjectMixin applies to Object, but it not
BasicObject.

Following this commit, both CLI version of httparty and pry work correctly (as they did initially).

As discussed in jnunemaker#567, the changes introduced 5a78a14 resulted in change of
behavior when viewing the Response objects using command line version of the
HTTParty or tools like pry.

This commits adds minimal version of the #pretty_print method that behaves the
same as code before, when response was inheriting from BasicObject rather than
Object. This is because PP::ObjectMixin applies to Object, but it not
BasicObject.
Copy link
Owner

@jnunemaker jnunemaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me.

@jnunemaker jnunemaker merged commit af3b580 into jnunemaker:master Feb 7, 2018
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.

2 participants