Validate format
Add more length check
Update gems
A pastebin with some features: create and destroy (with key) pastes. The one running on 0paste.com.
Requirements:
Optional:
Left as an exercise.
Pasting from CLI:
...some commands... | curl 'https://0paste.com/pastes.txt' -F 'paste[paste]=<-'
Or with gzip to save bandwidth:
...some commands... | gzip | curl 'https://0paste.com/pastes.txt' -F 'paste[paste_gzip]=<-'
Privately:
...some commands... | gzip | curl 'https://0paste.com/pastes.txt' -F 'paste[is_private]=1' -F 'paste[paste_gzip]=<-'
Current design is a bit crap. Suggestions and actual designs are welcome.