patchwork_csv_utils 0.1.1-x86_64-darwin → 0.1.2-x86_64-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: 8f473b13bf5283e219ea795ba8e4eeb5cbb5dc3a569a7411c6755fb105bef445
|
4
|
+
data.tar.gz: a11fbf681c5cc965b5d076d2ccc3f7980c57dd282cbe29859836e0282dda8978
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21c8ad2e8f381e79205fb553a1ecdac9287d2958e42d7ba4aeb1da897572bc4c63d448ee574668d9243c1427bad806f0159552f51580b75d1a1a1abeb40ef3a9
|
7
|
+
data.tar.gz: f34aca05f572db52ae9d0aab81a6d97a1f12316b02a59294d4ba00e1d4150137ce0e09166725e0a4c48681ba4a210d8343a7f702d80fae3c29f6b5f0a0e1e878
|
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