Build Status Dependency Status Coverage Status Code Climate License

Uncle Clive

Sinclair Spectrum Stuff as a Service

v2.0.0

Introduction

You may see a more pointless Thing-as-a-Service today, but I hope not. Uncle Clive is a massively over-engineered solution to a problem that I'm almost 100% certain does not exist - rendering text in the 1982 Sinclair Spectrum character set

This has now been completely rewritten to make use of my new 1982 gem, and my Skellington Sinatra-app-generation tool

API

/font/:text

Will return content of the form :text, rendered in the 1982 Sinclair Spectrum character set.

Content negotiation

Uncle-Clive will respond to the following Accept values with appropriate content:

application/json example

Content will be returned as a JSON object

text/plain example

Content will be returned as plain text

text/html example

Content will be returned as an HTML page with a Twitter Bootstrap Jumbotron containing the data rendered as a table

image/svg+xml example

Content will be returned as an SVG image


/colours/:colour

Will return the hex value of the requested colour

/colours/:COLOUR

Will return the BRIGHT variant of the requested colour

Content negotiation

Uncle-Clive will respond to the following Accept values with appropriate content:

application/json example

Content will be returned as a JSON object (this is the default if no Accept header is sent)

text/plain example

The hex value will be returned as plain text


/messages/:key

Will return the Spectrum error message corresponding to :key

Content negotiation

Uncle-Clive will respond to the following Accept values with appropriate content:

application/json example

Content will be returned as a JSON object (this is the default if no Accept header is sent)

text/plain example

The error message will be returned as plain text


History

This is at least the third time I've implemented this or something like it:

  • PHP version, initially written in 2003, now lost to the mists of time
  • Python version from 2010