karmi/tire — pull request #817 by hexgnu (2013-07-31 00:47:29+00:00)
Title: Fixing aliasing issue when index doesn't exist

What
====

The problem is if you use Tire.index('foobaz').aliases it causes an error instead of returning a blank array.

This aims to fix that by returning [] for anything that's not a 200 status code.

How to test
========

The spec should show you how to test the code but basically the use case is Tire.index('foobaz').aliases or Tire::Alias.all('foobaz') either gets the error