~singpolyma/dhall-ruby

ref: df3138fd2e83f0ba079b91fe923cdeab2c319281 dhall-ruby/lib/dhall.rb -rw-r--r-- 764 bytes
Update text-or-binary heuristic

The `cbor` gem is a bit janky and it turns out catching NoMemoryError is
not safe, so use an encoding-based heuristic to detect binary vs utf8
data.
Dhall::Coder

Full "to basic ruby types" deserializing, set up as a drop-in for
ActiveRecord::Base#serialize
to_s before load
Fail fast when encoding is bad
Add a Dhall.dump
Add as_dhall refinement
Pass all import tests
Allow imports to be either binary or source form
First pass at import resolution
Builtins are part of the standard set
Start to implement normalization rules
Decoding Dhall from binary works