patchwork_csv_utils 0.1.1-arm64-darwin → 0.1.2-arm64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/ext/csv_utils/src/utils/xls.rs +6 -4
- data/lib/csv_utils/2.7/csv_utils.bundle +0 -0
- data/lib/csv_utils/3.0/csv_utils.bundle +0 -0
- data/lib/csv_utils/3.1/csv_utils.bundle +0 -0
- data/lib/csv_utils/3.2/csv_utils.bundle +0 -0
- data/lib/csv_utils/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: 5d48484a389b0f61fa40b9ff495a9529d5b6672531ec8a46058fcb031ff58e1f
|
4
|
+
data.tar.gz: c817216b32c72b30887582774d31057547beec706679080905ad8c8b0a724e24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95eca6a03e0ff76c85764e18b8e59c48e2c4e3dc30ce7921fbfa264f7aab9b5c9cbf431c9c912232bb84d2a3343bd7e91ddc97124a80b525095b2e7b74b8945b
|
7
|
+
data.tar.gz: 3d9c7bedc83f9f6d8e4cf79b40f1dd647e75a1ad78b8a4f006d252f7e2c76344304e9502bc32867a66309233118332e774d6001dac1221e865ca15aa59c83402
|
data/Gemfile.lock
CHANGED
@@ -73,12 +73,14 @@ fn transform_time_to_datetime(t1: NaiveDateTime, t2: NaiveDateTime) -> NaiveDate
|
|
73
73
|
|
74
74
|
fn handle_commas<W: Write>(dest: &mut W, s: &str) -> std::io::Result<()> {
|
75
75
|
if s.contains(",") {
|
76
|
-
write!(dest, "{:?}",
|
76
|
+
write!(dest, "{:?}", clean_strings(s).trim_end())
|
77
77
|
} else {
|
78
|
-
write!(dest, "{}",
|
78
|
+
write!(dest, "{}", clean_strings(s).trim_end())
|
79
79
|
}
|
80
80
|
}
|
81
81
|
|
82
|
-
fn
|
83
|
-
s.replace("\n", " ")
|
82
|
+
fn clean_strings(s: &str) -> String {
|
83
|
+
s.replace("\n", " ")
|
84
|
+
.replace("\r", " ")
|
85
|
+
.replace("\"", "")
|
84
86
|
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/csv_utils/version.rb
CHANGED