csv-utils 0.3.22 → 0.3.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/csv-splitter +2 -2
  3. data/csv-utils.gemspec +2 -1
  4. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee1aeb07e7762e4f619464536906cd1ab2171a93238a6113811f30ae76cfd5dd
4
- data.tar.gz: 894841751be6e16ed552fbb47047e6a8bc550b7eb45beed6419cb351cf1df734
3
+ metadata.gz: 56d81ad0c7a53bc4a738cc4f9643884fa301b6c2add83f9b961263dfdae1e896
4
+ data.tar.gz: 5db7f72a3df30a2933ffdafa8599a7ce46ae763124b4c0d6d88b775f2238422b
5
5
  SHA512:
6
- metadata.gz: 9624fc8ebd25445d34b0d2f8a00fbb4983c9a1ba9e4cf4f16bcdec029a852f5ee049fb2a935fdc8f4c429c34fd7588488182bf2e0433491fe4705c71dc7a43ea
7
- data.tar.gz: 95ceebc269ca0e48404d62dd47905f0527028956f6bea09d68c71454784ceb626a346b8f8b27113d02bed771a75248ba85c364c63a08c084c6a97b8631d2990d
6
+ metadata.gz: bf3878abd3a7f0c5dfbdcd9cdcee6773dc20d43308464c3d0a984ee2fe147c055ba64627043478f8099604f8824b3e8630eabfe8f91ffc562d54fabed98b0535
7
+ data.tar.gz: 68feef79f89b7b415c40b37f9ac03b2feb6c800552af70c22006fa56a92d987a0753e0fc00b6449b8edca04463dfeaaefc4b647fbf46ce14227ccdde927a95dd
data/bin/csv-splitter CHANGED
@@ -29,9 +29,9 @@ require 'csv-utils'
29
29
 
30
30
  def get_split_file_name(file, num_files, total_files)
31
31
  if file =~ /\.(?:csv|tsv)$/i
32
- file.sub(/\.(?:csv|tsv)$/i) { |m| "-part-#{num_files}-of-#{total_files}" + m }
32
+ file.sub(/\.(?:csv|tsv)$/i) { |m| ".part-#{num_files}-of-#{total_files}" + m }
33
33
  else
34
- file + "-part-#{num_files}"
34
+ file + ".part-#{num_files}"
35
35
  end
36
36
  end
37
37
 
data/csv-utils.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'csv-utils'
5
- s.version = '0.3.22'
5
+ s.version = '0.3.24'
6
6
  s.licenses = ['MIT']
7
7
  s.summary = 'CSV Utils'
8
8
  s.description = 'Tools for debugging malformed CSV files'
@@ -13,5 +13,6 @@ Gem::Specification.new do |s|
13
13
  s.bindir = 'bin'
14
14
  s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
15
15
 
16
+ s.add_runtime_dependency 'csv'
16
17
  s.add_runtime_dependency 'inheritance-helper'
17
18
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csv-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.22
4
+ version: 0.3.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Youch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-08 00:00:00.000000000 Z
11
+ date: 2024-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: csv
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: inheritance-helper
15
29
  requirement: !ruby/object:Gem::Requirement