entityextractor 0.0.11 → 0.0.12

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/handleinput.rb +10 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d73c2f909fbe862625da5f0952032715d696de2
4
- data.tar.gz: c33ee22a6a5cbb3eb37f649c6db2df26df366c75
3
+ metadata.gz: 454aba3fc6e3822fa482e8c3afba8afa5aaeab98
4
+ data.tar.gz: 2a7a42ee08abd0ff52efb4d3b1c7f037f9def36a
5
5
  SHA512:
6
- metadata.gz: f98e67a81133a74c666d474b5d22bd0018e5d941ec7bc5f875a319ea1ee3677d93ff3917591f23fdbfdb0c0e2cc14c4f866c4b1289aa8a908acf83f6f8c07791
7
- data.tar.gz: a5a40b53bcb12550bf096cea1b4f72f63be2b254d079df89c322619041f67dfb51f3d9da9d479f422c058acbe4257e6b17dd1e8eb0834d08ba2874d4cf31c2bd
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|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: entityextractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - M. C. McGrath