rubyexcel 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/rubyexcel/rubyexcel_components.rb +1 -1
- data/lib/rubyexcel/sheet.rb +1 -1
- data/lib/rubyexcel.rb +29 -0
- metadata +10 -11
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fea75225680369186c63dee880d74aa0fd44b489
|
4
|
+
data.tar.gz: 38772b704908134bcbcd5b3f5220f76c23aeb651
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fe3e2e0ad63587ca7bf6e392313ddaba81e4c035917aceb039c3541fd554a58bb8ad884647ae3b1e2b27bdc8137ae587358f74d314043b5098f798577659ae74
|
7
|
+
data.tar.gz: 06b3a8d1fd4e25aea40ae792fd6c39364aeaf8f5152b6801634b0eebcdbe8b398d06631281e9f794ae3dc11b2b104d436a5132a40e00efe605cdc304e0cd9bb3
|
data/lib/rubyexcel/sheet.rb
CHANGED
data/lib/rubyexcel.rb
CHANGED
@@ -32,6 +32,9 @@ module RubyExcel
|
|
32
32
|
class Workbook
|
33
33
|
include Enumerable
|
34
34
|
|
35
|
+
# Names of methods which require win32ole
|
36
|
+
ExcelToolsMethods = [ :dump_to_sheet, :get_excel, :get_workbook, :make_sheet_pretty, :save_excel, :to_excel, :to_safe_format, :to_safe_format! ]
|
37
|
+
|
35
38
|
#
|
36
39
|
# Creates a RubyExcel::Workbook instance.
|
37
40
|
#
|
@@ -145,7 +148,33 @@ module RubyExcel
|
|
145
148
|
def load( *args )
|
146
149
|
add.load( *args )
|
147
150
|
end
|
151
|
+
|
152
|
+
#
|
153
|
+
# Don't require Windows-specific libraries unless the relevant methods are called
|
154
|
+
#
|
148
155
|
|
156
|
+
def method_missing(m, *args, &block)
|
157
|
+
if ExcelToolsMethods.include?( m )
|
158
|
+
require_relative 'rubyexcel/excel_tools.rb'
|
159
|
+
send( m, *args, &block )
|
160
|
+
else
|
161
|
+
super
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
#
|
166
|
+
# Allow for certain method_missing calls
|
167
|
+
#
|
168
|
+
|
169
|
+
def respond_to?( m )
|
170
|
+
if ExcelToolsMethods.include?( m )
|
171
|
+
true
|
172
|
+
else
|
173
|
+
super
|
174
|
+
end
|
175
|
+
|
176
|
+
end
|
177
|
+
|
149
178
|
#
|
150
179
|
# Select a Sheet or iterate through them
|
151
180
|
#
|
metadata
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyexcel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.9
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Joel Pearson
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-17 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
|
-
description: A tabular data structure in Ruby, with header-based helper methods
|
15
|
-
some of Excel's API style.
|
13
|
+
description: A tabular data structure in Ruby, with header-based helper methods for
|
14
|
+
analysis and editing, and some of Excel's API style. Can output as 2D Array, Excel,
|
15
|
+
HTML, and TSV.
|
16
16
|
email: VirtuosoJoel@gmail.com
|
17
17
|
executables: []
|
18
18
|
extensions: []
|
@@ -28,27 +28,26 @@ files:
|
|
28
28
|
- lib/rubyexcel.rb
|
29
29
|
homepage: https://github.com/VirtuosoJoel
|
30
30
|
licenses: []
|
31
|
+
metadata: {}
|
31
32
|
post_install_message:
|
32
33
|
rdoc_options: []
|
33
34
|
require_paths:
|
34
35
|
- lib
|
35
36
|
required_ruby_version: !ruby/object:Gem::Requirement
|
36
|
-
none: false
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
42
|
requirements:
|
44
|
-
- -
|
43
|
+
- - '>='
|
45
44
|
- !ruby/object:Gem::Version
|
46
45
|
version: '0'
|
47
46
|
requirements: []
|
48
47
|
rubyforge_project:
|
49
|
-
rubygems_version:
|
48
|
+
rubygems_version: 2.0.2
|
50
49
|
signing_key:
|
51
|
-
specification_version:
|
50
|
+
specification_version: 4
|
52
51
|
summary: Spreadsheets in Ruby
|
53
52
|
test_files: []
|
54
53
|
has_rdoc:
|