patchwork_csv_utils 0.1.0-arm64-darwin → 0.1.1-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/README.md +1 -1
- data/ext/csv_utils/src/utils/xls.rs +6 -2
- 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: a10957832caa75c9a8b0b488c9e01b2e5b72fa6fce02e0d72b38ccb983aa9184
|
4
|
+
data.tar.gz: 38a2cabac24cf9ca6b9e047fdb52d252b67630bbee0404a50e7533bb70603017
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '096e50a3c0d257027e355a251dac70eebe57551455db80e523c3c32e37e38ab0cdc7cabaf11222ac391f1e5be390f3a58cac040f02b14aa3368e5b92dac8eee8'
|
7
|
+
data.tar.gz: 7c3f5cb798ab111b046bbad486defd62ae1eff4c51d677ed2726da3d6e8ebe089ee74a3a4c07c496f9d372acd5f06cbafc2bd35be952c29571ba63af7556309f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -73,8 +73,12 @@ 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, "{:?}", s.trim_end())
|
76
|
+
write!(dest, "{:?}", remove_new_lines(s.trim_end()))
|
77
77
|
} else {
|
78
|
-
write!(dest, "{}", s.trim_end())
|
78
|
+
write!(dest, "{}", remove_new_lines(s.trim_end()))
|
79
79
|
}
|
80
|
+
}
|
81
|
+
|
82
|
+
fn remove_new_lines(s: &str) -> String {
|
83
|
+
s.replace("\n", " ").replace("\r", " ")
|
80
84
|
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/csv_utils/version.rb
CHANGED