oxcelix 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/oxcelix/workbook.rb +4 -6
- data/oxcelix.gemspec +3 -2
- metadata +3 -2
data/lib/oxcelix/workbook.rb
CHANGED
@@ -14,16 +14,12 @@ module Oxcelix
|
|
14
14
|
|
15
15
|
# The Workbook class will open the excel file, and convert it to a collection of
|
16
16
|
# Matrix objects
|
17
|
-
# @!attribute [rw] sheetbase
|
18
|
-
# @return [Hash] sheetbase Single sheet metadata - will be obsolete in the future
|
19
17
|
# @!attribute [rw] sheets
|
20
18
|
# @return [Array] sheets Collection of {Sheet} objects
|
21
|
-
# @!attribute [rw] sharedstrings
|
22
|
-
# @return [Sharedstrings] sharedstrings returns a {Sharedstrings} object used to interpolate string indexes with their actual value.
|
23
19
|
class Workbook
|
24
20
|
include Cellhelper
|
25
21
|
include Workbookhelper
|
26
|
-
attr_accessor :
|
22
|
+
attr_accessor :sheets
|
27
23
|
##
|
28
24
|
# Create a new Workbook object.
|
29
25
|
#
|
@@ -58,7 +54,9 @@ module Oxcelix
|
|
58
54
|
}
|
59
55
|
@sheets=[]
|
60
56
|
@sheetbase={}
|
61
|
-
@
|
57
|
+
@sharedstrings=[]
|
58
|
+
f=IO.read(@destination+'/xl/workbook.xml')
|
59
|
+
@a=Ox::load(f)
|
62
60
|
|
63
61
|
sheetdata(options); commentsrel; shstrings;
|
64
62
|
@sheets.each do |x|
|
data/oxcelix.gemspec
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
require 'rake'
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = 'oxcelix'
|
6
|
-
s.version = '0.1.
|
6
|
+
s.version = '0.1.1'
|
7
7
|
s.date = '2013-10-06'
|
8
8
|
s.summary = 'A fast Excel 2007/2010 file parser'
|
9
9
|
s.description = 'A fast .xlsx file parser that returns a collection of Matrix objects'
|
@@ -18,4 +18,5 @@ Gem::Specification.new do |s|
|
|
18
18
|
|
19
19
|
s.add_runtime_dependency "ox", [">= 2.0.6"]
|
20
20
|
s.add_runtime_dependency "rubyzip", [">= 0.9.9"]
|
21
|
-
|
21
|
+
s.rdoc_options << '--all'
|
22
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oxcelix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -72,7 +72,8 @@ homepage: http://github.com/gbiczo/oxcelix
|
|
72
72
|
licenses:
|
73
73
|
- MIT
|
74
74
|
post_install_message:
|
75
|
-
rdoc_options:
|
75
|
+
rdoc_options:
|
76
|
+
- --all
|
76
77
|
require_paths:
|
77
78
|
- lib
|
78
79
|
required_ruby_version: !ruby/object:Gem::Requirement
|