patchwork_csv_utils 0.1.2-arm64-darwin → 0.1.3-arm64-darwin

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d48484a389b0f61fa40b9ff495a9529d5b6672531ec8a46058fcb031ff58e1f
4
- data.tar.gz: c817216b32c72b30887582774d31057547beec706679080905ad8c8b0a724e24
3
+ metadata.gz: cc5b0905c8210cfdad65db324e93a40623ad1aaefe2a2d05165b8df796272186
4
+ data.tar.gz: b1e4a1262e1e49ed970482433ac193610ec105d1bf024d123551063607bdbd40
5
5
  SHA512:
6
- metadata.gz: 95eca6a03e0ff76c85764e18b8e59c48e2c4e3dc30ce7921fbfa264f7aab9b5c9cbf431c9c912232bb84d2a3343bd7e91ddc97124a80b525095b2e7b74b8945b
7
- data.tar.gz: 3d9c7bedc83f9f6d8e4cf79b40f1dd647e75a1ad78b8a4f006d252f7e2c76344304e9502bc32867a66309233118332e774d6001dac1221e865ca15aa59c83402
6
+ metadata.gz: c7a88eed7af4705c554dfb41b1159b2eeba01657daf572fb2d188fd86d051977e5e6c401ae43a5b5401756a2bef8a56cbe28eb93dca389760ac0004946746478
7
+ data.tar.gz: b98944299828a21085c531f9d76602a3dc1dfb4ef9db03cf93a2d44fd1d9c55481617c16a5fe65cbb8b9509794430916252abfbfa98df18b6cce7d1aa2e2a0b8
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: arm64-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: