dedup_csv 0.1.3-aarch64-linux → 0.1.5-aarch64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 202e3a8bc795542026956d4f094d2ec7326d9966391a23d71af153b8add659c3
4
- data.tar.gz: 3ee2de5e12d1c436da380b528dc2e9b51727a287c2d88eef7b51a1c6fdc43dc8
3
+ metadata.gz: 934d652487a8b88f0e9827e00e14684a278475a21bcd47ae09d21924b9bae1d2
4
+ data.tar.gz: b00a9157ce6c47496a53c64ec1c8f3459c4be09a269bcb2f4c4330841cced73b
5
5
  SHA512:
6
- metadata.gz: 0f61c2d2ff405b40e392b4f491e8af5cf64cf5075a6db1f6b29e76ffbb2df46f0eb3cc560c8e85fde0fbe38c5f3373d9fa8d99e0bf7353f0eeff9992eab07a01
7
- data.tar.gz: 9aaf4d24fd49ad4f0e47c3f4ed2aafd346510af8b903900d6ffb90b780ea223cc6b173df99fe1080109bf29b42cebfba1074f82455e0995f9bdc71f4b8667748
6
+ metadata.gz: c66c8a723fb0e476f37c030aeaa4aededb966e2f7df4a611fe78b44bbb3bcb94e7caa419d8c0511edaf035f61ebb28756dab3748ae3276661a292d22e9d18b8d
7
+ data.tar.gz: f969b3646f023be64c1c56e5c35023abf421b4f058af3bf8a39508676bcf795f839a449ab72a437ecea3e0ec76086f37e8d5698079e6c1d06e973217f896065b
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: aarch64-linux
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: