Google docs onebox gem requires a "published" document

This is perfect, except for a minor quibble:

This works: https://docs.google.com/spreadsheets/d/gibberish/edit

But this doesn’t: https://docs.google.com/spreadsheets/d/gibberish

Both are valid URLs as far as Google Docs is concerned.