tabular 0.0.6 → 0.0.7
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.
- data/.gitignore +1 -0
- data/VERSION +1 -1
- data/lib/tabular/row.rb +5 -1
- data/tabular.gemspec +2 -2
- metadata +3 -6
data/.gitignore
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.7
|
data/lib/tabular/row.rb
CHANGED
|
@@ -81,7 +81,11 @@ module Tabular
|
|
|
81
81
|
@hash[column.key] = @array[index]
|
|
82
82
|
else
|
|
83
83
|
begin
|
|
84
|
-
|
|
84
|
+
if @array[index]
|
|
85
|
+
@hash[column.key] = Date.parse(@array[index], true)
|
|
86
|
+
else
|
|
87
|
+
@hash[column.key] = nil
|
|
88
|
+
end
|
|
85
89
|
rescue ArgumentError => e
|
|
86
90
|
date = parse_invalid_date(@array[index])
|
|
87
91
|
if date
|
data/tabular.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{tabular}
|
|
8
|
-
s.version = "0.0.
|
|
8
|
+
s.version = "0.0.7"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Scott Willson"]
|
|
12
|
-
s.date = %q{2010-10-
|
|
12
|
+
s.date = %q{2010-10-19}
|
|
13
13
|
s.description = %q{Tabular is a Ruby library for reading, writing, and manipulating CSV, tab-delimited and Excel data.}
|
|
14
14
|
s.email = %q{scott.willson@gmail.cpm}
|
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tabular
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash: 19
|
|
5
4
|
prerelease: false
|
|
6
5
|
segments:
|
|
7
6
|
- 0
|
|
8
7
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
8
|
+
- 7
|
|
9
|
+
version: 0.0.7
|
|
11
10
|
platform: ruby
|
|
12
11
|
authors:
|
|
13
12
|
- Scott Willson
|
|
@@ -15,7 +14,7 @@ autorequire:
|
|
|
15
14
|
bindir: bin
|
|
16
15
|
cert_chain: []
|
|
17
16
|
|
|
18
|
-
date: 2010-10-
|
|
17
|
+
date: 2010-10-19 00:00:00 -07:00
|
|
19
18
|
default_executable:
|
|
20
19
|
dependencies: []
|
|
21
20
|
|
|
@@ -65,7 +64,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
65
64
|
requirements:
|
|
66
65
|
- - ">="
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
|
-
hash: 3
|
|
69
67
|
segments:
|
|
70
68
|
- 0
|
|
71
69
|
version: "0"
|
|
@@ -74,7 +72,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
74
72
|
requirements:
|
|
75
73
|
- - ">="
|
|
76
74
|
- !ruby/object:Gem::Version
|
|
77
|
-
hash: 3
|
|
78
75
|
segments:
|
|
79
76
|
- 0
|
|
80
77
|
version: "0"
|