core-wg / href

Other
2 stars 0 forks source link

Make tests available as JSON and as CSV (RFC 4180) #79

Open cabo opened 10 months ago

cabo commented 10 months ago

Makefile assumes that editing happens in CSV make new-tests.csv can be called manually after an edit to the JSON

chrysn commented 10 months ago

Running make gives me

ruby csv-to-json.rb tests.csv | diff tests.json -
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- cbor-cri (LoadError)
        from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from csv-to-json.rb:1:in `<main>'

I suppose there is something I should gem install here?

cabo commented 10 months ago

gem install cbor-diag

Or now just:

bundle

chrysn commented 3 months ago

Building still fails for me, but this time it seems to be other dependencies -- I'll focus on the CSV in further testing, and ignore the build process.

chrysn commented 3 months ago

Next step: cabo will push an update where everything is in its current shape. CSV will be the source of truth, JSON will stay provided for those who can't process CSV easily.