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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2425404adecef9f68fced84863e0acb087f3358935032c3849cab690948e74dc
4
- data.tar.gz: 0bf460f9f27439cdcba3150c2f53991ab07512e6e1ffb5195315fdad5689c549
3
+ metadata.gz: 945175b169f28d0b77504d23cf6020d5216e66f74e8e5a8b04ef0279f681fd8c
4
+ data.tar.gz: a91cb9d894402b70ebfb72a342f4166a94bda0b3c6f1ba361920d0caa6b3c0c9
5
5
  SHA512:
6
- metadata.gz: 721e33de3a86d0513dcaab1d0d102454fbcf48492dd6d551ec1f5623de6c0b7ba74189ea7d6ae8825eb34674b2679f251e50c08e87fabf1ae18a993cdc72eaff
7
- data.tar.gz: 042b6b18255ddbb787c7318febbc31147e4e593cbedf67047bc25c962491a9a46b3e664841a18ea3b8bfb25ef4025455391a4c7571dbf1a37072bb75c64967f8
6
+ metadata.gz: 7d09e366f9e7b4692dbfb1f8389667952f5e3a913901600d77d9954a9b5685650d81b6b9bba701cfa2925c47cefb0aca2e4b4bd5d48a3547b7cd2c775e512e01
7
+ data.tar.gz: a076a71e6679f69848b7c30117a100986e3857eb41a3ad2bed50c0a6b320add76caf6668ae8790dce9804c82e2f7dcc5b0e0e8675972c8f81a594bc163501f73
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.5] - 2022-01-05
4
+ - Fix rubocop warnings
5
+
3
6
  ## [0.1.4] - 2022-01-05
4
7
  - Fix `nil` handling for list + set column checks when the list or set is something like this:
5
8
  - `a,|b|,b` leading and trailing empty items or
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Probe
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csv-probe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - homebase.dev