holman/boom — pull request #60 by eugeneius (2012-01-08 20:30:22+00:00)
Title: Fix some edge cases with deleting items

Trying to delete an item from a nonexistent list causes an exception:

```bash
$ boom urls github https://github.com
Boom! Created a new list called urls.
Boom! github in urls is https://github.com. Got it.

$ boom urlz guthub delete
/var/lib/gems/1.9.1/gems/boom-0.2.3/lib/boom/command.rb:277:in `delete_item': undefined method `delete_item' for nil:NilClass (NoMethodError)
# snip stacktrace
```

Trying to delete an item from the wrong list gives a misleading message:

```bash
$ boom urls github https://github.com
Boom! Created a new list called urls.
Boom! github in urls is https://github.com. Got it.

$ boom urlz twitter https://twitter.com
Boom! Created a new list called urlz.
Boom! twitter in urlz is https://twitter.com. Got it.

$ boom urlz guthub delete
Boom! github in urlz is gone forever.
```

Deleting an item in a list with the same name doesn't work:

```bash
$ boom duck duck goose
Boom! Created a new list called duck.
Boom! duck in duck is goose. Got it.

$ boom duck duck delete
Boom! We just copied goose to your clipboard.
```