patchwork_csv_utils 0.1.2-x86_64-darwin → 0.1.3-x86_64-darwin

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: 8f473b13bf5283e219ea795ba8e4eeb5cbb5dc3a569a7411c6755fb105bef445
4
- data.tar.gz: a11fbf681c5cc965b5d076d2ccc3f7980c57dd282cbe29859836e0282dda8978
3
+ metadata.gz: f379c95f12fb3cbdaec54611a51abb6c15393a275e898701abde6536b5eb894c
4
+ data.tar.gz: 22f9b467cdc5b5b5bcad81394344fe838e03eecf3891f4b6d683199cc828760d
5
5
  SHA512:
6
- metadata.gz: 21c8ad2e8f381e79205fb553a1ecdac9287d2958e42d7ba4aeb1da897572bc4c63d448ee574668d9243c1427bad806f0159552f51580b75d1a1a1abeb40ef3a9
7
- data.tar.gz: f34aca05f572db52ae9d0aab81a6d97a1f12316b02a59294d4ba00e1d4150137ce0e09166725e0a4c48681ba4a210d8343a7f702d80fae3c29f6b5f0a0e1e878
6
+ metadata.gz: 3a07e333b63530ebc3186f0776ce6ba1921344bc352587ee713b232fef95553bd7be8a2c52961c5ffc036308c00e4daea4e5884dbd74dbb002e32aaac03e1c06
7
+ data.tar.gz: 29cd28bc6bc51bef21d088308147b037484ef90542d8d3df225b673a4c6c1e91f1bd0380a04d1e52d61dfa711953c690e4d8e9049a524be62a055c42ae650c26
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- patchwork_csv_utils (0.1.2)
4
+ patchwork_csv_utils (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -28,6 +28,11 @@ fn write_csv<W: Write>(ruby: &Ruby, dest: &mut W, range: &Range<Data>, header_ma
28
28
  let n = range.get_size().1 - 1;
29
29
  for (ri, r) in range.rows().enumerate() {
30
30
  let mut date_value = Utc::now().naive_utc();
31
+
32
+ if r.iter().all(|c| c == &Data::Empty) {
33
+ continue;
34
+ }
35
+
31
36
  for (i, c) in r.iter().enumerate() {
32
37
  let date = header_map.get("Date").ok_or(missing_header(ruby, "Date"))?;
33
38
  let start = header_map.get("Start").ok_or(missing_header(ruby, "Start"))?;
@@ -83,4 +88,5 @@ fn clean_strings(s: &str) -> String {
83
88
  s.replace("\n", " ")
84
89
  .replace("\r", " ")
85
90
  .replace("\"", "")
91
+ .replace("'", "")
86
92
  }
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CsvUtils
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patchwork_csv_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - kingsley.hendrickse
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-31 00:00:00.000000000 Z
11
+ date: 2024-08-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Deduplication of CSV files and XLS to CSV conversion.
14
14
  email: