Post

Just dropped a new hyper-specific Ruby gem! A fully spec-compliant JSON-RPC 2.0 handler: github.com/Shopify/json... 100% branch coverage attained by interspersing the raw text of the spec with tests! Check the tests to see what I mean :)

github.comGitHub - Shopify/json-rpc-handler: A lightweight, fully spec-compliant handler for JSON-RPC 2.0 requestsA lightweight, fully spec-compliant handler for JSON-RPC 2.0 requests - Shopify/json-rpc-handler

1 repost7 likes

Something of note is: The SSE spec flows like how you could program against it. The JSON-RPC spec is a bit disorganized and doesn't flow like code. So I had to make my tests match its flow instead. (Links to both specs are in the corresponding repos.)