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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1a370861f917ee057b3bb549db100e421ee0eb2663eddd45ec6360f2aa70906
4
- data.tar.gz: c7b2b0a43957d5fedc5706aeb9f2948d4428020207ed51830fd0fba454b8267b
3
+ metadata.gz: 8f473b13bf5283e219ea795ba8e4eeb5cbb5dc3a569a7411c6755fb105bef445
4
+ data.tar.gz: a11fbf681c5cc965b5d076d2ccc3f7980c57dd282cbe29859836e0282dda8978
5
5
  SHA512:
6
- metadata.gz: bd712a3ebe8b07a0e67d748fe5b07f4824d38d22e115555198a9f459c3a2a806d2d6ca07085bd4044e185eff20afcb23d01805a4067c013076180e61fca8e56a
7
- data.tar.gz: 30152a72b594333c2a9e10038a3133d249a8d76b0d62d69457ecf0a0d2ad93767642446747674e9855456386308c33d75970aa2c5470ea3e71dedf0d7a5e8119
6
+ metadata.gz: 21c8ad2e8f381e79205fb553a1ecdac9287d2958e42d7ba4aeb1da897572bc4c63d448ee574668d9243c1427bad806f0159552f51580b75d1a1a1abeb40ef3a9
7
+ data.tar.gz: f34aca05f572db52ae9d0aab81a6d97a1f12316b02a59294d4ba00e1d4150137ce0e09166725e0a4c48681ba4a210d8343a7f702d80fae3c29f6b5f0a0e1e878
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- patchwork_csv_utils (0.1.1)
4
+ patchwork_csv_utils (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -67,4 +67,4 @@ DEPENDENCIES
67
67
  rubocop (~> 1.21)
68
68
 
69
69
  BUNDLED WITH
70
- 2.4.4
70
+ 2.4.10
@@ -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, "{:?}", remove_new_lines(s.trim_end()))
76
+ write!(dest, "{:?}", clean_strings(s).trim_end())
77
77
  } else {
78
- write!(dest, "{}", remove_new_lines(s.trim_end()))
78
+ write!(dest, "{}", clean_strings(s).trim_end())
79
79
  }
80
80
  }
81
81
 
82
- fn remove_new_lines(s: &str) -> String {
83
- s.replace("\n", " ").replace("\r", " ")
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CsvUtils
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patchwork_csv_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - kingsley.hendrickse