Fix Rakefile to add __tag__: code for ~lambda test data #121
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.
Note: this PR is built on top of #119. Please just look at the 2nd commit, the first is from #119.
This was broken when Ruby switched YAML engines from Syck to Psych
around Ruby 1.9.3. Syck was removed completely around version 2.0.
The code didn't fail, because Psych also implements the add_builtin_type
routine, but it does not recognize
!code
as a builtin type (because itisn't; builtins look like
!!str
or!!map
).Instead, Psych requires a custom class to handle decoding the tagged
YAML item to Ruby.
And then, to get JSON to actually display the object, it is easiest to
just inherit from
Hash
.I am not a Ruby developer. I welcome any code changes that would improve this.