dedup_csv 0.1.3-arm64-darwin → 0.1.5-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: 8cccd9b1cfa689270f5346ff1eb92632ac44eb4ab3fd5369853010f958f53fdc
4
- data.tar.gz: 56897a70534c66a21957c40aceab1cdc7aa9a4da3c2fe6b9aab73789361818d8
3
+ metadata.gz: c584cc8d121131b8257791e44174f1401d6968e52239b1a617eb8a515094ebd3
4
+ data.tar.gz: 2d03372fc716ab0edf15f0f33eb48d9b885947335b208241658458c6443f6f40
5
5
  SHA512:
6
- metadata.gz: 6de92389a279b2469e86065e834326fbf0cf648d321f801f4b65da9bd113d88b87e8c2f65055c4f0e1938ba623186cfea5f4efafccb1723ad9d98ab232197447
7
- data.tar.gz: e5efd9bf6e8721d53b63b2ecd33df228135ae88aede52c1936fd0d51fd339e9273d914936db1c65b11a0a22464192f94c35dfc40db187fef318d6ed7069f1456
6
+ metadata.gz: 3cac6dc11aa988d4e583c0da79569c5a17eacf2f4b26789229025bd3f7e0881a411c5fbafb4bb3aee9708fff105a47b13b0ca3c28d5b601aa71a08224e8835d3
7
+ data.tar.gz: a3950b213858c6b6f2ed32b975126f57839bb6e28679bb5a784da8a1ee86daa4ec701e46cf94530fd2d581da819cd762aac1c2b53d38201f7b1e99183b6d31de
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dedup_csv (0.1.3)
4
+ dedup_csv (0.1.5)
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
@@ -7,10 +7,10 @@ use magnus::{define_module, function, prelude::*, Ruby};
7
7
 
8
8
  fn dedup(ruby: &Ruby, previous_csv_path: String, new_csv_path: String, target_path: String) -> magnus::error::Result<()> {
9
9
  if !previous_csv_path.has_extension(&["csv"]) {
10
- return Err(magnus::Error::new(ruby.exception_exception(), "previous_csv_path must be a csv file".to_string()));
10
+ return Err(magnus::Error::new(ruby.exception_standard_error(), "previous_csv_path must be a csv file".to_string()));
11
11
  }
12
12
  if !new_csv_path.has_extension(&["csv"]) {
13
- return Err(magnus::Error::new(ruby.exception_exception(), "new_csv_path must be a csv file".to_string()));
13
+ return Err(magnus::Error::new(ruby.exception_standard_error(), "new_csv_path must be a csv file".to_string()));
14
14
  }
15
15
 
16
16
  let csv1 = File::open(previous_csv_path).map_err(|e| magnus_err(ruby, e, "previous_csv_path"))?;
@@ -25,7 +25,7 @@ fn dedup(ruby: &Ruby, previous_csv_path: String, new_csv_path: String, target_pa
25
25
  let new_headers = new_csv.headers().map_err(|e| magnus_err(ruby, e, "new_csv_path headers"))?;
26
26
 
27
27
  if previous_headers != new_headers {
28
- return Err(magnus::Error::new(ruby.exception_exception(), "headers of both csv files must be the same".to_string()));
28
+ return Err(magnus::Error::new(ruby.exception_standard_error(), "headers of both csv files must be the same".to_string()));
29
29
  }
30
30
 
31
31
  wtr.write_byte_record(previous_headers.as_byte_record()).unwrap();
@@ -50,7 +50,7 @@ fn dedup(ruby: &Ruby, previous_csv_path: String, new_csv_path: String, target_pa
50
50
  }
51
51
 
52
52
  fn magnus_err<E: Error>(ruby: &Ruby, e: E, msg: &str) -> magnus::Error {
53
- magnus::Error::new(ruby.exception_exception(), format!("{}: {}", msg, e.to_string()))
53
+ magnus::Error::new(ruby.exception_standard_error(), format!("{}: {}", msg, e.to_string()))
54
54
  }
55
55
 
56
56
  #[magnus::init]
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.3'
4
+ VERSION = '0.1.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dedup_csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - kingsley.hendrickse
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 3.0.0
61
+ version: 3.1.6
62
62
  requirements: []
63
63
  rubygems_version: 3.4.4
64
64
  signing_key: