csv-probe 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/csv/probe/checks.rb +3 -1
- data/lib/csv/probe/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: 945175b169f28d0b77504d23cf6020d5216e66f74e8e5a8b04ef0279f681fd8c
|
4
|
+
data.tar.gz: a91cb9d894402b70ebfb72a342f4166a94bda0b3c6f1ba361920d0caa6b3c0c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d09e366f9e7b4692dbfb1f8389667952f5e3a913901600d77d9954a9b5685650d81b6b9bba701cfa2925c47cefb0aca2e4b4bd5d48a3547b7cd2c775e512e01
|
7
|
+
data.tar.gz: a076a71e6679f69848b7c30117a100986e3857eb41a3ad2bed50c0a6b320add76caf6668ae8790dce9804c82e2f7dcc5b0e0e8675972c8f81a594bc163501f73
|
data/CHANGELOG.md
CHANGED
data/lib/csv/probe/checks.rb
CHANGED
@@ -186,6 +186,7 @@ module Probe
|
|
186
186
|
end
|
187
187
|
end
|
188
188
|
|
189
|
+
# rubocop:disable Metrics/AbcSize
|
189
190
|
# Check if a tokenized column value is a list of given values
|
190
191
|
class ColumnIsListWithDomain < ColumnMeetsCondition
|
191
192
|
def initialize(varname, expected_items_arr, separator, _placeholder = nil) # rubocop:disable Metrics/MethodLength
|
@@ -214,7 +215,7 @@ module Probe
|
|
214
215
|
def initialize(varname, separator, _placeholder = nil) # rubocop:disable Metrics/MethodLength
|
215
216
|
super(varname, nil, nil)
|
216
217
|
@ok_condition_fn = lambda { |val, _cfg|
|
217
|
-
return true if val.to_s ==
|
218
|
+
return true if val.to_s == ""
|
218
219
|
|
219
220
|
items = val.to_s.split(separator, -1)
|
220
221
|
all_uniq = (items.size == items.uniq.size)
|
@@ -254,6 +255,7 @@ module Probe
|
|
254
255
|
# are uniqe and a subset of #{expected_items_arr.inspect}" }
|
255
256
|
end
|
256
257
|
end
|
258
|
+
# rubocop:enable Metrics/AbcSize
|
257
259
|
|
258
260
|
# TODO: nice to have
|
259
261
|
# * if_second_not_empty_then_first_yes_check(varname1, varname2)
|
data/lib/csv/probe/version.rb
CHANGED