patchwork_csv_utils 0.1.0-x86_64-linux → 0.1.1-x86_64-linux
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.so +0 -0
- data/lib/csv_utils/3.0/csv_utils.so +0 -0
- data/lib/csv_utils/3.1/csv_utils.so +0 -0
- data/lib/csv_utils/3.2/csv_utils.so +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: c22d6595d63535622b2f7d168f9b946a98ca2ff4cbbc7a697e7868a05eca970b
|
4
|
+
data.tar.gz: 806261df7e55b9fa404d0b1839c7913f23f98c4c0797f1251b376a88f23dcc70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fb07049e7358fe078b6aaa19f864997d82298087575779cac955f1dae3d6fc873fe1bbc80020bae04799c15afbe5dc3c73d2909367299681d41466db97d879b
|
7
|
+
data.tar.gz: 3cd8028e84e0b58e3ad8b40f09fa58e08238c9b064d42abfc673f2a881f798362d6d5172442db79af761707c343e26f2c7b1db289fcf22511a2a802d26605c6e
|
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