entityextractor 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/handleinput.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 454aba3fc6e3822fa482e8c3afba8afa5aaeab98
|
4
|
+
data.tar.gz: 2a7a42ee08abd0ff52efb4d3b1c7f037f9def36a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32185ba393d10eef5cf59c747379ad1f8d57d57af8c456b2cc996c4e531693354c2d7cf0a3772386779ea64dff95c94a8ffd912f83af6a05d85a1e962efdbfb6
|
7
|
+
data.tar.gz: 1da6f961155b3d139ee106446194a0b47ae1145c0741389b87f1e625a968d7609027dd67ad546aec03087c223759fa0a5e599dbac3ad88b6f099fc10c80d6927
|
data/lib/handleinput.rb
CHANGED
@@ -41,6 +41,16 @@ class HandleInput
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
44
|
+
elsif mapto == "value"
|
45
|
+
@json.each do |k, v|
|
46
|
+
if !v.is_a? Hash
|
47
|
+
if !outarr.include? v
|
48
|
+
if k == a || v == a
|
49
|
+
outarr.push(v)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
44
54
|
else
|
45
55
|
@json.each do |k, v|
|
46
56
|
v.each do |z, w|
|