Handle a single carelink basal rate better

@jebeck @jh-bate @kentquirk 

These are the changes to handle a single carelink schedule better.  I tested not only via the unit test, but by pulling the offending data down locally and running it.  It is working.
makes sense


On Fri, Jun 13, 2014 at 11:08 AM, cheddar <notifications@github.com> wrote:

> In lib/carelink/transformers.js:
>
> > -                                                     throw except.ISE(
> > -                                                       'Unknown deliveryType[%s], ts[%s]', e.deliveryType, e.deviceTime
> > -                                                     );
> > -                                                 }
> > -                                               }}));
> > +                                        .apply(generateBasals(
> > +                                                 {
> > +                                                   'basal': function(stored, e){
> > +                                                     switch(e.deliveryType) {
> > +                                                       case 'temp':
> > +                                                         return e;
> > +                                                       case 'temp-stop':
> > +                                                         return null;
> > +                                                       default:
> > +                                                         throw except.ISE(
> > +                                                           'Unknown deliveryType[%s], ts[%s]', e.deliveryType, e.deviceTime
>
> A number of things would be useful, but I've intentionally kept these
> messages a little cryptic in order to reduce the chances of leaking
> information. Getting the input data, looking up the timestamp and
> understanding the code combine together to allow for this to be a
> meaningful message, though not the friendliest.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/tidepool-org/in-d-gestion/pull/29/files#r13732082>.
>