excel-rb-appscript 0.0.3 → 0.0.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.
@@ -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.3"
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excel-rb-appscript
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: