codahale/dropwizard — pull request #135 by ajordens (2012-07-11 06:09:49+00:00)
Title: dropwizard-example w/ AssetBundle did not work out of the box

Steps to reproduce:

* start dropwizard-example
* localhost:8080/assets/example.txt
* get a 404 instead of a 200

Debugging into AssetLoader:

```
final String requestedResourcePath = key.substring(uriPath.length() + 1);
```

Unfortunately, uriPath has a trailing slash explicitly tacked onto it (see AssetsBundle.java) and this substring is clobbering the initial character.

ie) example.txt -> xample.txt, resulting in the 404.

The supplied patch will strip off any trailing slash in the AssetLoader.

The AssetServletTest's were also updated so that they have the same path configuration as if they were launched via the AssetsBundle.