csv 3.3.3 → 3.3.5
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 +20 -1
- data/lib/csv/parser.rb +1 -1
- data/lib/csv/version.rb +1 -1
- metadata +5 -7
- 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: f77fe04292e17f436f9c5838bb3cbd6aa4297b807478c127321323fc4ad27c28
|
4
|
+
data.tar.gz: 63ecf6ce80dcfa3b7eb24d0f3947455eb223d1c44a32b58b4d084b29efad8961
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9ffbf24700b4ab0eb35a2cb8086e82e36825558c14b646ae00374cb3e80f7195ebb3c9ac08d11b011ffa0cc10ae607a79e24d68b793b54c50d2dd1e8bd5ec16
|
7
|
+
data.tar.gz: 628a0b0c0963d69686845172d84fbbdf1cebb9fc6839e052054f9e7c112bbcb96743a63e8cf5d1a6df8a9299f03ab3b8d81a9b814fb6d0f222e444b9f0282a5d
|
data/NEWS.md
CHANGED
@@ -1,10 +1,29 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 3.3.5 - 2025-06-01
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* docs: Fixed `StringScanner` document URL.
|
8
|
+
* GH-343
|
9
|
+
* Patch by Petrik de Heus
|
10
|
+
|
11
|
+
### Thanks
|
12
|
+
|
13
|
+
* Petrik de Heus
|
14
|
+
|
15
|
+
## 3.3.4 - 2025-04-13
|
16
|
+
|
17
|
+
### Improvements
|
18
|
+
|
19
|
+
* `csv-filter`: Removed an experimental command line tool.
|
20
|
+
* GH-341
|
21
|
+
|
3
22
|
## 3.3.3 - 2025-03-20
|
4
23
|
|
5
24
|
### Improvements
|
6
25
|
|
7
|
-
* `csv-filter`:
|
26
|
+
* `csv-filter`: Added an experimental command line tool to filter a CSV.
|
8
27
|
* Patch by Burdette Lamar
|
9
28
|
|
10
29
|
### Fixes
|
data/lib/csv/parser.rb
CHANGED
@@ -47,7 +47,7 @@ class CSV
|
|
47
47
|
# Uses StringScanner (the official strscan gem). Strscan provides lexical
|
48
48
|
# scanning operations on a String. We inherit its object and take advantage
|
49
49
|
# on the methods. For more information, please visit:
|
50
|
-
# https://ruby-
|
50
|
+
# https://docs.ruby-lang.org/en/master/StringScanner.html
|
51
51
|
#
|
52
52
|
class Scanner < StringScanner
|
53
53
|
alias_method :scan_all, :scan
|
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.5
|
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:
|
11
|
+
date: 1980-01-02 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.5
|
77
75
|
rdoc_options:
|
78
76
|
- "--main"
|
79
77
|
- README.md
|
@@ -90,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
88
|
- !ruby/object:Gem::Version
|
91
89
|
version: '0'
|
92
90
|
requirements: []
|
93
|
-
rubygems_version: 3.6.
|
91
|
+
rubygems_version: 3.6.7
|
94
92
|
specification_version: 4
|
95
93
|
summary: CSV Reading and Writing
|
96
94
|
test_files: []
|
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
|