csv 1.0.2 → 3.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS.md +868 -0
- data/README.md +6 -3
- data/doc/csv/arguments/io.rdoc +5 -0
- data/doc/csv/options/common/col_sep.rdoc +57 -0
- data/doc/csv/options/common/quote_char.rdoc +42 -0
- data/doc/csv/options/common/row_sep.rdoc +91 -0
- data/doc/csv/options/generating/force_quotes.rdoc +17 -0
- data/doc/csv/options/generating/quote_empty.rdoc +12 -0
- data/doc/csv/options/generating/write_converters.rdoc +25 -0
- data/doc/csv/options/generating/write_empty_value.rdoc +15 -0
- data/doc/csv/options/generating/write_headers.rdoc +29 -0
- data/doc/csv/options/generating/write_nil_value.rdoc +14 -0
- data/doc/csv/options/parsing/converters.rdoc +46 -0
- data/doc/csv/options/parsing/empty_value.rdoc +13 -0
- data/doc/csv/options/parsing/field_size_limit.rdoc +39 -0
- data/doc/csv/options/parsing/header_converters.rdoc +43 -0
- data/doc/csv/options/parsing/headers.rdoc +63 -0
- data/doc/csv/options/parsing/liberal_parsing.rdoc +38 -0
- data/doc/csv/options/parsing/nil_value.rdoc +12 -0
- data/doc/csv/options/parsing/return_headers.rdoc +22 -0
- data/doc/csv/options/parsing/skip_blanks.rdoc +31 -0
- data/doc/csv/options/parsing/skip_lines.rdoc +37 -0
- data/doc/csv/options/parsing/strip.rdoc +15 -0
- data/doc/csv/options/parsing/unconverted_fields.rdoc +27 -0
- data/doc/csv/recipes/filtering.rdoc +158 -0
- data/doc/csv/recipes/generating.rdoc +298 -0
- data/doc/csv/recipes/parsing.rdoc +545 -0
- data/doc/csv/recipes/recipes.rdoc +6 -0
- data/lib/csv/core_ext/array.rb +1 -1
- data/lib/csv/core_ext/string.rb +1 -1
- data/lib/csv/fields_converter.rb +89 -0
- data/lib/csv/input_record_separator.rb +18 -0
- data/lib/csv/parser.rb +1290 -0
- data/lib/csv/row.rb +505 -136
- data/lib/csv/table.rb +791 -114
- data/lib/csv/version.rb +1 -1
- data/lib/csv/writer.rb +210 -0
- data/lib/csv.rb +2432 -1329
- metadata +66 -13
- data/news.md +0 -112
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Edward Gray II
|
8
8
|
- Kouhei Sutou
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-06-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
43
|
+
name: benchmark_driver
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - ">="
|
@@ -53,47 +53,100 @@ dependencies:
|
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: test-unit
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 3.4.8
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 3.4.8
|
56
70
|
description: The CSV library provides a complete interface to CSV files and data.
|
57
71
|
It offers tools to enable you to read and write to and from Strings or IO objects,
|
58
72
|
as needed.
|
59
73
|
email:
|
60
|
-
-
|
74
|
+
-
|
61
75
|
- kou@cozmixng.org
|
62
76
|
executables: []
|
63
77
|
extensions: []
|
64
|
-
extra_rdoc_files:
|
78
|
+
extra_rdoc_files:
|
79
|
+
- LICENSE.txt
|
80
|
+
- NEWS.md
|
81
|
+
- README.md
|
82
|
+
- doc/csv/recipes/filtering.rdoc
|
83
|
+
- doc/csv/recipes/generating.rdoc
|
84
|
+
- doc/csv/recipes/parsing.rdoc
|
85
|
+
- doc/csv/recipes/recipes.rdoc
|
65
86
|
files:
|
66
87
|
- LICENSE.txt
|
88
|
+
- NEWS.md
|
67
89
|
- README.md
|
90
|
+
- doc/csv/arguments/io.rdoc
|
91
|
+
- doc/csv/options/common/col_sep.rdoc
|
92
|
+
- doc/csv/options/common/quote_char.rdoc
|
93
|
+
- doc/csv/options/common/row_sep.rdoc
|
94
|
+
- doc/csv/options/generating/force_quotes.rdoc
|
95
|
+
- doc/csv/options/generating/quote_empty.rdoc
|
96
|
+
- doc/csv/options/generating/write_converters.rdoc
|
97
|
+
- doc/csv/options/generating/write_empty_value.rdoc
|
98
|
+
- doc/csv/options/generating/write_headers.rdoc
|
99
|
+
- doc/csv/options/generating/write_nil_value.rdoc
|
100
|
+
- doc/csv/options/parsing/converters.rdoc
|
101
|
+
- doc/csv/options/parsing/empty_value.rdoc
|
102
|
+
- doc/csv/options/parsing/field_size_limit.rdoc
|
103
|
+
- doc/csv/options/parsing/header_converters.rdoc
|
104
|
+
- doc/csv/options/parsing/headers.rdoc
|
105
|
+
- doc/csv/options/parsing/liberal_parsing.rdoc
|
106
|
+
- doc/csv/options/parsing/nil_value.rdoc
|
107
|
+
- doc/csv/options/parsing/return_headers.rdoc
|
108
|
+
- doc/csv/options/parsing/skip_blanks.rdoc
|
109
|
+
- doc/csv/options/parsing/skip_lines.rdoc
|
110
|
+
- doc/csv/options/parsing/strip.rdoc
|
111
|
+
- doc/csv/options/parsing/unconverted_fields.rdoc
|
112
|
+
- doc/csv/recipes/filtering.rdoc
|
113
|
+
- doc/csv/recipes/generating.rdoc
|
114
|
+
- doc/csv/recipes/parsing.rdoc
|
115
|
+
- doc/csv/recipes/recipes.rdoc
|
68
116
|
- lib/csv.rb
|
69
117
|
- lib/csv/core_ext/array.rb
|
70
118
|
- lib/csv/core_ext/string.rb
|
119
|
+
- lib/csv/fields_converter.rb
|
120
|
+
- lib/csv/input_record_separator.rb
|
121
|
+
- lib/csv/parser.rb
|
71
122
|
- lib/csv/row.rb
|
72
123
|
- lib/csv/table.rb
|
73
124
|
- lib/csv/version.rb
|
74
|
-
-
|
125
|
+
- lib/csv/writer.rb
|
75
126
|
homepage: https://github.com/ruby/csv
|
76
127
|
licenses:
|
128
|
+
- Ruby
|
77
129
|
- BSD-2-Clause
|
78
130
|
metadata: {}
|
79
|
-
post_install_message:
|
80
|
-
rdoc_options:
|
131
|
+
post_install_message:
|
132
|
+
rdoc_options:
|
133
|
+
- "--main"
|
134
|
+
- README.md
|
81
135
|
require_paths:
|
82
136
|
- lib
|
83
137
|
required_ruby_version: !ruby/object:Gem::Requirement
|
84
138
|
requirements:
|
85
139
|
- - ">="
|
86
140
|
- !ruby/object:Gem::Version
|
87
|
-
version: 2.
|
141
|
+
version: 2.5.0
|
88
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
143
|
requirements:
|
90
144
|
- - ">="
|
91
145
|
- !ruby/object:Gem::Version
|
92
146
|
version: '0'
|
93
147
|
requirements: []
|
94
|
-
|
95
|
-
|
96
|
-
signing_key:
|
148
|
+
rubygems_version: 3.5.0.dev
|
149
|
+
signing_key:
|
97
150
|
specification_version: 4
|
98
151
|
summary: CSV Reading and Writing
|
99
152
|
test_files: []
|
data/news.md
DELETED
@@ -1,112 +0,0 @@
|
|
1
|
-
# News
|
2
|
-
|
3
|
-
## 1.0.2 - 2018-05-03
|
4
|
-
|
5
|
-
### Improvements
|
6
|
-
|
7
|
-
* Split file for CSV::VERSION
|
8
|
-
|
9
|
-
* Code cleanup: Split csv.rb into a more manageable structure
|
10
|
-
[GitHub#19][Patch by Espartaco Palma]
|
11
|
-
[GitHub#20][Patch by Steven Daniels]
|
12
|
-
|
13
|
-
* Use CSV::MalformedCSVError for invalid encoding line
|
14
|
-
[GitHub#26][Reported by deepj]
|
15
|
-
|
16
|
-
* Support implicit Row <-> Array conversion
|
17
|
-
[Bug #10013][ruby-core:63582][Reported by Dawid Janczak]
|
18
|
-
|
19
|
-
* Update class docs
|
20
|
-
[GitHub#32][Patch by zverok]
|
21
|
-
|
22
|
-
* Add `Row#each_pair`
|
23
|
-
[GitHub#33][Patch by zverok]
|
24
|
-
|
25
|
-
* Improve CSV performance
|
26
|
-
[GitHub#30][Patch by Watson]
|
27
|
-
|
28
|
-
* Add :nil_value and :empty_value option
|
29
|
-
|
30
|
-
### Fixes
|
31
|
-
|
32
|
-
* Fix a bug that "bom|utf-8" doesn't work
|
33
|
-
[GitHub#23][Reported by Pavel Lobashov]
|
34
|
-
|
35
|
-
* `CSV::Row#to_h`, `#to_hash`: uses the same value as `Row#[]`
|
36
|
-
[Bug #14482][Reported by tomoya ishida]
|
37
|
-
|
38
|
-
* Make row separator detection more robust
|
39
|
-
[GitHub#25][Reported by deepj]
|
40
|
-
|
41
|
-
* Fix a bug that too much separator when col_sep is `" "`
|
42
|
-
[Bug #8784][ruby-core:63582][Reported by Sylvain Laperche]
|
43
|
-
|
44
|
-
### Thanks
|
45
|
-
|
46
|
-
* Espartaco Palma
|
47
|
-
|
48
|
-
* Steven Daniels
|
49
|
-
|
50
|
-
* deepj
|
51
|
-
|
52
|
-
* Dawid Janczak
|
53
|
-
|
54
|
-
* zverok
|
55
|
-
|
56
|
-
* Watson
|
57
|
-
|
58
|
-
* Pavel Lobashov
|
59
|
-
|
60
|
-
* tomoya ishida
|
61
|
-
|
62
|
-
* Sylvain Laperche
|
63
|
-
|
64
|
-
* Ryunosuke Sato
|
65
|
-
|
66
|
-
## 1.0.1 - 2018-02-09
|
67
|
-
|
68
|
-
### Improvements
|
69
|
-
|
70
|
-
* `CSV::Table#delete`: Added bulk delete support. You can delete
|
71
|
-
multiple rows and columns at once.
|
72
|
-
[GitHub#4][Patch by Vladislav]
|
73
|
-
|
74
|
-
* Updated Gem description.
|
75
|
-
[GitHub#11][Patch by Marcus Stollsteimer]
|
76
|
-
|
77
|
-
* Code cleanup.
|
78
|
-
[GitHub#12][Patch by Marcus Stollsteimer]
|
79
|
-
[GitHub#14][Patch by Steven Daniels]
|
80
|
-
[GitHub#18][Patch by takkanm]
|
81
|
-
|
82
|
-
* `CSV::Table#dig`: Added.
|
83
|
-
[GitHub#15][Patch by Tomohiro Ogoke]
|
84
|
-
|
85
|
-
* `CSV::Row#dig`: Added.
|
86
|
-
[GitHub#15][Patch by Tomohiro Ogoke]
|
87
|
-
|
88
|
-
* Added ISO 8601 support to date time converter.
|
89
|
-
[GitHub#16]
|
90
|
-
|
91
|
-
### Fixes
|
92
|
-
|
93
|
-
* Fixed wrong `CSV::VERSION`.
|
94
|
-
[GitHub#10][Reported by Marcus Stollsteimer]
|
95
|
-
|
96
|
-
* `CSV.generate`: Fixed a regression bug that `String` argument is
|
97
|
-
ignored.
|
98
|
-
[GitHub#13][Patch by pavel]
|
99
|
-
|
100
|
-
### Thanks
|
101
|
-
|
102
|
-
* Vladislav
|
103
|
-
|
104
|
-
* Marcus Stollsteimer
|
105
|
-
|
106
|
-
* Steven Daniels
|
107
|
-
|
108
|
-
* takkanm
|
109
|
-
|
110
|
-
* Tomohiro Ogoke
|
111
|
-
|
112
|
-
* pavel
|