abstract-tables 1.0.3 → 1.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.
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  SPEC = Gem::Specification.new do |s|
4
4
  s.name = "abstract-tables"
5
- s.version = "1.0.3"
5
+ s.version = "1.0.4"
6
6
  s.date = '2011-02-15'
7
7
  s.authors = ["Kyle Burton"]
8
8
  s.email = "kyle.burton@gmail.com"
@@ -132,7 +132,7 @@ class Abtab::Driver::DbiDriver < Abtab::Driver
132
132
 
133
133
  def close_connection
134
134
  if @conn
135
- @conn.close
135
+ @conn.close if @conn.respond_to? :close
136
136
  @conn = nil
137
137
  end
138
138
  end
data/lib/abtab.rb CHANGED
@@ -47,6 +47,10 @@ module Abtab
47
47
  return self.open "csv://#{thing}"
48
48
  end
49
49
 
50
+ if thing =~ /.xls$/
51
+ return self.open "xls://#{thing}"
52
+ end
53
+
50
54
  # tab delimited is the default
51
55
  return self.open "tab://#{thing}"
52
56
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abstract-tables
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kyle Burton