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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b09d2eaa0c8e6c8c385fa6f958d93d893ee7c3441cc83248d07562cd719d960
4
- data.tar.gz: 7e2aff2545b8bbeaefd4adb73627e7345bec284b18d431f3ab41f5a136f479a1
3
+ metadata.gz: f77fe04292e17f436f9c5838bb3cbd6aa4297b807478c127321323fc4ad27c28
4
+ data.tar.gz: 63ecf6ce80dcfa3b7eb24d0f3947455eb223d1c44a32b58b4d084b29efad8961
5
5
  SHA512:
6
- metadata.gz: 88525c73bd61ae40b2fe4314a402210acc2ad4993def484e7531d6356d1652f80b2b5a1f72be1f4b4a38350d4c25d00ac43b3a8b1b41817b0c95bc2df8f5c082
7
- data.tar.gz: 28322a68f915cee37aebbcd2fbaee39293d289760c878f3b6bcfe237a9247fd319368d1c54d9170f25929625b71c89475b016ccbdb80afc88a3d0926784b6a7e
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`: Add an experimental command line tool to filter a CSV.
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-doc.org/stdlib-2.6.1/libdoc/strscan/rdoc/StringScanner.html
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  class CSV
4
4
  # The version of the installed library.
5
- VERSION = "3.3.3"
5
+ VERSION = "3.3.5"
6
6
  end
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.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: 2025-03-20 00:00:00.000000000 Z
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.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.2
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