jstorimer/spin — pull request #57 by rustyio (2012-07-18 17:46:06+00:00)
Title: Fix cleaning of `files_to_load` array.

Once `files_to_load` was called with `map!`, the calls to `compact` and `uniq` no longer had any effect. This caused errors such as:

```
.../.gem/gems/spin-0.4.6/bin/spin:237:in `initialize': can't convert nil into String (TypeError)
from /Users/rusty/.gem/gems/spin-0.4.6/bin/spin:237:in `new'
from /Users/rusty/.gem/gems/spin-0.4.6/bin/spin:237:in `block in push'
from /Users/rusty/.gem/gems/spin-0.4.6/bin/spin:236:in `map!'
from /Users/rusty/.gem/gems/spin-0.4.6/bin/spin:236:in `push'
from /Users/rusty/.gem/gems/spin-0.4.6/bin/spin:302:in `'
from /Users/rusty/.gem/bin/spin:19:in `load'
from /Users/rusty/.gem/bin/spin:19:in `

'
```

Fixed by changing to `compact!` and `uniq!`.