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

Remove parsing from db responses #140

Open
wants to merge 3 commits into
base: 2.0
Choose a base branch
from
Open

Conversation

javierg
Copy link
Member

@javierg javierg commented Aug 17, 2018

This is the first PR to make Dolly compatible with 2.0
And actually this is the minimal to make it work.
This is fixing the crash due to fix on httparty response handle of couchdb 2.0 requests which now inckude proper headers to accept them as json.

@@ -4,7 +4,7 @@ class Property
attr_accessor :name
attr_reader :class_name, :default

CANT_CLONE = [NilClass, TrueClass, FalseClass, Fixnum].freeze
CANT_CLONE = [NilClass, TrueClass, FalseClass, Integer].freeze

Choose a reason for hiding this comment

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

I think this, in order to be useful in a lot of places, should be determined based on the version of ruby (as I think that is the change in this no?)

Copy link
Member Author

Choose a reason for hiding this comment

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

mmh, right, this is not related to the ruby version
will remove the change as it is not related to the errors associated to httparty parsed response

Choose a reason for hiding this comment

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

👍 ya i think a PR for that on its own makes sense. I could see a singleton of a DelegateClass Array here as a feasible way to handle that

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