nebulous 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e14cebcccb8536b1147e799e622cc72775b44d2d
4
- data.tar.gz: 6d6344ce3cbc6c84e921226b1ef016c416a64c3e
3
+ metadata.gz: 3d178029d741448e75747602a1d1ae846c8d4dd6
4
+ data.tar.gz: ca2a9c8af4960dd3ab3cc3394fabe8e08993eede
5
5
  SHA512:
6
- metadata.gz: cd5bfc15767b1afb1e05fc21b01f0f4c3bfb66682141740cbfe58292a35602cb7edc5262edc02e4eaa518f4b8e8f501a3725ab5ffe12738ea169f40b4888461c
7
- data.tar.gz: 719ffb40dd1ab5bcc32c04d2c73c4a822ec9b8d7e92868e358fdabe6e25c948cb5b1663b4fcb36b32eaa352edf87c8ecd56f183322d9edadc13497e9a1fb12f1
6
+ metadata.gz: e689c9d3b236000d651f12a6ce37fb8680aac68ed599c4ff53e1d4eaa534d9b7e396b4caa98e34f187276837c9885111f4af3d755a10086eabb3264eb0f17b54
7
+ data.tar.gz: ba1941cd6c376dad8d67d4564f59c59db78573e18b0da13a0dd34f4179d6549e1281c06238ab62a3f3b8201ecadd8f27d24451461f0b60353bf30fb6dc563683
@@ -21,8 +21,7 @@ module Nebulous
21
21
  data = str.gsub(exp, "\0").split(/\0/)
22
22
  end
23
23
 
24
- data.map!(&:strip)
25
- new(data)
24
+ new data.map(&:to_s).map(&:strip)
26
25
  end
27
26
 
28
27
  def to_numeric
@@ -1,3 +1,3 @@
1
1
  module Nebulous
2
- VERSION = '0.0.6'.freeze
2
+ VERSION = '0.0.7'.freeze
3
3
  end
@@ -35,6 +35,13 @@ describe Nebulous::Row do
35
35
  end
36
36
  end
37
37
 
38
+ context 'with empty values' do
39
+ it 'returns expected parsed result' do
40
+ row = subject.parse ",Austin, Artisan ", options
41
+ expect(row).to eq ['', 'Austin', 'Artisan']
42
+ end
43
+ end
44
+
38
45
  context 'with malformed csv' do
39
46
  it 'returns expected parsed result' do
40
47
  row = subject.parse 'raw denim, Austin "TX, US", artisan', options
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nebulous
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Graves
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-19 00:00:00.000000000 Z
11
+ date: 2015-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocaine