csvutils 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +3 -3
- data/LICENSE.md +116 -0
- data/Manifest.txt +8 -4
- data/README.md +302 -286
- data/Rakefile +30 -26
- data/bin/csvcut +17 -17
- data/bin/csvhead +17 -17
- data/bin/csvheader +17 -17
- data/bin/csvsplit +17 -17
- data/bin/csvstat +17 -17
- data/{test/data → datasets}/at-austria/AUT.csv +363 -363
- data/{test/data → datasets}/de-deutschland/bundesliga.csv +481 -481
- data/{test/data → datasets}/eng-england/2017-18/E0.csv +381 -381
- data/lib/csvutils.rb +32 -31
- data/lib/csvutils/commands/cut.rb +43 -43
- data/lib/csvutils/commands/head.rb +40 -40
- data/lib/csvutils/commands/header.rb +35 -35
- data/lib/csvutils/commands/split.rb +41 -41
- data/lib/csvutils/commands/stat.rb +41 -41
- data/lib/csvutils/cut.rb +43 -50
- data/lib/csvutils/head.rb +22 -25
- data/lib/csvutils/header.rb +16 -28
- data/lib/csvutils/split.rb +106 -107
- data/lib/csvutils/stat.rb +81 -86
- data/lib/csvutils/test.rb +19 -22
- data/lib/csvutils/utils.rb +29 -13
- data/lib/csvutils/version.rb +24 -24
- data/test/helper.rb +16 -16
- data/test/test_cut.rb +31 -0
- data/test/test_head.rb +30 -0
- data/test/{test_headers.rb → test_header.rb} +50 -50
- data/test/test_misc.rb +44 -44
- data/test/test_split.rb +31 -0
- data/test/test_version.rb +20 -20
- metadata +28 -9
data/test/test_version.rb
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
###
|
4
|
-
# to run use
|
5
|
-
# ruby -I ./lib -I ./test test/test_version.rb
|
6
|
-
|
7
|
-
|
8
|
-
require 'helper'
|
9
|
-
|
10
|
-
class TestVersion < MiniTest::Test
|
11
|
-
|
12
|
-
def test_version
|
13
|
-
pp CsvUtils::VERSION
|
14
|
-
pp CsvUtils.banner
|
15
|
-
pp CsvUtils.root
|
16
|
-
|
17
|
-
assert true ## assume ok if we get here
|
18
|
-
end
|
19
|
-
|
20
|
-
end # class TestVersion
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
###
|
4
|
+
# to run use
|
5
|
+
# ruby -I ./lib -I ./test test/test_version.rb
|
6
|
+
|
7
|
+
|
8
|
+
require 'helper'
|
9
|
+
|
10
|
+
class TestVersion < MiniTest::Test
|
11
|
+
|
12
|
+
def test_version
|
13
|
+
pp CsvUtils::VERSION
|
14
|
+
pp CsvUtils.banner
|
15
|
+
pp CsvUtils.root
|
16
|
+
|
17
|
+
assert true ## assume ok if we get here
|
18
|
+
end
|
19
|
+
|
20
|
+
end # class TestVersion
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csvutils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: csvreader
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.2.3
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.2.3
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rdoc
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,7 +53,7 @@ dependencies:
|
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '3.16'
|
41
55
|
description: csvutils - tools 'n' scripts for working with comma-separated values
|
42
|
-
(csv) datafiles - the world's most popular tabular
|
56
|
+
(csv) datafiles - the world's most popular tabular data interchange format in text
|
43
57
|
email: wwwmake@googlegroups.com
|
44
58
|
executables:
|
45
59
|
- csvcut
|
@@ -50,10 +64,12 @@ executables:
|
|
50
64
|
extensions: []
|
51
65
|
extra_rdoc_files:
|
52
66
|
- HISTORY.md
|
67
|
+
- LICENSE.md
|
53
68
|
- Manifest.txt
|
54
69
|
- README.md
|
55
70
|
files:
|
56
71
|
- HISTORY.md
|
72
|
+
- LICENSE.md
|
57
73
|
- Manifest.txt
|
58
74
|
- README.md
|
59
75
|
- Rakefile
|
@@ -62,6 +78,9 @@ files:
|
|
62
78
|
- bin/csvheader
|
63
79
|
- bin/csvsplit
|
64
80
|
- bin/csvstat
|
81
|
+
- datasets/at-austria/AUT.csv
|
82
|
+
- datasets/de-deutschland/bundesliga.csv
|
83
|
+
- datasets/eng-england/2017-18/E0.csv
|
65
84
|
- lib/csvutils.rb
|
66
85
|
- lib/csvutils/commands/cut.rb
|
67
86
|
- lib/csvutils/commands/head.rb
|
@@ -76,14 +95,14 @@ files:
|
|
76
95
|
- lib/csvutils/test.rb
|
77
96
|
- lib/csvutils/utils.rb
|
78
97
|
- lib/csvutils/version.rb
|
79
|
-
- test/data/at-austria/AUT.csv
|
80
|
-
- test/data/de-deutschland/bundesliga.csv
|
81
|
-
- test/data/eng-england/2017-18/E0.csv
|
82
98
|
- test/helper.rb
|
83
|
-
- test/
|
99
|
+
- test/test_cut.rb
|
100
|
+
- test/test_head.rb
|
101
|
+
- test/test_header.rb
|
84
102
|
- test/test_misc.rb
|
103
|
+
- test/test_split.rb
|
85
104
|
- test/test_version.rb
|
86
|
-
homepage: https://github.com/
|
105
|
+
homepage: https://github.com/csvreader/csvutils
|
87
106
|
licenses:
|
88
107
|
- Public Domain
|
89
108
|
metadata: {}
|
@@ -109,5 +128,5 @@ rubygems_version: 2.5.2
|
|
109
128
|
signing_key:
|
110
129
|
specification_version: 4
|
111
130
|
summary: csvutils - tools 'n' scripts for working with comma-separated values (csv)
|
112
|
-
datafiles - the world's most popular tabular
|
131
|
+
datafiles - the world's most popular tabular data interchange format in text
|
113
132
|
test_files: []
|