fluiddb 0.0.23 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/FluidDb/TinyTds.rb +2 -2
  2. metadata +1 -1
@@ -29,10 +29,10 @@ module FluidDb
29
29
  puts "*** Warning - you will normally need to specify both a username and password for the tinytds driver to work correctly."
30
30
  end
31
31
 
32
- hash = Hash["username", username, "password", password, "database", database, "dataserver", dataserver]
32
+ hash = Hash[:username, username, :password, password, :database, database, :dataserver, dataserver]
33
33
  if !uri.query.nil? then
34
34
  cgi = CGI.parse( uri.query )
35
- hash["timeout"] = cgi["timeout"][0] if cgi.has_key?( "timeout" )
35
+ hash[:timeout] = cgi["timeout"][0].to_i if cgi.has_key?( "timeout" )
36
36
  end
37
37
 
38
38
  @connection = ::TinyTds::Client.new( hash )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluiddb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: