twb 0.5.1 → 0.5.2

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.
Files changed (3) hide show
  1. data/lib/twb.rb +1 -1
  2. data/lib/twb/dashboard.rb +4 -1
  3. metadata +1 -1
data/lib/twb.rb CHANGED
@@ -33,5 +33,5 @@ require_relative 'twb/util/xraydashboards'
33
33
  # Represents Tableau Workbooks and their contents.
34
34
  #
35
35
  module Twb
36
- VERSION = '0.5.1'
36
+ VERSION = '0.5.2'
37
37
  end
@@ -40,7 +40,10 @@ module Twb
40
40
  dsheets = @node.xpath('.//zone[@name]').to_a
41
41
  dsheets.each do |sheetNode|
42
42
  sheetname = sheetNode.attr('name')
43
- @sheets[sheetname] = twbworksheets[sheetname]
43
+ # early Tableau versions (e.g. 7), used "name=''" with text and other Dashboard components
44
+ unless sheetname.eql?('') or sheetname.nil?
45
+ @sheets[sheetname] = twbworksheets[sheetname]
46
+ end
44
47
  end
45
48
  end
46
49
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: