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

Use MultiJson to encode schemas #56

Merged
merged 1 commit into from
Feb 11, 2021
Merged

Use MultiJson to encode schemas #56

merged 1 commit into from
Feb 11, 2021

Conversation

tjwp
Copy link
Collaborator

@tjwp tjwp commented Feb 11, 2021

Previous version of avro-builder rely on the json gem being loaded without explicitly requiring it. Behavior changed somewhere between ruby 2.6.2 and ruby 2.6.5 so that json is no longer loaded without an explicit require.

One option would be to require 'json' but the avro gem already depends on multi_json. Since multi_json is now referenced directly it is declared as a dependency here, but should also be present for any current users of the gem.

Using multi_json provides more flexibility for users of the gem, and makes the JSON encoding code here slightly cleaner.

Fixes #55

Copy link
Member

@jturkel jturkel left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @tjwp!

@jturkel
Copy link
Member

jturkel commented Feb 11, 2021

Looks like this project is still on Travis and having some build issues. I'll put up a PR shortly to migrate over to CircleCI.

@jturkel
Copy link
Member

jturkel commented Feb 11, 2021

See #57 for the CircleCI migration (and some dependency upgrades).

@tjwp
Copy link
Collaborator Author

tjwp commented Feb 11, 2021

Will rebase this once the CI migration has been merged.

@tjwp tjwp merged commit 9ca7e27 into master Feb 11, 2021
@tjwp tjwp deleted the tjwp-multi-json branch February 11, 2021 17:12
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.

Issue with Ruby 2.6.5
2 participants