leafcutter 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/leafcutter.rb +1 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8a92c7d2bf14a3da4e7fb5e81b88dfdcb01af76
4
- data.tar.gz: 06d24317660b3245f04f08672672c9cdb171c519
3
+ metadata.gz: a5af7ce109b80f7a7ebf3ce18a09f0f9e02c0f67
4
+ data.tar.gz: bb94e14900cce2adbaf8ffd9f512885f632309eb
5
5
  SHA512:
6
- metadata.gz: 511a4587b8f872efe0978e37c737c8796118f727b9431de1033eef48a4a40fad343cf414fa6f9e6519f263f8cf0dfab4c22b34fdc5babbc6f124f584ee54320c
7
- data.tar.gz: 82a093973506f9ecded46a6acd2feddd90ab9b655c1536b07a121c380d85f21203c29d5eb94c74759d9b3ba66fca540e2d60dfdafd648f9fa8e77ec26c77860f
6
+ metadata.gz: fd31e204031d29d55d28e54dee9193986aeefd5efc069c34b8585beed19ac582cc66fad8c03b585f66dad4228726f49f54dc7721c8950c6d72fd85e5980246f0
7
+ data.tar.gz: 7c53dca0265d1f7015aaec90cad761a426ef759a467482cc9dff9cfbdf1bcf633806b2d028151f834d9f827e50e30d062b4ae1c45f2c214466f32c700f8c0de3
@@ -43,6 +43,7 @@ class Leafcutter
43
43
  end
44
44
  else
45
45
  if data.kind_of?(Array)
46
+ data.map!{ |d| d == '' ? nil : d }.compact! # Remove nils and empty strings
46
47
  if data.empty?
47
48
  status[:valid] = false
48
49
  status[:errors].push('empty_leaf')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leafcutter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Hastie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-15 00:00:00.000000000 Z
11
+ date: 2015-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json