csv 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS.md +377 -0
- data/README.md +1 -0
- data/lib/csv/delete_suffix.rb +18 -0
- data/lib/csv/fields_converter.rb +78 -0
- data/lib/csv/match_p.rb +20 -0
- data/lib/csv/parser.rb +1092 -0
- data/lib/csv/row.rb +6 -6
- data/lib/csv/table.rb +28 -4
- data/lib/csv/version.rb +1 -1
- data/lib/csv/writer.rb +156 -0
- data/lib/csv.rb +330 -632
- metadata +24 -5
- data/news.md +0 -123
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Edward Gray II
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-04-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -40,7 +40,21 @@ dependencies:
|
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
43
|
+
name: benchmark_driver
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: simplecov
|
44
58
|
requirement: !ruby/object:Gem::Requirement
|
45
59
|
requirements:
|
46
60
|
- - ">="
|
@@ -64,14 +78,19 @@ extensions: []
|
|
64
78
|
extra_rdoc_files: []
|
65
79
|
files:
|
66
80
|
- LICENSE.txt
|
81
|
+
- NEWS.md
|
67
82
|
- README.md
|
68
83
|
- lib/csv.rb
|
69
84
|
- lib/csv/core_ext/array.rb
|
70
85
|
- lib/csv/core_ext/string.rb
|
86
|
+
- lib/csv/delete_suffix.rb
|
87
|
+
- lib/csv/fields_converter.rb
|
88
|
+
- lib/csv/match_p.rb
|
89
|
+
- lib/csv/parser.rb
|
71
90
|
- lib/csv/row.rb
|
72
91
|
- lib/csv/table.rb
|
73
92
|
- lib/csv/version.rb
|
74
|
-
-
|
93
|
+
- lib/csv/writer.rb
|
75
94
|
homepage: https://github.com/ruby/csv
|
76
95
|
licenses:
|
77
96
|
- BSD-2-Clause
|
@@ -92,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
111
|
version: '0'
|
93
112
|
requirements: []
|
94
113
|
rubyforge_project:
|
95
|
-
rubygems_version:
|
114
|
+
rubygems_version: 2.7.6
|
96
115
|
signing_key:
|
97
116
|
specification_version: 4
|
98
117
|
summary: CSV Reading and Writing
|
data/news.md
DELETED
@@ -1,123 +0,0 @@
|
|
1
|
-
# News
|
2
|
-
|
3
|
-
## 3.0.0 - 2018-06-06
|
4
|
-
|
5
|
-
### Fixes
|
6
|
-
|
7
|
-
* Fixed a bug that header isn't returned for empty row.
|
8
|
-
[GitHub#37][Patch by Grace Lee]
|
9
|
-
|
10
|
-
### Thanks
|
11
|
-
|
12
|
-
* Grace Lee
|
13
|
-
|
14
|
-
## 1.0.2 - 2018-05-03
|
15
|
-
|
16
|
-
### Improvements
|
17
|
-
|
18
|
-
* Split file for CSV::VERSION
|
19
|
-
|
20
|
-
* Code cleanup: Split csv.rb into a more manageable structure
|
21
|
-
[GitHub#19][Patch by Espartaco Palma]
|
22
|
-
[GitHub#20][Patch by Steven Daniels]
|
23
|
-
|
24
|
-
* Use CSV::MalformedCSVError for invalid encoding line
|
25
|
-
[GitHub#26][Reported by deepj]
|
26
|
-
|
27
|
-
* Support implicit Row <-> Array conversion
|
28
|
-
[Bug #10013][ruby-core:63582][Reported by Dawid Janczak]
|
29
|
-
|
30
|
-
* Update class docs
|
31
|
-
[GitHub#32][Patch by zverok]
|
32
|
-
|
33
|
-
* Add `Row#each_pair`
|
34
|
-
[GitHub#33][Patch by zverok]
|
35
|
-
|
36
|
-
* Improve CSV performance
|
37
|
-
[GitHub#30][Patch by Watson]
|
38
|
-
|
39
|
-
* Add :nil_value and :empty_value option
|
40
|
-
|
41
|
-
### Fixes
|
42
|
-
|
43
|
-
* Fix a bug that "bom|utf-8" doesn't work
|
44
|
-
[GitHub#23][Reported by Pavel Lobashov]
|
45
|
-
|
46
|
-
* `CSV::Row#to_h`, `#to_hash`: uses the same value as `Row#[]`
|
47
|
-
[Bug #14482][Reported by tomoya ishida]
|
48
|
-
|
49
|
-
* Make row separator detection more robust
|
50
|
-
[GitHub#25][Reported by deepj]
|
51
|
-
|
52
|
-
* Fix a bug that too much separator when col_sep is `" "`
|
53
|
-
[Bug #8784][ruby-core:63582][Reported by Sylvain Laperche]
|
54
|
-
|
55
|
-
### Thanks
|
56
|
-
|
57
|
-
* Espartaco Palma
|
58
|
-
|
59
|
-
* Steven Daniels
|
60
|
-
|
61
|
-
* deepj
|
62
|
-
|
63
|
-
* Dawid Janczak
|
64
|
-
|
65
|
-
* zverok
|
66
|
-
|
67
|
-
* Watson
|
68
|
-
|
69
|
-
* Pavel Lobashov
|
70
|
-
|
71
|
-
* tomoya ishida
|
72
|
-
|
73
|
-
* Sylvain Laperche
|
74
|
-
|
75
|
-
* Ryunosuke Sato
|
76
|
-
|
77
|
-
## 1.0.1 - 2018-02-09
|
78
|
-
|
79
|
-
### Improvements
|
80
|
-
|
81
|
-
* `CSV::Table#delete`: Added bulk delete support. You can delete
|
82
|
-
multiple rows and columns at once.
|
83
|
-
[GitHub#4][Patch by Vladislav]
|
84
|
-
|
85
|
-
* Updated Gem description.
|
86
|
-
[GitHub#11][Patch by Marcus Stollsteimer]
|
87
|
-
|
88
|
-
* Code cleanup.
|
89
|
-
[GitHub#12][Patch by Marcus Stollsteimer]
|
90
|
-
[GitHub#14][Patch by Steven Daniels]
|
91
|
-
[GitHub#18][Patch by takkanm]
|
92
|
-
|
93
|
-
* `CSV::Table#dig`: Added.
|
94
|
-
[GitHub#15][Patch by Tomohiro Ogoke]
|
95
|
-
|
96
|
-
* `CSV::Row#dig`: Added.
|
97
|
-
[GitHub#15][Patch by Tomohiro Ogoke]
|
98
|
-
|
99
|
-
* Added ISO 8601 support to date time converter.
|
100
|
-
[GitHub#16]
|
101
|
-
|
102
|
-
### Fixes
|
103
|
-
|
104
|
-
* Fixed wrong `CSV::VERSION`.
|
105
|
-
[GitHub#10][Reported by Marcus Stollsteimer]
|
106
|
-
|
107
|
-
* `CSV.generate`: Fixed a regression bug that `String` argument is
|
108
|
-
ignored.
|
109
|
-
[GitHub#13][Patch by pavel]
|
110
|
-
|
111
|
-
### Thanks
|
112
|
-
|
113
|
-
* Vladislav
|
114
|
-
|
115
|
-
* Marcus Stollsteimer
|
116
|
-
|
117
|
-
* Steven Daniels
|
118
|
-
|
119
|
-
* takkanm
|
120
|
-
|
121
|
-
* Tomohiro Ogoke
|
122
|
-
|
123
|
-
* pavel
|