Replace embedded json gem with custom code #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #8, but may not be the best fix. I've tested this on a bunch of the built-in examples, and they run fine, both on my laptop (where current master strangely does work, even though it's Ruby 2.3) and on the DAS-5 cluster (where it didn't work, Ruby 2.0)
Maybe it would be better to rely on a system version of the json gem instead of this (not super-well tested, and probably broken on corner cases) custom code, but I'm not sure how widespread a built-in json gem is. At least on my Ubuntu laptop it seems to be there, and also on DAS-5. It could even be standard on ruby 2 for all I know. Should probably try to find that out.
So feel free to not merge, but I thought I should at least suggest one possible fix. (Also, I need to run MUSCLE on DAS-5 :)).