twb 0.0.22 → 0.0.23

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.
data/lib/twb.rb CHANGED
@@ -5,4 +5,4 @@ module Twb
5
5
  VERSION = '0.0.1'
6
6
  end
7
7
 
8
- puts "Version: #{Twb::VERSION}"
8
+ # puts "Version: #{Twb::VERSION}"
data/lib/twb/workbook.rb CHANGED
@@ -26,9 +26,10 @@ module Twb
26
26
  @name = File.basename(twbWithDir)
27
27
  @dir = File.dirname(File.expand_path(twbWithDir))
28
28
  @modtime = File.new(twbWithDir).mtime
29
+ @ndoc = Nokogiri::XML(open(twbWithDir))
29
30
  @version = @ndoc.xpath('/workbook/@version')
30
31
  @build = @ndoc.xpath('/workbook/comment()').text.gsub(/^[^0-9]+/,'').strip
31
- @ndoc = Nokogiri::XML(open(twbWithDir))
32
+ return self
32
33
  end
33
34
 
34
35
  def dataSourceNodes
@@ -40,6 +41,7 @@ module Twb
40
41
  dataSourceNodes.each do |dsn|
41
42
  sources.push Twb::DataSource.new(dsn)
42
43
  end
44
+ return sources
43
45
  end
44
46
 
45
47
  end
data/twb-0.0.22.gem ADDED
Binary file
data/twb.gemspec CHANGED
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
2
2
  s.name = 'twb'
3
3
  s.summary = "Classes for accessing Tableau Workbooks and their contents - summary."
4
4
  s.description = "Classes for accessing Tableau Workbooks and their contents - description"
5
- s.version = '0.0.22'
5
+ s.version = '0.0.23'
6
6
  s.date = "2015-03-14"
7
7
  s.author = "Chris Gerrard"
8
8
  s.email = "Chris@Gerrard.net"
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.0.22
4
+ version: 0.0.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -29,6 +29,7 @@ files:
29
29
  - twb-0.0.1.gem
30
30
  - twb-0.0.2.gem
31
31
  - twb-0.0.21.gem
32
+ - twb-0.0.22.gem
32
33
  - twb.gemspec
33
34
  homepage: http://rubygems.org/gems/twb
34
35
  licenses: