dedup_csv 0.1.14-arm64-darwin → 0.1.15-arm64-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: cf676eae3f19252bd67a00f8e90df75d565ec09dfc5a6748dbeb21a2927af3d5
4
- data.tar.gz: 9a6ff41445809a0ea9be1aab0bad35d3ef4a954bda17107c493ff3fd28726dab
3
+ metadata.gz: 0c491ce3d7f17b9336e2448f187047967ac915cb7bd1cb8925dc9301ef64696d
4
+ data.tar.gz: fde31ba8466c3c416f199b8a161d710dcbf7cdf436b208770978f1cd30f0a43a
5
5
  SHA512:
6
- metadata.gz: 27f4a45bd01c7ceedeee7fb276e52b1c1dab73c4df4e4b59cc13ed5a91579e450233962409e6ac27a7d23d1e11e6b98ffcd1451cf43411865dcc70693b1ce0c2
7
- data.tar.gz: 6bbceeb48b33966fab2c17f03f649098b2c410239d70ce49e3cb628a4b3b34d6b0bce442d05bb2812d16a19bbd163ff2603632906a4650ee958141d79e175aac
6
+ metadata.gz: 0a32f4826d16ee4ad67245710bfb962fd0c812df3025d9dea61d25d8b4310cc299f1183f279daad1c4e367ec028d0217d5ac263bcc3ba20f663a878d43ddec2e
7
+ data.tar.gz: 311c0c2f2f9d7e96cbee3646e34f9dffd75e80e01e7a59b623fe7d94e8cb822f124b007f770e4024669e5d4d0140ad031fed78391f2aa2194e4ee6dc9cacfac1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dedup_csv (0.1.14)
4
+ dedup_csv (0.1.15)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -33,13 +33,14 @@ fn dedup(ruby: &Ruby, previous_csv_path: String, new_csv_path: String, target_pa
33
33
  let mut previous_records = vec![];
34
34
  for previous_record in previous_csv.records() {
35
35
  let previous_record = previous_record.map_err(|e| magnus_err(ruby, e, "previous_record"))?;
36
+ let previous_record = previous_record.into_iter().map(|r| r.trim_end()).collect::<StringRecord>();
36
37
  previous_records.push(previous_record)
37
38
  }
38
39
 
39
40
  for new_record in new_csv.records() {
40
41
  let new_record = new_record.map_err(|e| magnus_err(ruby, e, "new_record"))?;
42
+ let new_record = new_record.into_iter().map(|r| r.trim_end()).collect::<StringRecord>();
41
43
  if !previous_records.contains(&new_record) {
42
- let new_record = new_record.into_iter().map(|r| r.trim_end()).collect::<StringRecord>();
43
44
  wtr.write_byte_record(new_record.as_byte_record()).unwrap();
44
45
  }
45
46
  }
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DedupCsv
4
- VERSION = '0.1.14'
4
+ VERSION = '0.1.15'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dedup_csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - kingsley.hendrickse
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-22 00:00:00.000000000 Z
11
+ date: 2024-07-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Given 2 CSV files, remove all rows from the second CSV that are present
14
14
  in the first CSV.