Bump cosm-rb version
Merge pull request #17 from levent/master

Bump cosm-rb version
Refactor from_xml

* Use MultiXml and prefer ox
* DRY xml parser logic
* Stop parsing magical updated fields in v1 xml
Merge pull request #18 from levent/multi_xml

Refactor from_xml
Differentiate between nil and blank elements
Raise errors with messages
Better error handling
Edge case: units with no label but other fields
Be more specific with gem version
Merge pull request #19 from levent/multi_xml

Differentiate between nil and blank elements
Bump version to 0.2.00
Add multi-value csv parsing to feeds/datastreams.

Update feed csv parser so that it can parse the csv we publish.

Previously the parser would refuse to parse historical CSV (i.e. with
multiple values with timestamps). This meant that users couldn't upload
data in this format. This felt a bit weird to me, and also was requested
by dytecna. So once this is deployed we should be able to accept
historical type CSV as input.

If multi value CSV is uploaded we don't set the updated or current value
on the Datastream object, instead the values get pushed into the
datapoints array ('at' and 'value').

Enable passing api version through to Datastream objects.

Added spec to verify the multiline parsing.

Raises exception if multilines passed as v1 or if we have multilines
without a timestamp and value (although in cosm-rb we don't check the
timestamp actually is a valid timestamp anywhere, we are just looking
for two values per line).

Added basic spec to test the multiline feed level csv parsing.

Fix csv parsing bug in feed parser

Were calling strip on something that might be nil. Also made sure to
strip multiline values/timestamps, and added some more specs around this
behaviour.

Couple of CSV datastream parsing bugs.

Should have raised exception if row size > 1 for :v1. Added specs to
make sure values are stripped and can be nil.

Bug in XML parser when capturing datapoints.

The previous code didn't capture all datapoints properly when passed in
XML. This applied to both Feed and Datastream xml.

Datastream xml parsing tweaks.

Raise exceptions if passed xml with too few or too many data elements.
Remove unncessary class variables from tests.

Raise exception is passed old xml with wrong number of datastreams.

When constructing a datastream object, must have exactly one datastream.

Sort v2 csv datastreams when parsing.

Make v2 datastream csv the default.

Tweaked spec to make sure we have 100% coverage

Exclude vendor/bundle directory from simplecov coverage.

Patch to try to ensure that we retain ordering of v2 csv datastreams.

As v2 csv parsing now passes through a bucketing stage to capture
multiple history datapoints in a single pass, we need to take a bit of
care to try and preserve the ordering of the datastreams in the update.
Technically this is a bit unneccessary but we have a bunch of brittle
tests that will break without this tweak.

Fix specs by extra xml parsing rigour.

* Raise exceptions for XML that doesn't make sense (i.e. has multiple
  datastreams for datastream/datapoint xml
* Adjust the datapoint parser so it copes with batches of data better.
Bump cosm-rb version to 0.2.01
Merge pull request #20 from smulube/feature/multiline_csv

Feature/multiline csv (plus a little bit of xml fixin)