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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86b046031efdd662ba479657ae2eccf5df927e51
4
- data.tar.gz: d6d4b24cb1e4ff96bbd60a65333ce14843cfd1de
3
+ metadata.gz: 3d3e5ca231fee862f6b5238a9e25122f971fd90c
4
+ data.tar.gz: 647bd0e5f8fef586d2bf883be849939f1f82ea84
5
5
  SHA512:
6
- metadata.gz: b765867668c8cd61be05aea7540c5b0f61c13857e10c903b690749d941e2df232dad42f3f87dd3cc98e4b4249b7ff5ddf728570941bb11172424cd9f6d6126aa
7
- data.tar.gz: a94012a12f1f0ec12a74dc6e7e8c3ea20a8a8e048e710066e1299ac9269a4155a4f5863b6437ff9fc562882e404f99ce3e9f03b23929c95d69e945cd47572af6
6
+ metadata.gz: 934200d361a77f3089bcca21479c65cb3e24a8adb797eaf1415504ea58e861d243a189fcad9639fb49e2e633643d8e072f1a4690be60b2456908a5a41026e831
7
+ data.tar.gz: 2f379a196d52546c9f162317fd643425cb5f327b9e01941ef2b14446881f640afd55b13668710b7187473ed2943066efcb15d28a430a45fd2a13471340a1885b
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gem "rake"
4
- gem "roo", github: "Empact/roo"
4
+ gem "roo", github: "roo-rb/roo"
5
+ gem "roo-xls", github: "roo-rb/roo-xls"
@@ -1,20 +1,28 @@
1
1
  GIT
2
- remote: git://github.com/Empact/roo.git
3
- revision: 4a1353de22e46880e656d9af062a1436eb5e1a9c
2
+ remote: git://github.com/roo-rb/roo-xls.git
3
+ revision: a316a88d042ca6e28a83c46a0db1906a9feebb62
4
4
  specs:
5
- roo (1.13.2)
5
+ roo-xls (0.0.1)
6
6
  nokogiri
7
- rubyzip
8
- spreadsheet (> 0.6.4)
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.0)
14
- nokogiri (1.6.3.1)
15
- mini_portile (= 0.6.0)
16
- rake (10.1.0)
17
- ruby-ole (1.2.11.7)
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!
@@ -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| cell.nil? || cell == "" }
93
+ @array.all? { |cell| is_blank?(cell) }
93
94
  end
94
95
 
95
96
  # Tabluar::Columns
@@ -54,6 +54,7 @@ module Tabular
54
54
 
55
55
  def read_spreadsheet(file_path, format)
56
56
  require "roo"
57
+ require "roo-xls"
57
58
 
58
59
  if format == :xls
59
60
  excel = ::Roo::Excel.new(file_path)
@@ -1,3 +1,3 @@
1
1
  module Tabular
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
@@ -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.c0m"
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.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: 2014-12-14 00:00:00.000000000 Z
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.c0m
43
+ email: scott.willson@gmail.com
30
44
  executables: []
31
45
  extensions: []
32
46
  extra_rdoc_files: