csv 0.1.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE.txt +33 -0
- data/README.md +52 -0
- data/lib/csv/core_ext/array.rb +9 -0
- data/lib/csv/core_ext/string.rb +9 -0
- data/lib/csv/row.rb +388 -0
- data/lib/csv/table.rb +378 -0
- data/lib/csv/version.rb +6 -0
- data/lib/csv.rb +227 -804
- data/news.md +123 -0
- metadata +40 -14
data/news.md
ADDED
@@ -0,0 +1,123 @@
|
|
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
|
metadata
CHANGED
@@ -1,51 +1,77 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Edward Gray II
|
8
|
+
- Kouhei Sutou
|
8
9
|
autorequire:
|
9
|
-
bindir:
|
10
|
+
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2018-06-06 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
|
-
- - "
|
18
|
+
- - ">="
|
18
19
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
+
version: '0'
|
20
21
|
type: :development
|
21
22
|
prerelease: false
|
22
23
|
version_requirements: !ruby/object:Gem::Requirement
|
23
24
|
requirements:
|
24
|
-
- - "
|
25
|
+
- - ">="
|
25
26
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
27
|
+
version: '0'
|
27
28
|
- !ruby/object:Gem::Dependency
|
28
29
|
name: rake
|
29
30
|
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
|
-
- - "
|
32
|
+
- - ">="
|
32
33
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
34
|
+
version: '0'
|
34
35
|
type: :development
|
35
36
|
prerelease: false
|
36
37
|
version_requirements: !ruby/object:Gem::Requirement
|
37
38
|
requirements:
|
38
|
-
- - "
|
39
|
+
- - ">="
|
39
40
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
41
|
-
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: benchmark-ips
|
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
|
+
description: The CSV library provides a complete interface to CSV files and data.
|
57
|
+
It offers tools to enable you to read and write to and from Strings or IO objects,
|
58
|
+
as needed.
|
42
59
|
email:
|
43
60
|
-
|
61
|
+
- kou@cozmixng.org
|
44
62
|
executables: []
|
45
63
|
extensions: []
|
46
64
|
extra_rdoc_files: []
|
47
65
|
files:
|
66
|
+
- LICENSE.txt
|
67
|
+
- README.md
|
48
68
|
- lib/csv.rb
|
69
|
+
- lib/csv/core_ext/array.rb
|
70
|
+
- lib/csv/core_ext/string.rb
|
71
|
+
- lib/csv/row.rb
|
72
|
+
- lib/csv/table.rb
|
73
|
+
- lib/csv/version.rb
|
74
|
+
- news.md
|
49
75
|
homepage: https://github.com/ruby/csv
|
50
76
|
licenses:
|
51
77
|
- BSD-2-Clause
|
@@ -58,7 +84,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
84
|
requirements:
|
59
85
|
- - ">="
|
60
86
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
87
|
+
version: 2.3.0
|
62
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
89
|
requirements:
|
64
90
|
- - ">="
|
@@ -66,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
92
|
version: '0'
|
67
93
|
requirements: []
|
68
94
|
rubyforge_project:
|
69
|
-
rubygems_version:
|
95
|
+
rubygems_version: 3.0.0.beta1
|
70
96
|
signing_key:
|
71
97
|
specification_version: 4
|
72
98
|
summary: CSV Reading and Writing
|