patchwork_csv_utils 0.1.2-x86_64-linux → 0.1.3-x86_64-linux

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: ff133c08ede918bb08484b681b1f9a9e4c72b152832c3412149b7fee5f471a3e
4
- data.tar.gz: 4c95c88b16c6461126bc8c5ec78927cb5d4c1150904a70dd1be9820f2f57fc43
3
+ metadata.gz: d6e5fcb622c827b9824a0369af583ce409c968ab47e0eed41d4b5ae474907b11
4
+ data.tar.gz: 87f48b77673c6bb56ca442f13a5b67d7d3e7de994160cbe7a8bc655734b76b13
5
5
  SHA512:
6
- metadata.gz: af89a3f2e701e6f77a5cb54d51f2284da6df01daa4386d637a4b913c486519d6789fe6c864063406cfdc406df5363fb0a2a8e242b0a884a081b7a14f0757477c
7
- data.tar.gz: 59ce53357adf23fc29172f8e7b6e07fe9df121c9ad86133ff0abac4227264c2f971a736bb5ef308ad0450a764f22de2881125cbc8a45acfd54159f6fe38a7b45
6
+ metadata.gz: 596afffb37c434613379f79b3236cb0bedbbfd93005d812aa77ad54eccf8f2e804d384fa3bd5cf82dc3fdf062d7b2ccad616b52c22cfca773db1767b7420b2e1
7
+ data.tar.gz: 1b62c532de204e216ba975e83ef0b53af34be282b7f9e7b988ece6319df61542e00a7ee0c448ca8cc0120b9fd8359a181442b4476d1912313da52c079a8fe3cc
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-linux
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: