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.
- checksums.yaml +4 -4
- data/bin/csv-splitter +2 -2
- data/csv-utils.gemspec +2 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56d81ad0c7a53bc4a738cc4f9643884fa301b6c2add83f9b961263dfdae1e896
|
4
|
+
data.tar.gz: 5db7f72a3df30a2933ffdafa8599a7ce46ae763124b4c0d6d88b775f2238422b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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| "
|
32
|
+
file.sub(/\.(?:csv|tsv)$/i) { |m| ".part-#{num_files}-of-#{total_files}" + m }
|
33
33
|
else
|
34
|
-
file + "
|
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.
|
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.
|
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:
|
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
|