data_collector 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/data_collector/rules_ng.rb +2 -2
- data/lib/data_collector/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdf84dae174fe7fec5ada7fc4489e6f5d9e9e4c12127355a9e30324ad1838b3e
|
4
|
+
data.tar.gz: 3d7a0346f10f8afe251e72ef07d58ef8c1d1cb2457d10709c839fb3acd28db7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 133554f139cb5878be23ae64a3aea2d856675e28b27309a423c98f54691e048053d60d89f0ccaf611eefc6b7413eae42f5026d5d485fa310ac83084ff5e44bc5
|
7
|
+
data.tar.gz: 8de22019b159115fdaa1563bd143787a274de4572269e0285da0ed79a39e4ffad63ebc238777ad479f26537354e246eb885b7bff71a9303393ac376c508eccfb
|
@@ -105,12 +105,12 @@ module DataCollector
|
|
105
105
|
output_data
|
106
106
|
end
|
107
107
|
|
108
|
-
def json_path_filter(
|
108
|
+
def json_path_filter(filter_str, input_data)
|
109
109
|
data = nil
|
110
110
|
return data if input_data.nil? || input_data.empty?
|
111
111
|
return input_data if input_data.is_a?(String)
|
112
112
|
|
113
|
-
DataCollector::Core.filter(input_data,
|
113
|
+
DataCollector::Core.filter(input_data, filter_str)
|
114
114
|
end
|
115
115
|
end
|
116
116
|
end
|