tabular 0.3.3 → 0.3.4
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 +4 -4
- data/Gemfile +2 -1
- data/Gemfile.lock +19 -10
- data/lib/tabular/row.rb +2 -1
- data/lib/tabular/tables/file_reading.rb +1 -0
- data/lib/tabular/version.rb +1 -1
- data/tabular.gemspec +2 -1
- metadata +17 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d3e5ca231fee862f6b5238a9e25122f971fd90c
|
|
4
|
+
data.tar.gz: 647bd0e5f8fef586d2bf883be849939f1f82ea84
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 934200d361a77f3089bcca21479c65cb3e24a8adb797eaf1415504ea58e861d243a189fcad9639fb49e2e633643d8e072f1a4690be60b2456908a5a41026e831
|
|
7
|
+
data.tar.gz: 2f379a196d52546c9f162317fd643425cb5f327b9e01941ef2b14446881f640afd55b13668710b7187473ed2943066efcb15d28a430a45fd2a13471340a1885b
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
GIT
|
|
2
|
-
remote: git://github.com/
|
|
3
|
-
revision:
|
|
2
|
+
remote: git://github.com/roo-rb/roo-xls.git
|
|
3
|
+
revision: a316a88d042ca6e28a83c46a0db1906a9feebb62
|
|
4
4
|
specs:
|
|
5
|
-
roo (
|
|
5
|
+
roo-xls (0.0.1)
|
|
6
6
|
nokogiri
|
|
7
|
-
|
|
8
|
-
spreadsheet (> 0.
|
|
7
|
+
roo (>= 2.0.0)
|
|
8
|
+
spreadsheet (> 0.9.0)
|
|
9
|
+
|
|
10
|
+
GIT
|
|
11
|
+
remote: git://github.com/roo-rb/roo.git
|
|
12
|
+
revision: 12f3f7b1b9c7cc31cada36db360125531d408405
|
|
13
|
+
specs:
|
|
14
|
+
roo (2.0.0)
|
|
15
|
+
nokogiri
|
|
16
|
+
rubyzip (>= 1.0.0)
|
|
9
17
|
|
|
10
18
|
GEM
|
|
11
19
|
remote: https://rubygems.org/
|
|
12
20
|
specs:
|
|
13
|
-
mini_portile (0.6.
|
|
14
|
-
nokogiri (1.6.
|
|
15
|
-
mini_portile (
|
|
16
|
-
rake (10.
|
|
17
|
-
ruby-ole (1.2.11.
|
|
21
|
+
mini_portile (0.6.2)
|
|
22
|
+
nokogiri (1.6.5)
|
|
23
|
+
mini_portile (~> 0.6.0)
|
|
24
|
+
rake (10.4.2)
|
|
25
|
+
ruby-ole (1.2.11.8)
|
|
18
26
|
rubyzip (1.1.6)
|
|
19
27
|
spreadsheet (1.0.0)
|
|
20
28
|
ruby-ole (>= 1.0)
|
|
@@ -25,3 +33,4 @@ PLATFORMS
|
|
|
25
33
|
DEPENDENCIES
|
|
26
34
|
rake
|
|
27
35
|
roo!
|
|
36
|
+
roo-xls!
|
data/lib/tabular/row.rb
CHANGED
|
@@ -4,6 +4,7 @@ module Tabular
|
|
|
4
4
|
# Associate list of cells. Each Table has a list of Rows. Access Row cells via symbols. Ex: row[:city]
|
|
5
5
|
class Row
|
|
6
6
|
include Enumerable
|
|
7
|
+
include Tabular::Blank
|
|
7
8
|
include Tabular::Keys
|
|
8
9
|
|
|
9
10
|
attr_accessor :index
|
|
@@ -89,7 +90,7 @@ module Tabular
|
|
|
89
90
|
end
|
|
90
91
|
|
|
91
92
|
def blank?
|
|
92
|
-
@array.all? { |cell|
|
|
93
|
+
@array.all? { |cell| is_blank?(cell) }
|
|
93
94
|
end
|
|
94
95
|
|
|
95
96
|
# Tabluar::Columns
|
data/lib/tabular/version.rb
CHANGED
data/tabular.gemspec
CHANGED
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
|
8
8
|
|
|
9
9
|
s.authors = ["Scott Willson"]
|
|
10
10
|
s.description = "Tabular is a Ruby library for reading, writing, and manipulating CSV, tab-delimited and Excel data."
|
|
11
|
-
s.email = "scott.willson@gmail.
|
|
11
|
+
s.email = "scott.willson@gmail.com"
|
|
12
12
|
s.extra_rdoc_files = [
|
|
13
13
|
"LICENSE",
|
|
14
14
|
"README"
|
|
@@ -38,4 +38,5 @@ Gem::Specification.new do |s|
|
|
|
38
38
|
s.summary = "Read, write, and manipulate CSV, tab-delimited and Excel data"
|
|
39
39
|
|
|
40
40
|
s.add_development_dependency "roo", "~> 1.3"
|
|
41
|
+
s.add_development_dependency "roo-xls"
|
|
41
42
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tabular
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scott Willson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-01-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: roo
|
|
@@ -24,9 +24,23 @@ dependencies:
|
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '1.3'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: roo-xls
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
27
41
|
description: Tabular is a Ruby library for reading, writing, and manipulating CSV,
|
|
28
42
|
tab-delimited and Excel data.
|
|
29
|
-
email: scott.willson@gmail.
|
|
43
|
+
email: scott.willson@gmail.com
|
|
30
44
|
executables: []
|
|
31
45
|
extensions: []
|
|
32
46
|
extra_rdoc_files:
|