leafcutter 0.0.3 → 0.0.5

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 +5 -5
  2. data/lib/leafcutter.rb +1 -0
  3. metadata +11 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e8a92c7d2bf14a3da4e7fb5e81b88dfdcb01af76
4
- data.tar.gz: 06d24317660b3245f04f08672672c9cdb171c519
2
+ SHA256:
3
+ metadata.gz: b8c501111868dcb0a5ad3ab6ae133cff3c0eb5affa4fc89b16ca21b2f100d769
4
+ data.tar.gz: 65e63cf1bfa515eb6e41dad9d5035d12b2632dc822aa102596ea7dd08db8770f
5
5
  SHA512:
6
- metadata.gz: 511a4587b8f872efe0978e37c737c8796118f727b9431de1033eef48a4a40fad343cf414fa6f9e6519f263f8cf0dfab4c22b34fdc5babbc6f124f584ee54320c
7
- data.tar.gz: 82a093973506f9ecded46a6acd2feddd90ab9b655c1536b07a121c380d85f21203c29d5eb94c74759d9b3ba66fca540e2d60dfdafd648f9fa8e77ec26c77860f
6
+ metadata.gz: 01515df92eb001d14179dca4e186fb6cb4c5645b05cfc880caba0f3338336f7020e3713a50c8609d4ccf1280818546324fc8f984f8bf02b78e588a32f93c0a38
7
+ data.tar.gz: 6ed88eb223a1bfbc1da406e201e48757bd5b8762bd561d6220417a9a330eeec475f24b6fcad56dc8ffcf73a2b1e0793c2ac9b0a08b9109fe72d503eca5c6ec79
data/lib/leafcutter.rb CHANGED
@@ -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.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Hastie
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-15 00:00:00.000000000 Z
11
+ date: 2023-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -16,29 +16,29 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.8'
19
+ version: '2.6'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.8'
26
+ version: '2.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '3.2'
33
+ version: '3.12'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '3.2'
41
- description:
40
+ version: '3.12'
41
+ description:
42
42
  email: pete@sillypog.com
43
43
  executables: []
44
44
  extensions: []
@@ -49,7 +49,7 @@ homepage: https://github.com/sillypog/leafcutter
49
49
  licenses:
50
50
  - MIT
51
51
  metadata: {}
52
- post_install_message:
52
+ post_install_message:
53
53
  rdoc_options: []
54
54
  require_paths:
55
55
  - lib
@@ -64,9 +64,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  requirements: []
67
- rubyforge_project:
68
- rubygems_version: 2.2.2
69
- signing_key:
67
+ rubygems_version: 3.4.6
68
+ signing_key:
70
69
  specification_version: 4
71
70
  summary: Find leaves in tree-like json structures
72
71
  test_files: []