csv 3.3.3 → 3.3.4
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 +4 -4
- data/NEWS.md +8 -1
- data/lib/csv/version.rb +1 -1
- metadata +4 -6
- data/bin/csv-filter +0 -59
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7de8075012a39a948cee7b3cc1fa8ccb9ca15cc3ca3718f3883a7d82acc51c2c
|
4
|
+
data.tar.gz: 55459b45132d6da9880cfc294f46a9eb5a4646726c08b6a0053dc801179dccfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '04382fe706d56323605226220819ed2af7af8833b753e98c9ca2537f288808b104c1e88a6d9a7d65ac393817c15a052be7966e8b9cd0494402513fe88ce4cb65'
|
7
|
+
data.tar.gz: 9b0f33b6b0560b84a73eaac22924b3b1397f2bfa939f036c2ba4243411e2df4fcafb6ebc82644217d977d7d2ebf3c226df93338f7def80196c050acdb847da0e
|
data/NEWS.md
CHANGED
@@ -1,10 +1,17 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 3.3.4 - 2025-04-13
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* `csv-filter`: Removed an experimental command line tool.
|
8
|
+
* GH-341
|
9
|
+
|
3
10
|
## 3.3.3 - 2025-03-20
|
4
11
|
|
5
12
|
### Improvements
|
6
13
|
|
7
|
-
* `csv-filter`:
|
14
|
+
* `csv-filter`: Added an experimental command line tool to filter a CSV.
|
8
15
|
* Patch by Burdette Lamar
|
9
16
|
|
10
17
|
### Fixes
|
data/lib/csv/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Edward Gray II
|
8
8
|
- Kouhei Sutou
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: The CSV library provides a complete interface to CSV files and data.
|
14
14
|
It offers tools to enable you to read and write to and from Strings or IO objects,
|
@@ -16,8 +16,7 @@ description: The CSV library provides a complete interface to CSV files and data
|
|
16
16
|
email:
|
17
17
|
-
|
18
18
|
- kou@cozmixng.org
|
19
|
-
executables:
|
20
|
-
- csv-filter
|
19
|
+
executables: []
|
21
20
|
extensions: []
|
22
21
|
extra_rdoc_files:
|
23
22
|
- LICENSE.txt
|
@@ -31,7 +30,6 @@ files:
|
|
31
30
|
- LICENSE.txt
|
32
31
|
- NEWS.md
|
33
32
|
- README.md
|
34
|
-
- bin/csv-filter
|
35
33
|
- doc/csv/arguments/io.rdoc
|
36
34
|
- doc/csv/options/common/col_sep.rdoc
|
37
35
|
- doc/csv/options/common/quote_char.rdoc
|
@@ -73,7 +71,7 @@ licenses:
|
|
73
71
|
- Ruby
|
74
72
|
- BSD-2-Clause
|
75
73
|
metadata:
|
76
|
-
changelog_uri: https://github.com/ruby/csv/releases/tag/v3.3.
|
74
|
+
changelog_uri: https://github.com/ruby/csv/releases/tag/v3.3.4
|
77
75
|
rdoc_options:
|
78
76
|
- "--main"
|
79
77
|
- README.md
|
data/bin/csv-filter
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'optparse'
|
4
|
-
require 'csv'
|
5
|
-
|
6
|
-
options = {}
|
7
|
-
|
8
|
-
parser = OptionParser.new
|
9
|
-
|
10
|
-
parser.version = CSV::VERSION
|
11
|
-
parser.banner = <<-BANNER
|
12
|
-
Usage: #{parser.program_name} [options]
|
13
|
-
|
14
|
-
Reads and parses the CSV text content of the standard input per the given input options.
|
15
|
-
From that content, generates CSV text per the given output options
|
16
|
-
and writes that text to the standard output.
|
17
|
-
BANNER
|
18
|
-
|
19
|
-
|
20
|
-
parser.on('--input-col-sep=SEPARATOR',
|
21
|
-
'Input column separator string.') do |value|
|
22
|
-
options[:input_col_sep] = value
|
23
|
-
end
|
24
|
-
|
25
|
-
parser.on('--input-quote-char=SEPARATOR',
|
26
|
-
'Input quote character.') do |value|
|
27
|
-
options[:input_quote_char] = value
|
28
|
-
end
|
29
|
-
|
30
|
-
parser.on('--input-row-sep=SEPARATOR',
|
31
|
-
'Input row separator string.') do |value|
|
32
|
-
options[:input_row_sep] = value
|
33
|
-
end
|
34
|
-
|
35
|
-
parser.on('--output-col-sep=SEPARATOR',
|
36
|
-
'Output column separator string.') do |value|
|
37
|
-
options[:output_col_sep] = value
|
38
|
-
end
|
39
|
-
|
40
|
-
parser.on('--output-row-sep=SEPARATOR',
|
41
|
-
'Output row separator string.') do |value|
|
42
|
-
options[:output_row_sep] = value
|
43
|
-
end
|
44
|
-
|
45
|
-
parser.on('-r', '--row-sep=SEPARATOR',
|
46
|
-
'Row separator string.') do |value|
|
47
|
-
options[:row_sep] = value
|
48
|
-
end
|
49
|
-
|
50
|
-
begin
|
51
|
-
parser.parse!
|
52
|
-
rescue OptionParser::InvalidOption
|
53
|
-
$stderr.puts($!.message)
|
54
|
-
$stderr.puts(parser)
|
55
|
-
exit(false)
|
56
|
-
end
|
57
|
-
|
58
|
-
CSV.filter(**options) do |row|
|
59
|
-
end
|