excel-rb-appscript 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/excel-rb-appscript.gemspec +1 -1
- data/lib/Excel/app.rb +2 -0
- metadata +1 -1
data/excel-rb-appscript.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
|
|
11
11
|
# gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
12
12
|
gem.name = "excel-rb-appscript"
|
13
13
|
gem.require_paths = ["lib"]
|
14
|
-
gem.version = "0.0.
|
14
|
+
gem.version = "0.0.4"
|
15
15
|
|
16
16
|
|
17
17
|
gem.add_runtime_dependency "rb-appscript"
|
data/lib/Excel/app.rb
CHANGED
@@ -26,10 +26,12 @@ module Excel
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def self.workbooks
|
29
|
+
return [] if app_object.workbooks.get == :missing_value
|
29
30
|
app_object.workbooks.get.collect {|wb| wb.name.get }
|
30
31
|
end
|
31
32
|
|
32
33
|
def self.workbooks_paths
|
34
|
+
return [] if app_object.workbooks.get == :missing_value
|
33
35
|
app_object.workbooks.get.collect {|wb| "#{wb.path.get}:#{wb.name.get}" }
|
34
36
|
end
|
35
37
|
|