batter/s3_cors_fileupload — pull request #4 by mguterl (2014-04-15 19:25:55+00:00)
Title: Meaningful errors when config options are missing

I was receiving the following error when accessing /source_files and it took me a few minutes to realize I was missing some configuration options.

```
no implicit conversion of nil into String

s3_cors_fileupload (0.3.0) lib/s3_cors_fileupload/rails/policy_helper.rb:44:in `digest'
s3_cors_fileupload (0.3.0) lib/s3_cors_fileupload/rails/policy_helper.rb:44:in `upload_signature'
s3_cors_fileupload (0.3.0) lib/s3_cors_fileupload/rails/form_helper.rb:30:in `s3_cors_fileupload_form_tag'
app/views/s3_uploads/index.html.haml:5:in `_app_views_s__uploads_index_html_haml__634519600383552528_70251462003260'
```

This pull request does some assertions to ensure that the configuration options are set prior to calculating the upload signature. A better solution might validate this information when the yaml file is read, but it seems like that was a much larger change to put in place.